anbr07 wrote: ↑November 15th, 2022, 12:19 am
Hi, i have one request. Quite often, when my VPN needs a bit longer to start, the Weather Meter stays blank. Would it be possible to automatically retry establishing a connection after a minute or so? Or to add a delay for that module?
Yes, I used to have a very similar issue where my internet connection was delayed and the skin would load before my internet was available. You can manually refresh the skin using the little refresh button or by middle-mouse clicking the skin -- but both are more annoying than just having an automatic retry.
A long time ago I actually had the skin working this way (for my own use, because of the above), but removed it for fear of the code getting into an infinite loop and getting the user's IP address banned. Perhaps I can add this back again. I really would rather not change the standard weather.com JSON templates
, which this enhancement would require, but there is no other way I know of to implement this.
I'll look into this for the next release. I don't have a release planned at the moment, so you might have to wait a while unless something urgent comes up.
If you'd rather not wait, here is a hacky work-around you can try (I did not test this, so you may need to tweak it some):
- Navigate to the Gadgets\@Resources folder and open the file WeatherComJSONMeasures5Day.inc with Notepad or your preferred editor.
- In the [@EntireSiteSuperParent] measure at the top of the file, add the line:
Code: Select all
This isn't very elegant but it should work as an interim fix. If the connection fails, Rainmeter will execute the OnConnectErrorAction which pauses for 30 seconds, then refreshes the entire skin. (Don't remove the delay; you'll hang Rainmeter if there's no network connection.)