It is currently May 1st, 2024, 9:30 am

Multiple Network Adapter on same skin

Get help with creating, editing & fixing problems with skins
aetasoul
Posts: 11
Joined: August 7th, 2021, 6:49 am

Multiple Network Adapter on same skin

Post by aetasoul »

Hi all,
I'm trying to display three diffrerent IP, but for some reason the skin show the same IP for all the three adapters.
Immagine 2021-08-07 085239.png

Code: Select all

; Lines starting ; (semicolons) are commented out.
; That is, they do not affect the code and are here for demonstration purposes only.
; ----------------------------------

[Rainmeter]
; This section contains general settings that can be used to change how Rainmeter behaves.
Update=1000
Background=#@#Background.png
; #@# is equal to Rainmeter\Skins\illustro\@Resources
BackgroundMode=3
BackgroundMargins=0,34,0,14

[Metadata]
; Contains basic information of the skin.
Name=Network
Author=poiru
Information=Shows your IP address and network activity.
License=Creative Commons BY-NC-SA 3.0
Version=1.0.0

[Variables]
; Variables declared here can be used later on between two # characters (e.g. #MyVariable#).
fontName=Trebuchet MS
textSize=8
colorBar=235,170,0,255
colorText=255,255,255,205
AdapterName0=Intel(R) Ethernet Connection (7) I219-LM
AdapterName1=Realtek USB GbE Family Controller
AdapterName2=Intel(R) Wi-Fi 6 AX200 160MHz

; ----------------------------------
; MEASURES return some kind of value
; ----------------------------------

[measureIP0]
Measure=Plugin
Plugin=SysInfo
Group=SysInfo
SysInfoType=IP_ADDRESS
SysInfoData=#AdapterName0#

[measureIP1]
Measure=Plugin
Plugin=SysInfo
Group=SysInfo
SysInfoType=IP_ADDRESS
SysInfoData=#AdapterName1#

[measureIP2]
Measure=Plugin
Plugin=SysInfo
Group=SysInfo
SysInfoType=IP_ADDRESS
SysInfoData=#AdapterName2#

; ----------------------------------
; STYLES are used to "centralize" options
; ----------------------------------

[styleTitle]
StringAlign=Center
StringCase=Upper
StringStyle=Bold
StringEffect=Shadow
FontEffectColor=0,0,0,50
FontColor=#colorText#
FontFace=#fontName#
FontSize=10
AntiAlias=1
ClipString=1

[styleLeftText]
StringAlign=Left
; Meters using styleLeftText will be left-aligned.
StringCase=None
StringStyle=Bold
StringEffect=Shadow
FontEffectColor=0,0,0,20
FontColor=#colorText#
FontFace=#fontName#
FontSize=#textSize#
AntiAlias=1
ClipString=1

[styleRightText]
StringAlign=Right
StringCase=None
StringStyle=Bold
StringEffect=Shadow
FontEffectColor=0,0,0,20
FontColor=#colorText#
FontFace=#fontName#
FontSize=#textSize#
AntiAlias=1
ClipString=1

[styleBar]
BarColor=#colorBar#
BarOrientation=HORIZONTAL
SolidColor=255,255,255,15

[styleSeperator]
SolidColor=255,255,255,15

; ----------------------------------
; METERS display images, text, bars, etc.
; ----------------------------------

[meterTitle]
Meter=String
MeterStyle=styleTitle
X=100
Y=12
W=190
H=18
Text=Network

[meterIPLabel0]
Meter=String
MeterStyle=styleLeftText
X=10
Y=40
W=190
H=14
Text=Ethernet

[meterIPValue0]
Meter=String
MeterStyle=styleRightText
MeasureName=measureIP0
X=200
Y=0r
W=190
H=14
Text=%1

[meterSeperator0]
Meter=Image
MeterStyle=styleSeperator
X=10
Y=52
W=190
H=1

[meterIPLabel1]
Meter=String
MeterStyle=styleLeftText
X=10
Y=60
W=190
H=14
Text=Docking

[meterIPValue1]
Meter=String
MeterStyle=styleRightText
MeasureName=measureIP1
X=200
Y=0r
W=190
H=14
Text=%1

[meterSeperator1]
Meter=Image
MeterStyle=styleSeperator
X=10
Y=72
W=190
H=1

[meterIPLabel2]
Meter=String
MeterStyle=styleLeftText
X=10
Y=80
W=190
H=14
Text=WiFi

[meterIPValue2]
Meter=String
MeterStyle=styleRightText
MeasureName=measureIP2
X=200
Y=0r
W=190
H=14
Text=%1

[meterSeperator2]
Meter=Image
MeterStyle=styleSeperator
X=10
Y=92
W=190
H=1
Immagine 2021-08-07 085422.png
Any tips?

Thank you!
You do not have the required permissions to view the files attached to this post.
User avatar
Yincognito
Rainmeter Sage
Posts: 7185
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: Multiple Network Adapter on same skin

Post by Yincognito »

aetasoul wrote: August 7th, 2021, 7:11 amI'm trying to display three diffrerent IP, but for some reason the skin show the same IP for all the three adapters.
Are you absolutely sure those are the actual names of your adapters? Cause this happens to me as well, since none of those named adapters exist on my system.

To find out the adapters' names, temporarily use something like:

Code: Select all

[measureAdapterName]
Measure=Plugin
Plugin=SysInfo
SysInfoType=ADAPTER_DESCRIPTION
SysInfoData=N
where N is the number of your adapter (going from 0 to 9 should be enough to find the most used adapters on your system), then copy-paste the desired result (say, from the log) as the corresponding value of your AdapterNameX (X doesn't necessarily have to equal N) variable from the [Variables] section.
Profiles: Rainmeter ProfileDeviantArt ProfileSuites: MYiniMeterSkins: Earth
User avatar
jsmorley
Developer
Posts: 22631
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Multiple Network Adapter on same skin

Post by jsmorley »

I'd be interested to see what the output of ipconfig /all is as well...

Code: Select all

PS C:\Users\JSMorley> ipconfig /all

Windows IP Configuration

   Host Name . . . . . . . . . . . . : TOWER
   Primary Dns Suffix  . . . . . . . :
   Node Type . . . . . . . . . . . . : Hybrid
   IP Routing Enabled. . . . . . . . : No
   WINS Proxy Enabled. . . . . . . . : No

Ethernet adapter Ethernet:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Intel(R) I211 Gigabit Network Connection
   Physical Address. . . . . . . . . : E0-D5-5E-E2-D6-C6
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes

Unknown adapter NordLynx:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : NordLynx Tunnel
   Physical Address. . . . . . . . . :
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

Ethernet adapter Ethernet 2:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : TAP-NordVPN Windows Adapter V9
   Physical Address. . . . . . . . . : 00-FF-B6-E5-38-AA
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes

Wireless LAN adapter Local Area Connection* 1:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Microsoft Wi-Fi Direct Virtual Adapter
   Physical Address. . . . . . . . . : 34-2E-B7-F5-AC-04
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes

Wireless LAN adapter Local Area Connection* 10:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Microsoft Wi-Fi Direct Virtual Adapter #2
   Physical Address. . . . . . . . . : 36-2E-B7-F5-AC-03
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes

Wireless LAN adapter Wi-Fi 3:

   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Intel(R) Dual Band Wireless-AC 7265
   Physical Address. . . . . . . . . : 34-2E-B7-F5-AC-03
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
   IPv6 Address. . . . . . . . . . . : 2600:8806:3307:bd00::7491(Preferred)
   Lease Obtained. . . . . . . . . . : Thursday, August 5, 2021 10:13:36 PM
   Lease Expires . . . . . . . . . . : Wednesday, August 11, 2021 3:38:48 AM
   IPv6 Address. . . . . . . . . . . : 2600:8806:3307:bd00:215d:800a:e301:ec17(Preferred)
   Temporary IPv6 Address. . . . . . : 2600:8806:3307:bd00:708a:bb38:e7c8:5184(Deprecated)
   Temporary IPv6 Address. . . . . . : 2600:8806:3307:bd00:acb7:bce5:50de:7986(Preferred)
   Link-local IPv6 Address . . . . . : fe80::215d:800a:e301:ec17%4(Preferred)
   IPv4 Address. . . . . . . . . . . : 192.168.0.17(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Lease Obtained. . . . . . . . . . : Thursday, August 5, 2021 10:13:35 PM
   Lease Expires . . . . . . . . . . : Sunday, August 8, 2021 10:13:35 PM
   Default Gateway . . . . . . . . . : fe80::226:86ff:fef3:6755%4
                                       192.168.0.1
   DHCP Server . . . . . . . . . . . : 192.168.0.1
   DHCPv6 IAID . . . . . . . . . . . : 137637559
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-24-D2-34-B3-E0-D5-5E-E2-D6-C6
   DNS Servers . . . . . . . . . . . : 2001:578:3f::30
                                       2001:578:3f:1::30
                                       2001:578:3f::30
                                       2001:578:3f:1::30
                                       8.8.8.8
                                       8.8.4.4
   NetBIOS over Tcpip. . . . . . . . : Enabled

Ethernet adapter Bluetooth Network Connection 2:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Bluetooth Device (Personal Area Network) #2
   Physical Address. . . . . . . . . : 34-2E-B7-F5-AC-07
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
 
User avatar
Yincognito
Rainmeter Sage
Posts: 7185
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: Multiple Network Adapter on same skin

Post by Yincognito »

A simple test skin to show the desired adapter name, number and IP according to SysInfoData on mouse scroll:

Code: Select all

[Variables]
NICID=0

[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1

---Measures---

[measureAdapterName]
Measure=Plugin
Plugin=SysInfo
SysInfoType=ADAPTER_DESCRIPTION
SysInfoData=#NICID#
RegExpSubstitute=1
Substitute="(^$|^0$)":"Unavailable"
IfMatch=^.{2,}$
IfMatchAction=[!SetOption measureIP SysInfoData "[measureAdapterName]"]
IfNotMatchAction=[!SetOption measureIP SysInfoData 999]
IfMatchMode=1
DynamicVariables=1

[measureIP]
Measure=Plugin
Plugin=SysInfo
Group=SysInfo
SysInfoType=IP_ADDRESS
SysInfoData=
RegExpSubstitute=1
Substitute="(^$|^0$)":"Unavailable"
DynamicVariables=1

---Meters---

[meterNICInfo]
Meter=String
StringEffect=Shadow
FontEffectColor=0,0,0,50
SolidColor=47,47,47,255
FontColor=255,255,255,255
FontFace=Consolas
FontSize=16
AntiAlias=1
MeasureName=measureAdapterName
MeasureName2=measureIP
Text=Number : #NICID##CRLF#Adapter: %1#CRLF#IP     : %2
MouseScrollUpAction=[!SetVariable NICID (Clamp(#NICID#-1,0,20))][!UpdateMeasure *][!UpdateMeter *][!Redraw]
MouseScrollDownAction=[!SetVariable NICID (Clamp(#NICID#+1,0,20))][!UpdateMeasure *][!UpdateMeter *][!Redraw]
DynamicVariables=1
NICs.jpg
You do not have the required permissions to view the files attached to this post.
Profiles: Rainmeter ProfileDeviantArt ProfileSuites: MYiniMeterSkins: Earth
User avatar
CodeCode
Posts: 1366
Joined: September 7th, 2020, 2:24 pm
Location: QLD, Australia

Re: Multiple Network Adapter on same skin

Post by CodeCode »

Yincognito wrote: August 7th, 2021, 1:53 pm A simple test skin to show the desired adapter name, number and IP according to SysInfoData on mouse scroll:

Code: Select all

[Variables]
NICID=0

[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1

---Measures---

[measureAdapterName]
Measure=Plugin
Plugin=SysInfo
SysInfoType=ADAPTER_DESCRIPTION
SysInfoData=#NICID#
RegExpSubstitute=1
Substitute="(^$|^0$)":"Unavailable"
IfMatch=^.{2,}$
IfMatchAction=[!SetOption measureIP SysInfoData "[measureAdapterName]"]
IfNotMatchAction=[!SetOption measureIP SysInfoData 999]
IfMatchMode=1
DynamicVariables=1

[measureIP]
Measure=Plugin
Plugin=SysInfo
Group=SysInfo
SysInfoType=IP_ADDRESS
SysInfoData=
RegExpSubstitute=1
Substitute="(^$|^0$)":"Unavailable"
DynamicVariables=1

---Meters---

[meterNICInfo]
Meter=String
StringEffect=Shadow
FontEffectColor=0,0,0,50
SolidColor=47,47,47,255
FontColor=255,255,255,255
FontFace=Consolas
FontSize=16
AntiAlias=1
MeasureName=measureAdapterName
MeasureName2=measureIP
Text=Number : #NICID##CRLF#Adapter: %1#CRLF#IP     : %2
MouseScrollUpAction=[!SetVariable NICID (Clamp(#NICID#-1,0,20))][!UpdateMeasure *][!UpdateMeter *][!Redraw]
MouseScrollDownAction=[!SetVariable NICID (Clamp(#NICID#+1,0,20))][!UpdateMeasure *][!UpdateMeter *][!Redraw]
DynamicVariables=1
NICs.jpg
This is really cool Yincognito!

Seeing it gave me the idea to incorporate this into my Net skin.

I have some questions on how to do so, in the form I wish to achieve.

Should I start a new thread? (also did a post of mine here get zixed? I am concerned I made a grave mistake?).
ƈǟռ'ȶ ʄɨӼ ɨȶ ɨʄ ɨȶ ǟɨռ'ȶ ɮʀօӄɛ - ʊռʟɛֆֆ ɨȶ ɨֆ ɨռ ƈօɖɛ.
User avatar
Yincognito
Rainmeter Sage
Posts: 7185
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: Multiple Network Adapter on same skin

Post by Yincognito »

CodeCode wrote: August 7th, 2021, 2:59 pm This is really cool Yincognito!

Seeing it gave me the idea to incorporate this into my Net skin.

I have some questions on how to do so, in the form I wish to achieve.

Should I start a new thread? (also did a post of mine here get zixed? I am concerned I made a grave mistake?).
Actually, I use a VERY similar approach in my network skin from my suite (I'm a fan of scrolling and all that). :D
I have no idea if you should start a new thread for it, it's up to you - I probably would though. From my part, I'll answer anway, either here or there.

Yeah, I noticed the zixed thing too. Probably a mistake/malfunction of something. If you could post this, then you're probably ok and such. ;-)
Profiles: Rainmeter ProfileDeviantArt ProfileSuites: MYiniMeterSkins: Earth
User avatar
jsmorley
Developer
Posts: 22631
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Multiple Network Adapter on same skin

Post by jsmorley »

CodeCode wrote: August 7th, 2021, 2:59 pm Should I start a new thread? (also did a post of mine here get zixed? I am concerned I made a grave mistake?).
That was me CodeCode. You had originally posted a response that didn't really have anything to do with the question, and then it sorta got sideways with your posting that your answer wasn't the right one, and me stepping on it with a response that your answer wasn't the right one, and well, I figured it was best to just clean up a bit, rather than going back and forth about it. Felt like the History Eraser Button was less messy. No offense intended...

As to a new thread or not, that depends. If the topic stays on the original question, which is how to display "Multiple Network Adapter on same skin", if it is responsive to what this guy is trying to do, then it should probably stay here. Otherwise, I probably wouldn't hijack this guys thread, which in a sense I guess I just did...
User avatar
CodeCode
Posts: 1366
Joined: September 7th, 2020, 2:24 pm
Location: QLD, Australia

Re: Multiple Network Adapter on same skin

Post by CodeCode »

Ok. Whew. I was worried there. No offence taken.
I'll start a new thread. The topic is quite similar, but ya, new topic...
ƈǟռ'ȶ ʄɨӼ ɨȶ ɨʄ ɨȶ ǟɨռ'ȶ ɮʀօӄɛ - ʊռʟɛֆֆ ɨȶ ɨֆ ɨռ ƈօɖɛ.
aetasoul
Posts: 11
Joined: August 7th, 2021, 6:49 am

Re: Multiple Network Adapter on same skin

Post by aetasoul »

Hi all,
Thank you for your replies!

Here the network cards:
Immagine 2021-08-09 162329.png
Here the output of Yincognito skin:
0.png
3.png
Here the ipconfig /all output:

Code: Select all

Scheda Ethernet vEthernet (Ethernet 2):

   Suffisso DNS specifico per connessione:
   Descrizione . . . . . . . . . . . . . : Hyper-V Virtual Ethernet Adapter
   Indirizzo fisico. . . . . . . . . . . : 00-15-5D-3C-DC-D1
   DHCP abilitato. . . . . . . . . . . . : No
   Configurazione automatica abilitata   : Sì
   Indirizzo IPv6 locale rispetto al collegamento . : fe80::549d:7d2f:ca8c:1264%72(Preferenziale)
   Indirizzo IPv4. . . . . . . . . . . . : 172.17.144.1(Preferenziale)
   Subnet mask . . . . . . . . . . . . . : 255.255.240.0
   Gateway predefinito . . . . . . . . . :
   IAID DHCPv6 . . . . . . . . . . . : 1207965021
   DUID Client DHCPv6. . . . . . . . : 00-01-00-01-25-10-0F-A1-F8-B4-6A-BA-4B-F2
   Server DNS . . . . . . . . . . . . .  : fec0:0:0:ffff::1%1
                                           fec0:0:0:ffff::2%1
                                           fec0:0:0:ffff::3%1
   NetBIOS su TCP/IP . . . . . . . . . . : Attivato

Scheda Ethernet Ethernet 2:

   Suffisso DNS specifico per connessione: azienda.lan
   Descrizione . . . . . . . . . . . . . : Realtek USB GbE Family Controller
   Indirizzo fisico. . . . . . . . . . . : F8-B4-6A-9E-AD-AE
   DHCP abilitato. . . . . . . . . . . . : Sì
   Configurazione automatica abilitata   : Sì
   Indirizzo IPv6 locale rispetto al collegamento . : fe80::5cb0:957f:9617:a3f8%21(Preferenziale)
   Indirizzo IPv4. . . . . . . . . . . . : 10.10.4.187(Preferenziale)
   Subnet mask . . . . . . . . . . . . . : 255.255.248.0
   Lease ottenuto. . . . . . . . . . . . : sabato 7 agosto 2021 17:44:43
   Scadenza lease . . . . . . . . . . .  : martedì 17 agosto 2021 07:52:06
   Gateway predefinito . . . . . . . . . : 10.10.0.1
   Server DHCP . . . . . . . . . . . . . : 10.10.0.200
   IAID DHCPv6 . . . . . . . . . . . : 1996010602
   DUID Client DHCPv6. . . . . . . . : 00-01-00-01-25-10-0F-A1-F8-B4-6A-BA-4B-F2
   Server DNS . . . . . . . . . . . . .  : 10.10.0.200
                                           10.10.0.203
                                           8.8.8.8
   NetBIOS su TCP/IP . . . . . . . . . . : Attivato

Scheda Ethernet Ethernet:

   Suffisso DNS specifico per connessione:
   Descrizione . . . . . . . . . . . . . : Intel(R) Ethernet Connection (7) I219-LM
   Indirizzo fisico. . . . . . . . . . . : F8-B4-6A-BA-4B-F2
   DHCP abilitato. . . . . . . . . . . . : No
   Configurazione automatica abilitata   : Sì
   Indirizzo IPv6 locale rispetto al collegamento . : fe80::9996:12f3:9d33:7f65%9(Preferenziale)
   Indirizzo IPv4. . . . . . . . . . . . : 10.3.0.122(Preferenziale)
   Subnet mask . . . . . . . . . . . . . : 255.255.0.0
   Gateway predefinito . . . . . . . . . : 10.3.0.1
   IAID DHCPv6 . . . . . . . . . . . : 301511786
   DUID Client DHCPv6. . . . . . . . : 00-01-00-01-25-10-0F-A1-F8-B4-6A-BA-4B-F2
   Server DNS . . . . . . . . . . . . .  : fec0:0:0:ffff::1%1
                                           fec0:0:0:ffff::2%1
                                           fec0:0:0:ffff::3%1
   NetBIOS su TCP/IP . . . . . . . . . . : Attivato

Scheda Ethernet Connessione di rete Bluetooth:

   Stato supporto. . . . . . . . . . . . : Supporto disconnesso
   Suffisso DNS specifico per connessione:
   Descrizione . . . . . . . . . . . . . : Bluetooth Device (Personal Area Network)
   Indirizzo fisico. . . . . . . . . . . : DC-FB-48-AA-FB-12
   DHCP abilitato. . . . . . . . . . . . : Sì
   Configurazione automatica abilitata   : Sì

Scheda Ethernet vEthernet (Ethernet):

   Suffisso DNS specifico per connessione:
   Descrizione . . . . . . . . . . . . . : Hyper-V Virtual Ethernet Adapter #2
   Indirizzo fisico. . . . . . . . . . . : 00-15-5D-A3-DC-DE
   DHCP abilitato. . . . . . . . . . . . : No
   Configurazione automatica abilitata   : Sì
   Indirizzo IPv6 locale rispetto al collegamento . : fe80::414d:9c88:7f4f:5ee2%106(Preferenziale)
   Indirizzo IPv4. . . . . . . . . . . . : 192.168.208.1(Preferenziale)
   Subnet mask . . . . . . . . . . . . . : 255.255.240.0
   Gateway predefinito . . . . . . . . . :
   IAID DHCPv6 . . . . . . . . . . . : 1778390365
   DUID Client DHCPv6. . . . . . . . : 00-01-00-01-25-10-0F-A1-F8-B4-6A-BA-4B-F2
   Server DNS . . . . . . . . . . . . .  : fec0:0:0:ffff::1%1
                                           fec0:0:0:ffff::2%1
                                           fec0:0:0:ffff::3%1
   NetBIOS su TCP/IP . . . . . . . . . . : Attivato
You do not have the required permissions to view the files attached to this post.
User avatar
SilverAzide
Rainmeter Sage
Posts: 2617
Joined: March 23rd, 2015, 5:26 pm

Re: Multiple Network Adapter on same skin

Post by SilverAzide »

aetasoul wrote: August 9th, 2021, 2:33 pm Hi all,
Thank you for your replies!
So, has your original issue been resolved?
Gadgets Wiki GitHub More Gadgets...