weather_.rmskin
Code: Select all
[Variables]
Language=en-GB
UpdateRate=600
;--- Lat & Long for Landgraaf NL ---
Latitude=50.8871
Longitude=6.0116
;--- Lat & Long for Kabbelaarsbank NL ---
;Latitude=51.7563
;Longitude=3.8402
;--- URL's ---
;URLCurrent = "https://weather.com/#Language#/weather/today/l/#Latitude#,#Longitude#"
;URLForecast = "https://weather.com/#Language#/weather/tenday/l/#Latitude#,#Longitude#"
[MeasureLocationIP]
Measure=WebParser
URL=https://ipapi.co/json
RegExp="(?siU)"city": "(.*)".*"region": "(.*)".*"country_name": "(.*)",.*"latitude": (.*),.*"longitude": (.*),.*"
UpdateRate=#UpdateRate#
FinishAction=[!UpdateMeasureGroup GeocodeGroup]
DynamicVariables=1
[MeasureLatitude]
Group=GeocodeGroup
Measure=WebParser
URL=[MeasureLocationIP]
StringIndex=4
RegExpSubstitute=1
Substitute="^$":"#Latitude#"
[MeasureLongitude]
Group=GeocodeGroup
Measure=WebParser
URL=[MeasureLocationIP]
StringIndex=5
RegExpSubstitute=1
Substitute="^$":"#Longitude#"
[MeasureAdapter]
Measure=Plugin
Plugin=SysInfo
SysInfoType=ADAPTER_DESCRIPTION
SysInfoData=Best
DynamicVariables=1
IfMatch=GOOSEVPN
IfMatchAction=[!SetVariable VPNOn "1"][!UpDateMeasure "MeasureCurrentLatitude"][!UpDateMeasure "MeasureCurrentLongitude"][!SetVariable URLCurrent "https://weather.com/#Language#/weather/today/l/[MeasureCurrentLatitude],[MeasureCurrentLongitude]"][!SetVariable URLForecast "https://weather.com/#Language#/weather/tenday/l/[MeasureCurrentLatitude],[MeasureCurrentLongitude]"][!CommandMeasure "@CurrentAll" "Update"][!CommandMeasure "@ForecastAll" "Update"]
IfNotMatchAction=[!SetVariable VPNOn "0"][!UpDateMeasure "MeasureCurrentLatitude"][!UpDateMeasure "MeasureCurrentLongitude"][!SetVariable URLCurrent "https://weather.com/#Language#/weather/today/l/[MeasureCurrentLatitude],[MeasureCurrentLongitude]"][!SetVariable URLForecast "https://weather.com/#Language#/weather/tenday/l/[MeasureCurrentLatitude],[MeasureCurrentLongitude]"][!CommandMeasure "@CurrentAll" "Update"][!CommandMeasure "@ForecastAll" "Update"]
[MeasureCurrentLatitude]
Measure=Calc
Formula=(1 - #VPNOn#) * [MeasureLatitude] + (#VPNOn# * #Latitude# )
DynamicVariables=1
[MeasureCurrentLongitude]
Measure=Calc
Formula=(1 - #VPNOn#) * [MeasureLongitude] + (#VPNOn# * #Longitude# )
DynamicVariables=1
After 4 time stopping rainmeter via taskmng after crash it works but when I manualy refresh again it crashes again.
I have removed
[!EnableMeasure "@CurrentAll"][!EnableMeasure "@ForeCastAll"] and also the Disabled=1 command corresponding in the WeatherComCurrent and WeathetComForecast inc files
I have removed
[!UpdateMeasure "@CurrentAll"][!UpdateMeasure "@ForecastAll"] since
[!CommandMeasure "@CurrentAll" "Update"][!CommandMeasure "@ForecastAll" "Update"] will do the same and now it does NOT crash anymore.
Only issue still left is:
When the VPN is OFF and then I load/refresh the skin and all is OK
When the VPN is ON and then I load/refresh the skin and it seems to be OK, but when I turn VPN OFF the MeasureLatitude and MeasureLongitude are still coming from the VPN Location because Rainmeter measures these while the VPN was turned ON at start.
After the next update cycle of MeasureLocationIP I see the correct location lat and long, but because the MeasureAdaptor did not change the skin also did not change/update.
So I tried:
OnChangeAction=[!CommandMeasure "MeasureLocationIP" "Update"] to Update the MeasureLocationIP directly after a change in Adapter but still I get the VPN lat and long
You do not have the required permissions to view the files attached to this post.