julowe / esp32-weather-station

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

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 :

Arduino env

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

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

About

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

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


Languages

Language:C 97.9%Language:C++ 2.1%