G6EJD / ESP32-e-Paper-Weather-Display

An ESP32 and 2.9", 4.2" or 7.5" ePaper Display reads Weather Underground data via their API and then displays the weather
Other
946 stars 206 forks source link

3-day forecast: the 3d day is not visible #193

Closed jjvelar closed 1 year ago

jjvelar commented 1 year ago

Hi,

Noticed there was an empty square in the 3d position of the 3-day forecast bottom view in my 2.9" display. Solved by changing max_readings value from 25 to 33 in ino file but don't know if this the right way to solve it

define max_readings 33 // In groups of 3-hours (3-days = 3 x 8 = 24)

UPDATE: that's not the solution as it adds an extra day that overrrides moon.

Back to 25 value.

Maybe weather data was just not available...

jjvelar commented 1 year ago

will report again if only 2-days

G6EJD commented 1 year ago

One of those codes was modified by someone else, check if the for next loop is doing 1 to 2 or 0 to 2, also check the times. Also OpenWeatherMap does not update the forecast until about 10:00 so it may not be broadcast early on but then appears.

jjvelar commented 1 year ago

It is now working like a charm. Quick question: can the 2.9” show battery level?

El El dom, 19 feb 2023 a las 11:04, G6EJD @.***> escribió:

One of those codes was modified by someone else, check if the for next loop is doing 1 to 2 or 0 to 2, also check the times. Also OpenWeatherMap does not update the forecast until about 10:00 so it may not be broadcast early on but then appears.

— Reply to this email directly, view it on GitHub https://github.com/G6EJD/ESP32-e-Paper-Weather-Display/issues/193#issuecomment-1435944878, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALKMG4VK6H4OIDKR4UCERMLWYHV3BANCNFSM6AAAAAAVAYLIV4 . You are receiving this because you modified the open/close state.Message ID: @.***>

G6EJD commented 1 year ago

Some ESp32 boards have a on-board battery monitor, usually on pin 35, if not choose an ADC pin say 36 or 39 and wire two resisters to the board, then change the battery routine in the code to use the chosen pin. Battery----R1----ADC Pin 36----R2----Gnd

Where R1 is about 200K and R2 100K, it will need calibrating. Just vary the multiplier on the readadc line.

jjvelar commented 1 year ago

Way beyond and above me, but thanks!

El El dom, 19 feb 2023 a las 13:24, G6EJD @.***> escribió:

Some ESp32 boards have a on-board battery monitor, usually on pin 35, if not choose an ADC pin say 36 or 39 and wire two resisters to the board, then change the battery routine in the code to use the chosen pin. Battery----R1----ADC Pin 36----R2----Gnd

Where R1 is about 200K and R2 100K, it will need calibrating. Just vary the multiplier on the readadc line.

— Reply to this email directly, view it on GitHub https://github.com/G6EJD/ESP32-e-Paper-Weather-Display/issues/193#issuecomment-1435975076, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALKMG4T5SBTX4ARMH3574OTWYIGINANCNFSM6AAAAAAVAYLIV4 . You are receiving this because you modified the open/close state.Message ID: @.***>

jjvelar commented 1 year ago

I hope you don't mind if I ask you another question: is a Wemos D1 Mini enough for a 2.9" display? I am currently using an ESP32 but thought it might be a little bit overkilling. Thanks and best regards, José

El dom, 19 feb 2023 a las 13:24, G6EJD @.***>) escribió:

Some ESp32 boards have a on-board battery monitor, usually on pin 35, if not choose an ADC pin say 36 or 39 and wire two resisters to the board, then change the battery routine in the code to use the chosen pin. Battery----R1----ADC Pin 36----R2----Gnd

Where R1 is about 200K and R2 100K, it will need calibrating. Just vary the multiplier on the readadc line.

— Reply to this email directly, view it on GitHub https://github.com/G6EJD/ESP32-e-Paper-Weather-Display/issues/193#issuecomment-1435975076, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALKMG4T5SBTX4ARMH3574OTWYIGINANCNFSM6AAAAAAVAYLIV4 . You are receiving this because you modified the open/close state.Message ID: @.***>

G6EJD commented 1 year ago

Hello José, the 8266 has a lot less memory than the ESP32 needed to decode the json weather data and form the display image, I have never tried it, it may work, the code would need to be modified in a few areas to operate as some functions are not supported, David

jjvelar commented 1 year ago

I will then keep the esp32 Thanks

El El lun, 20 feb 2023 a las 19:51, G6EJD @.***> escribió:

Hello José, the 8266 has a lot less memory than the ESP32 needed to decode the json weather data and form the display image, I have never tried it, it may work, the code would need to be modified in a few areas to operate as some functions are not supported, David

— Reply to this email directly, view it on GitHub https://github.com/G6EJD/ESP32-e-Paper-Weather-Display/issues/193#issuecomment-1437426992, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALKMG4UOK6YBFEM4RENZOJLWYO4JVANCNFSM6AAAAAAVAYLIV4 . You are receiving this because you modified the open/close state.Message ID: @.***>