For the context of this issue, see https://forums.homeseer.com/forum/ho...ce#post1556698
Why does this script not run under Linux. I have som experience in the past when I was running HomeSeer on Windows. However currently I'm running HomeSeer on Ubuntu 20.04 LTS.
---
John
Why does this script not run under Linux. I have som experience in the past when I was running HomeSeer on Windows. However currently I'm running HomeSeer on Ubuntu 20.04 LTS.
Code:
' HS4 Script 2022-07-10 JG ' EditLocalIP.vp ' Updates virtual device that holds the Local IP address Sub Main(ByVal parm As Object) Dim Current_Destination, New_Destination ' Get new IP address from HSTouch Current_Destination = hs.DeviceStringByName("Destination") New_Destination = parm(0).ToString ' Get tablet number that requested the change 'TabletID = parm(1).ToString 'Calling_Client = hs.DeviceStringByName(TabletID & "Name") 'If Len(New_IP_Address) < 7 Then 'hs.Speak("Valid I P address must be at least 7 characters") 'New_IP_Address = Current_IP_Address 'Else 'hs.Speak("Local IP Address Changed to " & New_Destination) 'End If hs.SetDeviceStringByName("Destination",New_Destination,true) hs.writelog("HSTouch","Destination changed to: " & New_Destination) End Sub
John
Comment