From ca27656c4758c598543334440eecabd93d111141 Mon Sep 17 00:00:00 2001 From: Frankie B Date: Thu, 26 Jan 2023 22:11:31 +0000 Subject: Correct weatherdata URL --- inc/weatherdata.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/inc/weatherdata.inc.php b/inc/weatherdata.inc.php index a87a117..a589ba5 100644 --- a/inc/weatherdata.inc.php +++ b/inc/weatherdata.inc.php @@ -3,7 +3,7 @@ $curl_current = curl_init(); curl_setopt_array($curl_current, [ - CURLOPT_URL => "http://weather.diskfloppy.me/weatherData.json", + CURLOPT_URL => "http://weather.diskfloppy.me/data/weatherData.json", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, @@ -20,7 +20,7 @@ curl_close($curl_current); $curl_current = curl_init(); curl_setopt_array($curl_current, [ - CURLOPT_URL => "http://weather.diskfloppy.me/got.txt", + CURLOPT_URL => "http://weather.diskfloppy.me/data/got.txt", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, @@ -65,4 +65,4 @@ echo 'Wind Speed: '.$weather_data['wind_speed_last'].' mph
'; echo 'Wind Direction: '.$weather_data['wind_dir_last'].'°, '.$windDir.'
'; echo 'Temperature: '.round(($weather_data['temp']-32)*(5/9), 1).'°C
'; echo 'Rain Rate: '.round($weather_data['rain_rate_last']*0.2, 2).' mm/hr
'; -echo 'Humidity: '.$weather_data['hum'].'%
'; +echo 'Humidity: '.round($weather_data['hum']).'%
'; -- cgit v1.2.3-54-g00ecf