It did not work. It did not display any location at all. (It is supposed to be after the '@' at the bottom and should display on loadup whether IP changes or not.)jsmorley wrote:A little hard for me to test, as my IP doesn't ever change, but I would think that using:
And removing UpdateDivider=-1 from [MeaasureWebParseLocation]Code: Select all
[MeasureExtIP] Measure=Plugin Plugin=WebParser Url=http://icanhazip.com RegExp="(?siU)^(.*)$" StringIndex=1 UpdateRate=90 FinishAction=[!EnableMeasure MeasureCheck][!UpdateMeasure MeasureCheck][!CommandMeasure MeasureWebParseLocation "Update"]
Should do the trick.
That !CommandMeasure is needed since that [MeasureWebParseLocation] measure will have the default UpdateRate of 300 (10 minutes) and you want to override that and force a full "go out to the web" update when [MeasureEXtIP] finishes.
I thought it through. I moved !command to MeasureCheck because I wanted the location displayed on the IP change not every 90 seconds.
I removed the persistent line because keeping the previous ip between skin loads was actually counter productive. And came up with this:
Code: Select all
[MeasureExtIP]
Measure=Plugin
Plugin=WebParser
Url=http://icanhazip.com
RegExp="(?siU)^(.*)$"
StringIndex=1
UpdateRate=90
FinishAction=[!EnableMeasure MeasureCheck][!UpdateMeasure MeasureCheck]
[MeasureCheck]
Measure=Plugin
Plugin=WebParser
Url=[MeasureExtIP]
StringIndex=1
IfMatch=#IPLast#
IfNotMatchAction=[!SetVariable IPLast "[MeasureCheck]"][!UpdateMeasure "MeasureWebParseLocation"][!CommandMeasure MeasureWebParseLocation "Update"]
IfMatchMode=1
DynamicVariables=1
Disabled=1
Even followed
though it seems like leaving it in would have it tun only when called which is what I want.And removing UpdateDivider=-1 from [MeaasureWebParseLocation]
Not sure where I am going wrong. Does it display location on your end? Should on bootup even with static IP.
I think I have about one more pass in me today if you do. My head is starting to spin.
Thanks so much for the hand holding.