It is currently September 24th, 2024, 10:28 pm

Ethernet Skin

Get help with creating, editing & fixing problems with skins
Rain868
Posts: 4
Joined: September 22nd, 2024, 4:16 pm

Ethernet Skin

Post by Rain868 »

Hello. I have a very simple Skin which indicate if WIFI is on or off. (plus other things, unnecessary). from Win10 Widgets.
Does it exit something to show similar skin for Ethernet ? I found many informations on sophisticated skins, but my idea is very simple : On or off .

Thank's for you Help.
User avatar
balala
Rainmeter Sage
Posts: 16585
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Ethernet Skin

Post by balala »

Rain868 wrote: September 22nd, 2024, 4:21 pm Does it exit something to show similar skin for Ethernet ? I found many informations on sophisticated skins, but my idea is very simple : On or off .
Even if I can't test, I believe the following measure can return what you need:

Code: Select all

[MeasureEthernet]
Measure=SysInfo
SysInfoType=ADAPTER_STATUS
SysInfoData=Ethernet
Does it?

https://docs.rainmeter.net/manual/measures/sysinfo/#Network
Last edited by jsmorley on September 22nd, 2024, 6:47 pm, edited 1 time in total.
Reason: Added link to docs...
Rain868
Posts: 4
Joined: September 22nd, 2024, 4:16 pm

Re: Ethernet Skin

Post by Rain868 »

Many thank's for Help. I have created new skin names ethernet.ini, with all this inside (if no, i get skin error, it needs a beginning)
I restart, see the skin ethernet, put on the desktop, similar to my wifi skin, BUT WITH NO INFORMATION INSIDE

I think i need a little more help !

(The includes are from the others present skins in win10widgets and not updated)

Code: Select all

