Coder Social home page Coder Social logo

paulgreg / esp32-weather-station Goto Github PK

View Code? Open in Web Editor NEW
18.0 4.0 1.0 109 KB

A weather station based on an esp32 and a waveshare e-ink screen

Home Page: https://hackaday.io/project/171910-esp32-weather-station

License: GNU General Public License v3.0

C++ 1.45% C 98.55%
esp32 meteo e-ink iot

esp32-weather-station's Introduction

ESP32 Weather Station

That project is a weather station (getting data from openweathermap.org) displayed on an e-ink screen.

The main advantage of using an eink screen is that display stays, even if esp32 is powered down. So the ESP32 is waking up, fetch weather data, update screen and sleeps for one hour. Also, refresh is stopped from around midnight to 6 a.m.

Here’s the hackaday project page including pictures.

Hardware components are :

Optionally, it can also fetch local temperature from an Oregon Scientific sensor using an RF module 433Mhz connected to PIN 5 (and update parameters.h by uncommenting a line). Thanks to wonderful ErriezOregonTHN128 library !

Arduino env

use Board "ESP32 Dev Module" to build with Arduino IDE.

Use GxEPD2 in version 1.4.9 (compilation error for that screen with version 1.5.x)

Copy parameters.h.dist to parameters.h and update it with your wifi settings and update the URL (you need to change lat/lng and set your OpenWeatherMap API token).

I’m using the nice GxEPD2 library from ZinggJM. Thanks

Weather API

Icons

Icons are official icons from OpenWeatherMap.

To be able to open them correctly in GxEPD2, I convert them using LCD Assistant with byte orientation set to horizontal and big endian settings. It can be opened via wine (by adding 32 bits architecture).

Fonts

Fonts are from Adafruit-GFX-Library-fontconvert project.

HTTP request & JSON parsing

HTTPS request

esp32-weather-station's People

Contributors

paulgreg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

julowe

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.