The goal of this project was to create a screen that display information and consume less power (no need to be power for a few month).
To manage this, I choose to use an ESP32 because of its deep sleep mode and wifi chipset.
First of all, I started to use this library (GPL) to communicate with the epaper and display image (https://github.com/ZinggJM/GxEPD).
Secondly, I started to make a of tiny framework to display few panel that can leave their life indepedently. See this link : https://github.com/kuitin/EPaper
Thirdly, I started to develop each module (4 modules):
- Timeline (on the left)
- Date (top middle)
- Weather (bottom midle) all image are stocked in the code
- Image (on the right)
The timeline need to be communicate with a script google or anything else that return a json to this format:
{"list":[{"startTime":1584745200,"endTime":1585090800,"title":"Week end custom","isAllDay":true},{"startTime":1584745200,"endTime":1585090800,"title":"Week end custom2","isAllDay":true},]}
About DateThe date is collected from server ntp (basic) and if no wifi, esp32 is using internal clock (the clock internal is running even if you are in deep sleep)
About WeatherThere are 2 part in this module:
- 1 Display weather of the week and current outside wheather. The module is collecting data from this website: http://api.openweathermap.org
- 2 Display Temperature, humidity and air quality. You can custom these data in your code easily (see example in github project)
To make it work you need to create a script google or anything else that can return an image converted in hexa format. See attachement an exemple.
About Offlinemode
If there is no wifi, the Epaper use data stocked in EEPROM. Image, Calandar, Weather are stocked in the epprom by default. (The EEPROM is optionnal)
Now enjoy
Comments
Please log in or sign up to comment.