Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 1065

Help: Rainmeter Skins • Re: Detecting when web site has updated.

$
0
0
I guess I have to ask... why bother? You are reading every 10 minutes, so your weather will never be more than 10 minutes off their last update and will probably be half that on average. If you need more accuracy for some reason, drop it down to 5 minutes. Unless they are updating the current conditions every 5 or 10 minutes, seems pointless to me to keep hammering away at their site only to get an already stale hourly update.

If their updates are fairly regular, then another approach is don't fetch the data every 10 minutes. Instead, fetch the data the first time, then inspect that timestamp. Then, fetch the data 10 minutes (or whatever their documented refresh rate is) from the time in the last timestamp. If you fetch the data and see the timestamp is the same as last time, then give it a minute and fetch again. In other words, don't drive the fetches off a timer, drive it using the timestamp in the data.

Statistics: Posted by SilverAzide — Today, 12:39 am



Viewing all articles
Browse latest Browse all 1065

Trending Articles