Fix default weather string

This commit is contained in:
Tyler Perkins 2021-12-23 22:25:09 -05:00
parent e1cf39ed70
commit 40941908fa
2 changed files with 4 additions and 5 deletions

View File

@ -130,9 +130,9 @@ void weather::update() {
if(!WEATHER_METRIC){ if(!WEATHER_METRIC){
temp_today = (temp_today * 1.8) + 32; temp_today = (int)(temp_today * 1.8) + 32;
temp_tommorow = (temp_tommorow * 1.8) + 32; temp_tommorow = (int)(temp_tommorow * 1.8) + 32;
temp_day_after = (temp_day_after * 1.8) + 32; temp_day_after = (int)(temp_day_after * 1.8) + 32;
} }
json_string.clear(); json_string.clear();

View File

@ -16,8 +16,7 @@ namespace dashboard::panel {
constexpr char WEATHER_TITLE[] = "Weather"; constexpr char WEATHER_TITLE[] = "Weather";
//Cuyahoga Falls Weather Feed //Cuyahoga Falls Weather Feed
//static const char* WEATHER_URL_SOURCE = "https://www.7timer.info/bin/civil.php?lon=41.13&lat=-81.48&unit=british&output=json&tzshift=0"; constexpr char WEATHER_URL_SOURCE[] = "https://www.7timer.info/bin/civil.php?lon=-81.48&lat=41.134&unit=metric&output=json&tzshift=0";
constexpr char WEATHER_URL_SOURCE[] = "https://www.7timer.info/bin/civil.php?lon=41.13&lat=-81.48&unit=british&output=json&tzshift=0";
//Default time the slide is shown on screen, in ms //Default time the slide is shown on screen, in ms
//Default 15s //Default 15s