Yesterday I installed a VPN program and this changes my IP address to whatever I select based on the selection I make in the program.
This causes the weather skin to display the wrong measures.
With
Code: Select all
[MeasureAdapter]
Measure=Plugin
Plugin=SysInfo
SysInfoType=ADAPTER_DESCRIPTION
SysInfoData=Best
DynamicVariables=1
Now I want to overwrite the MeasureLatitude and MeasureLongitude
IfCondition=MeasureAdapter=GOOSEVPN
IfTrueAction=[!SetOption MeasureLatitude "50.8871"][!SetOption MeasureLongitude "6.0116"]
But this does not work????
Anybody an idea how to fix this?
Code: Select all
[Variables]
Language=en-GB
UpdateRate=600
[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1
;--- Measure Location Latitude and Longitude by IP ---
[MeasureLocationIP]
Measure=WebParser
URL=https://ipapi.co/json
RegExp="(?siU)"city": "(.*)".*"region": "(.*)".*"country_name": "(.*)",.*"latitude": (.*),.*"longitude": (.*),.*""
UpdateRate=#UpdateRate#
FinishAction=[!UpdateMeasureGroup GeocodeGroup][!SetVariable URLCurrent "https://weather.com/#Language#/weather/today/l/[MeasureLatitude],[MeasureLongitude]"][!EnableMeasure "@CurrentAll"][!SetVariable URLForecast "https://weather.com/#Language#/weather/tenday/l/[MeasureLatitude],[MeasureLongitude]"][!EnableMeasure "@ForecastAll"]
DynamicVariables=1
[MeasureLatitude]
Group=GeocodeGroup
Measure=WebParser
URL=[MeasureLocationIP]
StringIndex=4
[MeasureLongitude]
Group=GeocodeGroup
Measure=WebParser
URL=[MeasureLocationIP]
StringIndex=5
;--- Replace Location Latitude and Longitude by defaults when VPN is "ON" ---
[MeasureAdapter]
Measure=Plugin
Plugin=SysInfo
SysInfoType=ADAPTER_DESCRIPTION
SysInfoData=Best
DynamicVariables=1
IfCondition=MeasureAdapter=GOOSEVPN
IfTrueAction=[!SetOption MeasureLatitude "50.8871"][!SetOption MeasureLongitude "6.0116"]