I recently setup a RPI with Meteobridge. It looks like it uses weather underground for the forecast and needs my WU API key to get the forecast. It appears the Meteobridge will query WU for forecast data about once every 2 minutes based on the API usage stats I see.
That seems a little excessive and with multiple devices (my phone using MyPWS), I bump up against the 1500 queries per day limit. Is there a way to throttle that back in Meteobridge so it will only query for forecast data on a less frequent basis.
Thanks
Weather Underground API failures
Moderator: Mattk
Re: Weather Underground API failures
Meteobridge per se does not request any information from WU.
When you are using the weather34 dashboards the PHP code making those up might requests data from WU's API. As I am not the author of these PHP add-ons, I cannot comment your findings. Feel free to change the PHP code, if you think you can do better. If you publish your changes, I can implement that into the code delivered by default.
When you are using the weather34 dashboards the PHP code making those up might requests data from WU's API. As I am not the author of these PHP add-ons, I cannot comment your findings. Feel free to change the PHP code, if you think you can do better. If you publish your changes, I can implement that into the code delivered by default.
Re: Weather Underground API failures
The code that collects the data seems to be initiated by meteohub/wnetd. Watching the running processes and what is done, I was able to find that the access to weather underground comes every 2 minutes from these commands:
/home/meteohub/timeout 1 30 php-cgi /tmp/mnt/PWS/MB2/mbdbfiles/nanocron.php
/home/meteohub/timeout 1 30 php-cgi /tmp/mnt/PWS/MB4/mbdbfiles/nanocron.php
which run every two minutes. Those commands appear to be initiated by /home/meteohub/wnetd and maybe in conjunction with /home/meteohub/loggerd.
So if my analysis is correct, is there a file that controls the configuration of when the above commands will run?
Thanks
/home/meteohub/timeout 1 30 php-cgi /tmp/mnt/PWS/MB2/mbdbfiles/nanocron.php
/home/meteohub/timeout 1 30 php-cgi /tmp/mnt/PWS/MB4/mbdbfiles/nanocron.php
which run every two minutes. Those commands appear to be initiated by /home/meteohub/wnetd and maybe in conjunction with /home/meteohub/loggerd.
So if my analysis is correct, is there a file that controls the configuration of when the above commands will run?
Thanks