What steps will reproduce the problem?
1. Just install rrdweather and run it
2.
3.
What is the expected output? What do you see instead?
No data is generated, if you look in the response from weather.com you get a
"invalid partner" error.
What version of the product are you using? On what operating system?
rrdweather 0.42 on Ubuntu (standard installation using apt-get install).
Please provide any additional information below.
The problem is easily solved:
- Register with rrdweather.com for a valid partner id and license key:
http://www.weather.com/services/xmloap.html
- Add two variables to /etc/rrdweather.conf called "PARTNERID" and "LICENSEKEY"
with the correct values received from the weather.com registration
- Patch the two wget lines in /usr/share/rrdweather/db_update.sh:
wget -O ${ZIP}.xml "http://xoap.weather.com/weather/local/${ZIP}?cc=*&unit=${UNIT}&par=${PARTNERID}&key=${LICENSEKEY}"
wget -q -O ${ZIP}.xml "http://xoap.weather.com/weather/local/${ZIP}?cc=*&unit=${UNIT}&par=${PARTNERID}&key=${LICENSEKEY}"
- Comment out the mv line just below the wget lines:
#mv "${ZIP}?cc=*&unit=${UNIT}" "${ZIP}.xml"
After this everything is working again.
Original issue reported on code.google.com by pieter117@gmail.com on 18 Jul 2010 at 6:28
Original issue reported on code.google.com by
pieter117@gmail.com
on 18 Jul 2010 at 6:28