Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Units problem. #27

Open
ve2yag opened this issue Mar 31, 2020 · 0 comments
Open

Units problem. #27

ve2yag opened this issue Mar 31, 2020 · 0 comments

Comments

@ve2yag
Copy link

ve2yag commented Mar 31, 2020

TFT_eSPI_weather.ino Line 371. When you display current temperature, Celsius must be display on "si" units, but also when "ca" used. I modify line:

if (units == "si" || units == "ca") tft.drawString("oC", 237, 95);

Also I add few line to main loop to reconnect Wifi when lost. My router reboot each night at 3AM and ESP32 never reconnect, I add these line executed each minute at same time as NTP request:

// If minute has changed then request new time from NTP server
if (booted || minute() != lastMinute)
{

// Reconnect Wifi if disconnected when my router reboot.
if(WiFi.status() != WL_CONNECTED) {
    WiFi.reconnect();
    delay(1000);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant