Check the manual entries at:
Net measures Interface option.
SysInfo SysInfoData option.
The long and the short of it is that you now have three options for defining the network interface to use in these measures.
For both SysInfo > SysInfoData and NetIn > Interface you will be able to:
1) Use the string value "Best", and it will figure it out.
2) Use the string value "Qualcomm Atheros AR938x Wireless Network Adapter" or whatever the name of your adapter is.
3) Use the same index number you use today (default 0)
When the option is set to Best, DyanmicVariables=1 must be set on the measure if you want it to to automatically react to changes in the active interface. This should be done if for instance you have a laptop or other computer that you switch between wired and wireless connections.
We believe that 95% or better of the time, "Best" is all you are going to need. However, if you have a configuration where "Best" isn't working as you want, (and the function does "prefer wired over wireless" if both have active connections) then you can use the name(s) of the adapters instead.
At the very worst, you would be able to have a variable for each adapter name that your system uses, and toggle between them in the values for the network measures.
Code: Select all
[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1
[Variables]
;BestInterface=Qualcomm Atheros AR938x Wireless Network Adapter
BestInterface=Best
[MeasureWANIP]
Measure=Plugin
Plugin=WebParser
URL=http://icanhazip.com/
RegExp=(?siU)^(.*)$
StringIndex=1
UpdateRate=30
OnConnectErrorAction=[!SetOption MeterWANIP Text "WAN IP: No Connection"][!UpdateMeter *][!Redraw]
FinishAction=[!SetOption MeterWANIP Text "WAN IP: %1"][!UpdateMeter *][!Redraw]
[MeasureNetIn]
Measure=NetIn
Interface=#BestInterface#
[MeasureNetOut]
Measure=NetOut
Interface=#BestInterface#
[MeasureNetTotal]
Measure=NetTotal
Interface=#BestInterface#
[MeasureNetTotalCumulative]
Measure=NetTotal
Interface=#BestInterface#
Cumulative=1
[MeasureAdapter]
Measure=Plugin
Plugin=SysInfo
SysInfoType=ADAPTER_DESCRIPTION
SysInfoData=#BestInterface#
[MeasureLANIP]
Measure=Plugin
Plugin=SysInfo
SysInfoType=IP_ADDRESS
SysInfoData=#BestInterface#
IfMatch=^$
IfMatchAction=[!SetOption MeterLANIP Text "LAN IP: No Connection"][!UpdateMeter *][!Redraw]
IfNotMatchAction=[!SetOption MeterLANIP Text "LAN IP: %1"][!UpdateMeter *][!Redraw]
[MeasureGateway]
Measure=Plugin
Plugin=SysInfo
SysInfoType=GATEWAY_ADDRESS
SysInfoData=#BestInterface#
[MeterBack]
Meter=Image
W=300
H=200
SolidColor=37,47,57,255
[MeterAdapterName]
Meter=String
MeasureName=MeasureAdapter
X=10
Y=10
W=280
ClipString=2
FontSize=11
FontColor=255,255,255,255
SolidColor=0,0,0,1
AntiAlias=1
[MeterGateway]
Meter=String
MeasureName=MeasureGateway
X=10
Y=10R
FontSize=11
FontColor=255,255,255,255
SolidColor=0,0,0,1
AntiAlias=1
Text=Gateway IP: %1
[MeterLANIP]
Meter=String
MeasureName=MeasureLANIP
X=10
Y=0R
FontSize=11
FontColor=255,255,255,255
SolidColor=0,0,0,1
AntiAlias=1
Text=LAN IP: %1
[MeterWANIP]
Meter=String
MeasureName=MeasureWANIP
X=10
Y=10R
FontSize=11
FontColor=255,255,255,255
SolidColor=0,0,0,1
AntiAlias=1
Text=WAN IP: %1
[MeterNetIn]
Meter=String
MeasureName=MeasureNetIn
X=10
Y=5R
FontSize=11
FontColor=255,255,255,255
SolidColor=0,0,0,1
AntiAlias=1
AutoScale=1
NumOfDecimals=1
Text=Network In: %1Bytes
[MeterNetOut]
Meter=String
MeasureName=MeasureNetOut
X=10
Y=0R
FontSize=11
FontColor=255,255,255,255
SolidColor=0,0,0,1
AntiAlias=1
AutoScale=1
NumOfDecimals=1
Text=Network Out: %1Bytes
[MeterNetTotal]
Meter=String
MeasureName=MeasureNetTotal
X=10
Y=0R
FontSize=11
FontColor=255,255,255,255
SolidColor=0,0,0,1
AntiAlias=1
AutoScale=1
NumOfDecimals=1
Text=Network Total: %1Bytes
[MeterNetTotalCumulative]
Meter=String
MeasureName=MeasureNetTotalCumulative
X=10
Y=5R
FontSize=11
FontColor=255,255,255,255
SolidColor=0,0,0,1
AntiAlias=1
AutoScale=1
NumOfDecimals=1
Text=Cumulative Total: %1Bytes