[Rainmeter]
Update=100
; Context menu option to show signal strength percent
ContextTitle="Show % signal strength"
ContextAction=[!WriteKeyValue WiFiPercent FontColor #SolidGreyText# #CoreFilePath#][!Refresh]
; Context menu option to hide signal strength percent
ContextTitle2="Hide % signal strength"
ContextAction2=[!WriteKeyValue WiFiPercent FontColor #Transparent# #CoreFilePath#][!Refresh]

[Metadata]
Name=Ethernet
Author=xx
Information=Displays the current Ethernet status.
License=Creative Commons BY-NC-SA 4.0
Version=1.0.0

[Variables]
@Include1=#@#variables.ini
@Include2=#@#styles.ini
@Include3=#@#background.ini
CoreFilePath=""#CURRENTPATH#Ethernet.ini""
BackgroundHeight=68
LeftPadding=13
TopPadding=10
AutoBorder=1


[MeasureEthernet]
Measure=SysInfo
SysInfoType=ADAPTER_STATUS
SysInfoData=Ethernet
Last edited by balala on September 23rd, 2024, 11:05 am, edited 1 time in total.
Reason: Please use <code> tags whenever are you posting codes. It's the </> button.
Rain868
Posts: 4
Joined: September 22nd, 2024, 4:16 pm

Re: Ethernet Skin

Post by Rain868 »

Skins.png
You do not have the required permissions to view the files attached to this post.
User avatar
balala
Rainmeter Sage
Posts: 16585
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Ethernet Skin

Post by balala »

Rain868 wrote: Yesterday, 9:15 am I think i need a little more help !
The posted code has no meters. A skin containing only measures can't be activated, Rainmeter will show up a message, telling the skin has no meters and will be deactivated. There are some included files in your code, but since I don't know them, I can't tell anything meaningful. Check if you have in the background.ini file (most probably, but you can check the others as well) a meter showing the result returned by the [MeasureEthernet] measure. It has to be a String meter (containing a Meter=String option) having either a MeasureName=MeasureEthernet or a Text=[MeasureEthernet] option, or something similar. Do you have it? If it's not there, there is nothing to show up the result returned by the [MeasureEthernet] measure, so in such a case it's clear you can't see what you need. So, do you fintd the meter? If you do, how does it looks like?
Rain868
Posts: 4
Joined: September 22nd, 2024, 4:16 pm

Re: Ethernet Skin

Post by Rain868 »

Many thanks for the reply.
My knowledge of Rainmeter is near zero.

I do not find a METER=STRING in the background.ini file.
I try to put it here : https://transfert.free.fr/zyeZj2N
User avatar
Rooky_89
Posts: 7
Joined: September 21st, 2024, 4:57 pm

Re: Ethernet Skin

Post by Rooky_89 »

Rain868 wrote: Yesterday, 9:19 amSkins.png
Hello Rain868, is this the Rainmeter Skin do you mean?

Image
OrginalWebsite-Link https://www.deviantart.com/tjmarkham/art/Win10-Widgets-619765834



Orginal Source Code from the WiFi-Small.ini

Code: Select all

; ------------------------------------------------------------------------
;    _       ___      _______     _       ___     __           __
;   | |     / (_)___ /  / __ \   | |     / (_)___/ /___  ___  / /______
;   | | /| / / / __ \/ / / / /   | | /| / / / __  / __ \/ _ \/ __/ ___/
;   | |/ |/ / / / / / / /_/ /    | |/ |/ / / /_/ / /_/ /  __/ /_(__  ) 
;   |__/|__/_/_/ /_/_/\____/     |__/|__/_/\__,_/\__, /\___/\__/____/
;                                               /____/
;
;	Win10 Widgets for Rainmeter - WiFi (small)
;		Author  - TJ Markham, http://tjmarkham.com
;		Website - http://win10widgets.com
;		Donate  - http://donate.win10widgets.com
;
; ------------------------------------------------------------------------

; Known bug(s):
; - None

[Rainmeter]
Update=100
; Context menu option to show signal strength percent
ContextTitle="Show % signal strength"
ContextAction=[!WriteKeyValue WiFiPercent FontColor #SolidGreyText# #CoreFilePath#][!Refresh]
; Context menu option to hide signal strength percent
ContextTitle2="Hide % signal strength"
ContextAction2=[!WriteKeyValue WiFiPercent FontColor #Transparent# #CoreFilePath#][!Refresh]

[Metadata]
Name=WiFi (small)
Author=TJ Markham
Information=Displays the current WiFi status.
License=Creative Commons BY-NC-SA 4.0
Version=1.0.0

[Variables]
@Include1=#@#variables.ini
@Include2=#@#styles.ini
@Include3=#@#background.ini
CoreFilePath=""#CURRENTPATH#WiFi-Small.ini""
BackgroundHeight=68
LeftPadding=13
TopPadding=10
AutoBorder=1


; ------------------------------------------------------------------------
; MEASURES
; ------------------------------------------------------------------------

[MeasureSSID]
; Returns the SSID of the current WiFi network.
Measure=Plugin
Plugin=WiFiStatus
WiFiInfoType=SSID
OnChangeAction=[!UpdateMeter WiFiSSID]

[MeasureWiFiSecurity]
; Returns the security type of the current WiFi network (NONE, WEP40, TKIP, AES, WEP104, WPA_GROUP, WEP, or ??? for an unknown algorithm).
; Controls the secured/open text.
Measure=Plugin
Plugin=WiFiStatus
WiFiInfoType=Encryption
OnChangeAction=[!UpdateMeter Security]
IfMatch=NONE
IfMatchAction=[!SetOption Security Text ", open"][!ShowMeterGroup OpenIcon]
IfNotMatchAction=[!SetOption Security Text ", secured"][!HideMeterGroup OpenIcon]
IfCondition=(MeasureWiFiPercent < 1)
IfTrueAction=[!HideMeterGroup OpenIcon]

[MeasureWiFiPercent]
; Returns the percent strength the current WiFi signal.
; Controls the colors of the WiFi icon sections.
Measure=Plugin
Plugin=WiFiStatus
WiFiInfoType=Quality
OnChangeAction=[!UpdateMeter WiFiPercent]
; 0%
IfCondition=(MeasureWiFiPercent < 1) 
IfTrueAction=[!SetOption WifiIconCurve1 LineColor #IconColorInactive#][!SetOption WifiIconCurve2 LineColor #IconColorInactive#][!SetOption WifiIconCurve3 LineColor #IconColorInactive#][!SetOption WifiIconDot LineColor #IconColorInactive#][!HideMeterGroup Connected][!ShowMeterGroup Unconnected][!UpdateMeterGroup WifiIcon]
; 1%-25%
IfCondition2=(MeasureWiFiPercent >= 1) && (MeasureWiFiPercent <= 25)
IfTrueAction2=[!SetOption WifiIconCurve1 LineColor #IconColorInactive#][!SetOption WifiIconCurve2 LineColor #IconColorInactive#][!SetOption WifiIconCurve3 LineColor #IconColorInactive#][!SetOption WifiIconDot LineColor #IconColorActive#][!ShowMeterGroup Connected][!HideMeterGroup Unconnected][!UpdateMeterGroup WifiIcon]
; 26%-50%
IfCondition3=(MeasureWiFiPercent >= 26) && (MeasureWiFiPercent <= 50)
IfTrueAction3=[!SetOption WifiIconCurve1 LineColor #IconColorInactive#][!SetOption WifiIconCurve2 LineColor #IconColorInactive#][!SetOption WifiIconCurve3 LineColor #IconColorActive#][!SetOption WifiIconDot LineColor #IconColorActive#][!ShowMeterGroup Connected][!HideMeterGroup Unconnected][!UpdateMeterGroup WifiIcon]
; 51%-75%
IfCondition4=(MeasureWiFiPercent >= 51) && (MeasureWiFiPercent <= 75)
IfTrueAction4=[!SetOption WifiIconCurve1 LineColor #IconColorInactive#][!SetOption WifiIconCurve2 LineColor #IconColorActive#][!SetOption WifiIconCurve3 LineColor #IconColorActive#][!SetOption WifiIconDot LineColor #IconColorActive#][!ShowMeterGroup Connected][!HideMeterGroup Unconnected][!UpdateMeterGroup WifiIcon]
; 76%-100%
IfCondition5=(MeasureWiFiPercent >= 76)
IfTrueAction5=[!SetOption WifiIconCurve1 LineColor #IconColorActive#][!SetOption WifiIconCurve2 LineColor #IconColorActive#][!SetOption WifiIconCurve3 LineColor #IconColorActive#][!SetOption WifiIconDot LineColor #IconColorActive#][!ShowMeterGroup Connected][!HideMeterGroup Unconnected][!UpdateMeterGroup WifiIcon]

[MeasureInternetConnectivity]
; Returns the status of the internet connection.
Measure=Plugin
Plugin=SysInfo
SysInfoType=INTERNET_CONNECTIVITY
Substitute="-1":"No Internet","1":"Connected"
OnChangeAction=[!UpdateMeter ConnectedLabel]


; ------------------------------------------------------------------------
; METERS - WiFi Icon
; ------------------------------------------------------------------------

[WifiIconDot]
; Shows the circle of the WiFi icon.
Meter=Roundline
X=(#LeftPadding#+20)
Y=(#TopPadding#+26)
Group=WifiIcon
AntiAlias=1
LineLength=2.5
LineColor=#IconColorInactive#
Solid=1
UpdateDivider=-1

[WifiIconCurve1]
; Shows the large curve of the WiFi icon.
Meter=Roundline
X=3r
Y=3r
AntiAlias=1
Group=WifiIcon
StartAngle=(Rad(180))
RotationAngle=(Rad(90))
LineStart=20.5
LineLength=18.5
LineColor=#IconColorInactive#
Solid=1
UpdateDivider=-1

[WifiIconCurve2]
; Shows the medium curve of the WiFi icon.
Meter=Roundline
X=0r
Y=0r
AntiAlias=1
Group=WifiIcon
StartAngle=(Rad(180))
RotationAngle=(Rad(90))
LineStart=15.5
LineLength=13.5
LineColor=#IconColorInactive#
Solid=1
UpdateDivider=-1

[WifiIconCurve3]
; Shows the small curve of the WiFi icon.
Meter=Roundline
X=0r
Y=0r
AntiAlias=1
Group=WifiIcon
StartAngle=(Rad(180))
RotationAngle=(Rad(90))
LineStart=10.5
LineLength=8.5
LineColor=#IconColorInactive#
Solid=1
UpdateDivider=-1


; ------------------------------------------------------------------------
; METERS - Open network icon
; ------------------------------------------------------------------------
; The meters below form the "open network" icon.

[WifiOpenLine1]
Meter=Image
X=([WifiIconDot:X]-20)
Y=([WifiIconDot:Y]-22)
W=11
H=5
SolidColor=#SolidWhite#
Group=OpenIcon
UpdateDivider=-1

[WifiOpenLine2]
Meter=Image
X=0r
Y=0R
W=[WifiOpenLine1:W]
H=1
SolidColor=#SolidGreyText#
Group=OpenIcon
UpdateDivider=-1

[WifiOpenLine3]
Meter=Image
X=1r
Y=0r
W=([WifiOpenLine2:W]-2)
H=2
SolidColor=#SolidWhite#
Group=OpenIcon
UpdateDivider=-1

[WifiOpenLine4]
Meter=Image
X=1r
Y=2r
W=([WifiOpenLine3:W]-2)
H=1
SolidColor=#SolidWhite#
Group=OpenIcon
UpdateDivider=-1

[WifiOpenLine5]
Meter=Image
X=1r
Y=1r
W=([WifiOpenLine4:W]-2)
H=1
SolidColor=#SolidWhite#
Group=OpenIcon
UpdateDivider=-1

[WifiOpenLine6]
Meter=Image
X=2r
Y=2r
W=([WifiOpenLine5:W]-4)
H=1
SolidColor=#SolidWhite#
Group=OpenIcon
UpdateDivider=-1

[WifiOpenLine7]
Meter=Image
X=([WifiOpenLine1:X]+3)
Y=([WifiOpenLine1:Y]-1)
W=5
H=1
SolidColor=#SolidGreyText#
Group=OpenIcon
UpdateDivider=-1

[WifiOpenLine8]
Meter=Image
X=1r
Y=0r
W=([WifiOpenLine7:W]-2)
H=11
SolidColor=#SolidWhite#
Group=OpenIcon
UpdateDivider=-1

[WifiOpen!]
Meter=String
MeterStyle=StyleSmallText | StyleBlackText
X=([WifiOpenLine1:X]+2)
Y=([WifiOpenLine1:Y]-4)
Group=OpenIcon
Text="!"
FontSize=9
UpdateDivider=-1

[WifiOpenDiagonalLeft]
Meter=Image
X=[WifiOpenLine1:X]
Y=([WifiOpenLine1:Y]+6)
W=1
H=7
SolidColor=#SolidWhite#
AntiAlias=1
TransformationMatrix=(Cos(Rad(45)));(-Sin(Rad(45)));(Sin(Rad(45)));(Cos(Rad(45)));([WifiOpenDiagonalLeft:X]-[WifiOpenDiagonalLeft:X]*Cos(Rad(45))-[WifiOpenDiagonalLeft:Y]*Sin(Rad(45)));([WifiOpenDiagonalLeft:Y]-[WifiOpenDiagonalLeft:X]*(-Sin(Rad(45)))-[WifiOpenDiagonalLeft:Y]*Cos(Rad(45)))
Group=OpenIcon
UpdateDivider=-1

[WifiOpenDiagonalRight]
Meter=Image
X=([WifiOpenLine1:X]+6)
Y=([WifiOpenLine1:Y]+11)
W=1
H=7
SolidColor=#SolidWhite#
AntiAlias=1
TransformationMatrix=(Cos(Rad(135)));(-Sin(Rad(135)));(Sin(Rad(135)));(Cos(Rad(135)));([WifiOpenDiagonalRight:X]-[WifiOpenDiagonalRight:X]*Cos(Rad(135))-[WifiOpenDiagonalRight:Y]*Sin(Rad(135)));([WifiOpenDiagonalRight:Y]-[WifiOpenDiagonalRight:X]*(-Sin(Rad(135)))-[WifiOpenDiagonalRight:Y]*Cos(Rad(135)))
Group=OpenIcon
UpdateDivider=-1


; ------------------------------------------------------------------------
; METERS - Text
; ------------------------------------------------------------------------

[WiFiSSID]
; Shows the SSID of the current WiFi network.
Meter=String
MeterStyle=StyleSmallText | StyleWhiteText
MeasureName=MeasureSSID
X=(#LeftPadding#+35)
Y=(#TopPadding#+3)
Group=Connected
Text="%1"
ClipString=2
ClipStringW=(#BackgroundWidth#-55)
DynamicVariables=1
UpdateDivider=-1

[ConnectedLabel]
; Shows the internet connection status.
Meter=String
MeterStyle=StyleSmallText
MeasureName=MeasureInternetConnectivity
X=0r
Y=0R
Group=Connected
Text="%1"
UpdateDivider=-1

[Security]
; Shows if the current WiFi network is secure or not.
Meter=String
MeterStyle=StyleSmallText
X=-4R
Y=0r
Group=Connected
Text="???"
UpdateDivider=-1

[WiFiPercent]
; Shows the percent strength the current WiFi signal.
Meter=String
MeterStyle=StyleSmallText
MeasureName=MeasureWiFiPercent
X=0R
Y=0r
Group=Connected
Text="(%1% signal strength)"
UpdateDivider=-1
FontColor=178,178,178,255

[WiFiLabel]
; Shows "WiFi".
Meter=String
MeterStyle=StyleSmallText | StyleWhiteText
X=(#LeftPadding#+35)
Y=(#TopPadding#+3)
Group=Unconnected
Text="Wi-Fi"
UpdateDivider=-1

[NotConnectedLabel]
; Shows "Not connected".
Meter=String
MeterStyle=StyleSmallText
X=0r
Y=-1R
Group=Unconnected
Text="Not connected"
UpdateDivider=-1
User avatar
balala
Rainmeter Sage
Posts: 16585
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Ethernet Skin

Post by balala »

EDIT: Fixed the code after jsmorley's post.
Rain868 wrote: Today, 4:05 pm Many thanks for the reply.
My knowledge of Rainmeter is near zero.

I do not find a METER=STRING in the background.ini file.
I try to put it here : https://transfert.free.fr/zyeZj2N
Alright, see for first the skin posted / linked by Rooky_89 above is the one you're using. I think it is, but am I right?
In any case, just to try out the [MeasureEthernet] measure, add a String meter besides it:

Code: Select all

[MeasureEthernet]
Measure=SysInfo
SysInfoType=ADAPTER_STATUS
SysInfoData=Ethernet

[MeterEthernet]
Meter=STRING
MeasureName=MeasureEthernet
X=0
Y=0
Padding=15,5,15,5
FontColor=220,220,220
FontEffectColor=0,0,0
StringEffect=Shadow
SolidColor=0,0,0,150
FontSize=8
FontFace=Segoe UI
StringStyle=BOLD
StringAlign=LEFT
AntiAlias=1
Text=%1 / [MeasureEthernet:]
; The previously existing option (Text=%2 / [MeasureEthernet:]) has been replaced, after jsmorely's observation.
DynamicVariables=1
The skin should show Up / 1 if the adapter is working (is in) or Down / -1 otherwise. See that the measure is returning different string and numeric values.
If this is working, we can add it to the skin you want to use it in. but does it work?