Announcement

Collapse
No announcement yet.

HS3 Perl scripts

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

  • HS3 Perl scripts

    I try to verify if my HS2 perl scripts are compliant in HS3 in the windows and linux versions.
    My conclusions are the following :
    On windowsOn Linux
    You have the same behaviour than on windows but, the script does not run. You receive the following message : "Cannot run .txt script on Linux, only .vb scripts are supported". I don't know if I have to do something special for HS3 because Perl is installed correctly and standalone scripts works fine.

    Perl experience in new homeseer version is welcome !

  • #2
    Are you still using perl?

    I am just now trying to transistion to HS3 (on Windows) and have many HS2 perl scripts.

    However, I can't even get a script as simple as the following to run


    Code:
    sub main()
    {
        $hs->WriteLog("Error", "This is a test"); 
    }
    I get this error, even with just a blank main sub:

    Code:
    Running script: Index was out of range. Must be  non-negative and less than the size of the collection. Parameter name: startIndex->   at System.String.IndexOf(String value,  Int32 startIndex, Int32 count, StringComparison comparisonType)    at System.String.IndexOf(String value, Int32 startIndex)    at  A.c1b0f37609f28fb7afed8d440680e6db4.ce86a0a55d3661fa218b566b5ba926ee0(String  ceefe476d1f77adc790c7782141798e1f, Boolean  ce791fe9d8290e0d18cd0af1e42db139a, Int32  c3fda549ce0b74c9ad9fc210b529b2226, String  c0cf6c15fc505ce256a93afdc5f2268a9, Boolean  cc5b1dd80b9769b83d5de72520f2500e0, String  c18f60d71139b909e1bc745dcca77e3f9, String  cc463bfced87bf099c3125a86fe30843e, Int32  c135c28f517be83dec993779636acd860, String  cdba5e903fed69597b9572ece7ed2b748, Object  c70fb72fe0bbd8641a8134e71b176a648, Int32  caafe238b1576633e332c6c566f5707f4)
    Any thoughts or help would be greatly appreciated.

    Comment

    Working...
    X