It is currently March 29th, 2024, 8:32 am

Skin to display location of IP address (eg for VPN users)?

Post reviews, recommendations and questions about other software.
Jack2345
Posts: 1
Joined: August 16th, 2013, 3:03 am

Skin to display location of IP address (eg for VPN users)?

Post by Jack2345 »

I use a VPN, and I'm wondering if anyone knows of a skin that will display the location of your IP address. Country is good enough, although ideally it would have City, Country or City, State / Provence, Country.

I've looked but am new to Rainmeter and don't think I've been able to scratch the surface on what's available out there.

Thanks!
User avatar
Mordasius
Posts: 1167
Joined: January 22nd, 2011, 4:23 pm
Location: GMT +8

Re: Skin to display location of IP address (eg for VPN users

Post by Mordasius »

:oops: Oops, didn't read the question properly...
The following works with a regular non-proxy internet connection but I've no idea if it would work on a VPN.

Code: Select all

[Variables]
IPaddress=checking....
Color2=d19d34
Color3=dddddd

;===  [  style ] 

[sText]
FontSize=10
StringStyle=BOLD
StringAlign=LEFT
FontColor=aaaaaa
X=10
Y=22r
W=200
H=22
ClipString=1
AntiAlias=1
Hidden=1
UpdateDivider=-1

;===  [  measures   ]
[mGeoBytes]
Measure=PLUGIN
Plugin=Plugins\WebParser.dll
Url="http://www.geobytes.com/IpLocator.htm?GetLocation"
RegExp="(?siU).*IpAddress=(.*)'&#.*"ro-no_bots_pls13" value="(.*)".*bots_pls17" value="(.*)".*pls10" value="(.*)".*pls19" value="(.*)".*pls9" value="(.*)".*"
FinishAction=[!EnableMeasureGroup  info] [!ShowMeterGroup info] [!SetVariable "IPaddress" "[mIPAddress]"] [!UpdateMeter MtIP][!UpdateMeterGroup info]
UpdateRate=-1

[mIPAddress]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mGeoBytes]
StringIndex=1

[mCountry]
Measure=PLUGIN
Plugin=WebParser.dll
Url=[mGeoBytes]
StringIndex=2
Group=info

[mCity]
Measure=PLUGIN
Plugin=WebParser.dll
Url=[mGeoBytes]
StringIndex=3
Group=info

[mLattitude]
Measure=PLUGIN
Plugin=WebParser.dll
Url=[mGeoBytes]
StringIndex=4
Group=info

[mLongitude]
Measure=PLUGIN
Plugin=WebParser.dll
Url=[mGeoBytes]
StringIndex=5
Group=info

;=== [ meters ]

[MtBG1]
Meter=IMAGE
SolidColor=00000088
W=300
H=176
UpdateDivider=-1

[MtBG2]
Meter=IMAGE
SolidColor=000000cc
X=3
Y=3
W=294
H=170
UpdateDivider=-1

[MtTitle]
Meter=STRING
MeterStyle=sText
W=270
FontColor=#Color2#
Text="IP Location"
Y=12
Hidden=0

[MtLine1]
Meter=IMAGE
X=10
Y=34
W=280
H=1
SolidColor=#Color2#dd

[MtIP]
Meter=STRING
MeterStyle=sText
Text="IP Address:   #IPaddress#"
Y=45
DynamicVariables=1
Hidden=0

[MtC]
Meter=STRING
MeasureName=mCountry
MeterStyle=sText
Text="Country:         %1"
Y=65
Group=info

[MtCty]
Meter=STRING
MeasureName=mCity
MeterStyle=sText
Y=85
Text="City:                %1"
Group=info

[MtLat]
Meter=STRING
MeasureName=mLattitude
MeterStyle=sText
Text="Lattitude:        %1"
Group=info

[MtLong]
Meter=STRING
MeasureName=mLongitude
MeterStyle=sText
Text="Longitude:     %1"
Group=info

[MtLine2]
Meter=IMAGE
X=10
Y=156
W=280
H=1
SolidColor=#Color2#dd