Announcement

Collapse
No announcement yet.

Why does this script not run under Linux?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Why does this script not run under Linux?

    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.

    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

    #2
    What do you mean by "not run"? Errors?

    Comment


      #3
      Originally posted by alexbk66 View Post
      What do you mean by "not run"? Errors?
      I even have no evidence in the log that the script was triggered.

      As a result of that also no errors reported and expected action not executed.

      ---
      John

      Comment


        #4
        Originally posted by alexbk66 View Post
        What do you mean by "not run"? Errors?
        Found the issue. Looks like a bug in HSTouch.

        ---
        John

        Comment

        Working...
        X