Network binding using string

Hi,
I’m using the network binding to show what IP hardware is up/down.

The binding uses “Switch” to show status, I see no reason for using “Switch” as you are not able to Switch anything with it.

I have been trying to use “String” to show network status without any success. I would prefer to just show the status of UP/DOWN without the switch widget.

Can anyone help.

Steve…

You have to define the switch item in the items file (afaik) but can display it as text item in the sitemap, like this:

my.items:
Switch myRouter “myRouter [MAP(node_status.map):%s]” { nh=“192.168.1.1” }

Node_status.map
ON=Online
OFF=Offline
-=Unknown

my.sitemap
Text item=myRouter labelcolor=[ON=“green”, OFF=“red”] valuecolor=[ON=“green”, OFF=“red”]

2 Likes