Quantcast
Channel: HomeSeer Message Board
Viewing all articles
Browse latest Browse all 4847

WAN IP as a virtual Device

$
0
0
I have written a small event to email or Pushover my WAN IP. Using MrHappy's "create string device" script and the immediate script hs.SetDeviceString(472, hs.WANIP, True) to set the device to the WAN IP.

This is working well except for the formatting of the IP string contains the hostname.

I would like to isolate the IP but the formatting could be variable from x.x.x.x to xxx.xxx.xxx.xxx The IP could potentially be between 7 and 15 characters long.

Is there a simpler way to handle this, or would I need to use a VBScript to look at the string and test for %20 after the IP?

Viewing all articles
Browse latest Browse all 4847

Trending Articles