Hi all,
i've a strange problem. My weather station is operating since 2011 with no big problem. It is connected through the USB port to a TP-LINK MR3220 running OpenWrt 12.09.
One week ago the router stops to send data to wunderground account...
I've managed to find out the problem that is due to the WGET line in wunderground.sh script (original script of FOWSR).
root@OpenWrt:~# /usr/bin/fowsr.sh USER PASS
... (log about grab datas)...
http://weatherstation.wunderground.com/weatherstation/updateweatherstation.php?action=updateraw&ID=USER&PASSWORD=PASS&softwaretype=fowsr&dateutc=2013-09-0516:55:19&winddir=270.0&windspeedmph=6.0&windgustmph=9.2&humidity=59.0&tempf=78.800&rainin=0.000&dailyrainin=0.000&baromin=29.840&dewptf=66.4
Connecting to weatherstation.wunderground.com (38.102.137.157:80)
wget: server returned error: HTTP/1.0 400 Bad request
root@OpenWrt:~#
User&pass are hidden here ;-). The problem seems related to wget, so i tried to run this from command line with the same result:
root@OpenWrt:~#wget -O - 'http://weatherstation.wunderground.com/weatherstation/updateweatherstation.php?action=updateraw&ID=ID&PASSWORD=PASS&softwaretype=fowsr&dateutc=2013-09-05 15:26:11&winddir=90.0&windspeedmph=3.8&windgustmph=6.9&humidity=52.0&tempf=81.860&rainin=0.000&dailyrainin=0.000&baromin=29.846&dewptf=66.4'
Connecting to weatherstation.wunderground.com (38.102.137.157:80)
wget: server returned error: HTTP/1.0 400 Bad request
root@OpenWrt:~#
I've reinstalled firmware, fowsr and all configuration with no result.
I've also tried to run this line on an other openwrt router with always 400 bad request....
instead, if i copy and past the URL on the browser, i get success!?!?!
What's wrong with WGET? is wunderground server that has change something?
Please help!
Thanx :-)
P.S. if i type: wget -O - http://google.com
all works perfect and i see the html page...
(Last edited by <Lork> on 6 Sep 2013, 20:09)