diff --git a/wunderground.c b/wunderground.c index 813bb58..9910780 100644 --- a/wunderground.c +++ b/wunderground.c @@ -27,7 +27,7 @@ // file that contains weather underground station ID (first line) and // password (second line) -#define CREDENTIALS "/home/pi/weather/wh1080wunderground/trunk/wunderground_creds.txt" +#define CREDENTIALS "/etc/wunderground/creds.txt" // API url #define WUURL "http://rtupdate.wunderground.com/weatherstation/updateweatherstation.php" @@ -296,9 +296,7 @@ // get amount of rain in last hour in mm double RainLastHour = GetHourlyRainTotal(TotalRainMm); - sprintf(Cmd, "wget -b -a /tmp/wunderground-%s.log -O /tmp/wunderground-result-%s.html \"%s?action=updateraw&ID=%s&PASSWORD=%s&realtime=1&rtfreq=48&dateutc=%s&tempf=%.1f&humidity=%.2f&windspeedmph=%.2f&windgustmph=%.2f&baromin=%.4f&dewptf=%.1f&winddir=%.1f&dailyrainin=%.4f&rainin=%.4f\"", - FileTimestamp, - FileTimestamp, + sprintf(Cmd, "wget -b \"%s?action=updateraw&ID=%s&PASSWORD=%s&realtime=1&rtfreq=48&dateutc=%s&tempf=%.1f&humidity=%.2f&windspeedmph=%.2f&windgustmph=%.2f&baromin=%.4f&dewptf=%.1f&winddir=%.1f&dailyrainin=%.4f&rainin=%.4f\"", WUURL, gStationId, gPassword,