lmarzen / esp32-weather-epd

A low-power E-Paper weather display powered by an ESP32 microcontroller. Utilizes the OpenWeatherMap API.
GNU General Public License v3.0
2.33k stars 179 forks source link

esp32-weather-epd mod - download png from local http and view it #74

Closed nicoh88 closed 4 months ago

nicoh88 commented 5 months ago

Hi Luke,

cool project. Thanks for sharing. I once did something similar with Kindle: https://github.com/nicoh88/kindle-kt3_weatherdisplay_battery-optimized

Unfortunately, the Kindle batteries only last 4 weeks, even after a battery swap. That's why I'm very interested in your project and would love to realise it.

However, I don't want to install sensors or anything similar. I would also like to continue to generate my image on my server - as I have all the data I need from the weather stations and Netatmo in ioBroker.

I am not a programmer, but as I understand the main.cpp, I would have to comment out the drawCurrentConditions, drawForecast, drawLocationDate and drawOutlookGraph. Specify the URL to the PNG at this point and then show it on the display.

Is this fundamentally problematic? Or is it really easy? Is there anything else I need to consider?

I would return the battery level and Wifi quality to my server via API. In my shell script, I do this via cURL - it's simply an HTTP. Surely this also works with CPP?

Greetings Nico

lmarzen commented 5 months ago

Hi Nico,

Cool project, you've got going on.

Sounds relatively straightforward to receive an image and display it. You are on the right track and correctly identified the functions you will need to remove.

Good luck with your modifications.

-Luke

nicoh88 commented 4 weeks ago

@lmarzen

My order is on its way and will arrive in the next few days. I've already created a fork and am playing around.

Would you provide me with the source file for the wiring diagrams? Then I can adapt it in my fork for the e-Paper HAT rev2.3.

Thank you