supported_hardware:ping
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
supported_hardware:ping [2021/03/05 15:08] – created James Sentman | supported_hardware:ping [2023/02/13 14:52] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 127: | Line 127: | ||
{{: | {{: | ||
- | **On Label:** UP (< | + | **On Label:** UP (< |
- | **Off Label:** DOWN (< | + | **Off Label:** DOWN (< |
- | You may also wish to setup custom colors for the unit in question so that the displays appear green when the unit is on and red when it is off which is the opposite of the default display colors. For the Red color I use “33FF33” and for the green color I use “FB0106” | + | You may also wish to setup custom colors for the unit in question so that the displays appear green when the unit is on and red when it is off which is the opposite of the default display colors. For the Red color I use “33FF33” and for the green color I use “FB0106” |
+ | |||
+ | < | ||
+ | on propertyChanged( theName, theValue) | ||
+ | if theName = “Reliability” then | ||
+ | if theValue = 100 then | ||
+ | set xtOnColor of xUnit (thisUnit) to “33FF33" | ||
+ | | ||
+ | set xtOnColor of xUnit (thisUnit) to “FFFF33" | ||
+ | end if | ||
+ | end if | ||
+ | end propertyChanged | ||
+ | </ | ||
All of these values can be set on the Display tab of the Edit Unit Dialog. The [[xtension_manual: | All of these values can be set on the Display tab of the Edit Unit Dialog. The [[xtension_manual: |
supported_hardware/ping.1614956887.txt.gz · Last modified: 2023/02/13 14:51 (external edit)