chunkysteveo / OpenEPaperLink-HA-Weatherman

Wetherman EPaper display using OpenEPaperLink and the HA Integration
37 stars 4 forks source link

Help with time format 12h -> 24h #31

Closed AseKarlsson closed 5 months ago

AseKarlsson commented 5 months ago

Thanks for a great Integration, I see in the "<> Code" part info for 24 time format.

Sadly I do not understand where in the code I should put this? Any Example?

Thanks, Ase

AseKarlsson commented 5 months ago

Think I now understand what to change in the code. Testing tomorrow!

AseKarlsson commented 5 months ago

I think this has to be changed in 8 places, right?

chunkysteveo commented 5 months ago

Glad you found the right place!

chunkysteveo commented 5 months ago

I think this has to be changed in 8 places, right?

The 24 or AM PM is only for the first four timestamps, for the next 4 hour forecasts. The future daily forecasts are day 'stamps', not timestamps - so no 24 or AM/PM formatting needed.