Weather Underground API failures

All about the standard Meteobridge devices based on mobile routers from TP-Link, D-Link, ASUS

Moderator: Mattk

Post Reply
vajgd
Fresh Boarder
Fresh Boarder
Posts: 2
Joined: Fri Jan 15, 2021 2:48 am

Weather Underground API failures

Post by vajgd »

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
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7874
Joined: Mon Oct 01, 2007 10:51 pm

Re: Weather Underground API failures

Post by admin »

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.
vajgd
Fresh Boarder
Fresh Boarder
Posts: 2
Joined: Fri Jan 15, 2021 2:48 am

Re: Weather Underground API failures

Post by vajgd »

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
Post Reply