Closed classic-audio closed 3 years ago
You should remove these two lines: if (WxConditions[0].Forecast1 != "") Wx_Description += ", " + WxConditions[0].Forecast1; if (WxConditions[0].Forecast2 != "") Wx_Description += ", " + WxConditions[0].Forecast2; And try replacing this line: drawString(x + SCREEN_WIDTH / 2, y + 3, String(ConvertUnixTime(WxForecast[index].Dt + WxConditions[0].Timezone).substring(0,5)), CENTER);
with: drawString(x + offset, y + 3, String(ConvertUnixTime(WxForecast[index].Dt + WxConditions[0].Timezone).substring(0,5)), CENTER);
I have a solution now - thank you very much for the fast reply. The line: drawString(x + offset, y + 3, String(ConvertUnixTime(WxForecast[index].Dt + WxConditions[0].Timezone).substring(0,5)), CENTER); I made a small correction drawString(x + offset / 2, y + 3, String(ConvertUnixTime(WxForecast[index].Dt + WxConditions[0].Timezone).substring(0,5)), CENTER);
Another small issue - at the right of the display - the boxes are missing lines at the right. Perhaps you have a hint for that too ?
For your info... I also changed the text line of forecast to 2 lines - more easy to read :)
Good to hear,
try:
display.drawRect(x, y, offset + 1, 65, GxEPD_BLACK);
to:
Regards
David
From: Frede Kristensen Sent: 20 March 2021 15:55 To: G6EJD/ESP32-e-Paper-Weather-Display Cc: G6EJD; Comment Subject: Re: [G6EJD/ESP32-e-Paper-Weather-Display] Alignment problem (#139)
For your info... I also changed the text line of forecast to 2 lines - more easy to read :) — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.
Sorry,
Keyboard error:
Try: display.drawRect(x, y, offset + 1, 65, GxEPD_BLACK); to: display.drawRect(x, y, offset , 65, GxEPD_BLACK);
Out of interest which time zone are you in?
Regards
David
From: Frede Kristensen Sent: 20 March 2021 15:55 To: G6EJD/ESP32-e-Paper-Weather-Display Cc: G6EJD; Comment Subject: Re: [G6EJD/ESP32-e-Paper-Weather-Display] Alignment problem (#139)
For your info... I also changed the text line of forecast to 2 lines - more easy to read :) — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.
Thank you very much - fast reply and it works.
I am in Europe - Copenhagen time zone. I live on a small Island "Venø" - central Jytland.
Really a great project / code. Works for me - although I have 2 minor points. Display: 1.54 inch
Where can I make these changes to have the correct data and display of data?