Code: Select all
[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1
[Metadata]
Name=WiFiSignal
Author=JSMorley
Version=Nov 30, 2014
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0
Information=Example of WiFi Signal Quality||Set AdapterIndex to "0" or "1" as needed on your system.
[Variables]
AdapterIndex=1
[MeasureInternet]
Measure=Plugin
Plugin=SysInfo
SysInfoType=INTERNET_CONNECTIVITY
UpdateRate=20
IfAboveValue=-1
IfAboveAction=[!SetOption MeterQuality ImageName "[*MeasureQualityRange*].png"]
IfEqualValue=-1
IfEqualAction=[!SetOption MeterQuality ImageName "[*MeasureQualityRange*]Limited.png"]
[MeasureIPLan]
Measure=Plugin
Plugin=SysInfo
SysInfoType=IP_ADDRESS
SysInfoData=#AdapterIndex#
[MeasureRouter]
Measure=Plugin
Plugin=SysInfo
SysInfoType=GATEWAY_ADDRESS
SysInfoData=#AdapterIndex#
[MeasureIPWeb]
Measure=Plugin
Plugin=WebParser
URL=http://icanhazip.com/
RegExp=(?siU)^(.*)$
StringIndex=1
UpdateRate=60
[MeasureQuality]
Measure=Plugin
Plugin=WifiStatus
WiFiInfoType=Quality
[MeasureQualityRange]
Measure=Calc
Formula=MeasureQuality < 20 ? 1 : (MeasureQuality < 40 ? 2 : (MeasureQuality < 60 ? 3 : (MeasureQuality < 80 ? 4 : 5)))
[MeasureSSID]
Measure=Plugin
Plugin=WifiStatus
WiFiInfoType=SSID
RegExpSubstitute=1
SubStitute="^-1$":"No Connection"
IfMatch=^No Connection$
IfMatchAction=[!SetOption MeterQuality ImageName "NoConnect.png"]
IfNotMatchAction=[!SetOption MeterQuality ImageName "[*MeasureQualityRange*].png"]
[MeterQuality]
Meter=Image
W=32
PreserveAspectRatio=1
ImagePath=#@#Images\
ImageName=[MeasureQualityRange].png
DynamicVariables=1
ToolTipTitle=WiFi Status
ToolTipText=Quality [MeasureQuality]#CRLF#SSID [MeasureSSID]#CRLF#Router [MeasureRouter]#CRLF#LAN IP [MeasureIPLan]#CRLF#WAN IP [MeasureIPWeb]