The little CheckNet plugin that is installed with this skin takes the following form:
Code: Select all
[MeasureNetwork]
Measure=Plugin
Plugin=CheckNet
ConnectionType=Network
UpdateRate=5
Network : Tests that you are connected to a network.
Internet : Tests that you can reach the Internet. (default)
The measure will be set to 1 on success, to -1 on failure.
FinishAction can be used to have the measure take actions when the result is returned.
UpdateRate is used to control how often the network resource is checked. The value is in milliseconds, and is multiplied by the value of Update in the [Rainmeter] section of the skin. The default value is 20. With Update=1000, this is equal to every 20 seconds.
Note: Setting a very low UpdateRate for ConnectionType=Network is fine. Checking that status even every second will not use significant resources. However, some care should be taken when using ConnectionType=Internet. The process it uses is a very tiny UDP socket connection to your defined DNS server, and while the amount of traffic generated is very, very small, It could add up over time if you are hitting it every second. I recommend leaving the default of 20, but that is up to you.
Skin requires the latest 3.0.1 release version of Rainmeter from http://rainmeter.net.
The appropriate 32bit or 64bit CheckNet.dll plugin is installed in your APPDATA\Rainmeter\Plugins folder when you install the .rmskin.
Code: Select all
[Rainmeter]
Update=1000
AccurateText=1
DynamicWindowSize=1
[Metadata]
Name=CheckNet
Author=JSMorley
Information=Demonstrates the CheckNet plugin.|This will allow you to check the status of your network connection (LAN) and / or your connection to the Internet (WAN)||The ConnectionType option can be "Network" or "Internet" (default).||Use UpdateRate to control how often the network and / or internet are checked. The default for UpdateRate is 20.
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0
Version=Oct 27, 2013
[MeasureNetwork]
Measure=Plugin
Plugin=CheckNet
ConnectionType=Network
UpdateRate=5
IfBelowValue=0
IfBelowAction=[!SetOption MeterImage ImageName ErrorNetwork.png][!DisableMeasure MeasureInternet][!UpdateMeter *][!Redraw]
IfAboveValue=0
IfAboveAction=[!SetOption MeterImage ImageName NetworkOk.png][!EnableMeasure MeasureInternet][!UpdateMeter *][!Redraw]
[MeasureInternet]
Measure=Plugin
Plugin=CheckNet
ConnectionType=Internet
UpdateRate=20
Disabled=1
IfBelowValue=0
IfBelowAction=[!SetOption MeterImage ImageName ErrorInternet.png][!UpdateMeter *][!Redraw]
IfAboveValue=0
IfAboveAction=[!SetOption MeterImage ImageName NetworkOk.png][!UpdateMeter *][!Redraw]
[MeterImage]
Meter=Image
ImagePath=#@#Images\
ImageName=NetworkChecking.png