Announcement

Collapse
No announcement yet.

Script doesn't work in HS but works in ten scripting

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

  • alan_smithee
    replied
    Wow I feel like such a dumb ...
    I can't believe I didn't paste it in the right script AND didn't see it.
    Thank you that did solved it.

    Leave a comment:


  • jon00
    replied
    Try naming it Test.vb rather than Test.cs. The script you posted is written in VB.NET

    Leave a comment:


  • alan_smithee
    started a topic Script doesn't work in HS but works in ten scripting

    Script doesn't work in HS but works in ten scripting

    This is part of the script that I created in tentscripting

    Code:
    Sub Main(parm As Object)
    	Dim CamUser As String = "user"
    	Dim CamPassword As String = "password"
    	Dim CamIP As String = "IP"
    	Dim CamPath As String = "/Streaming/Channels/1/picture/"
    	Dim Snapshot1 As String = "html/images/camera/1.jpg"
    
    	hs.GetURLImage("http://" & CamUser & ":" & CamPassword & "@" & CamIP, CamPath, False, 80, Snapshot1)
    End Sub
    It run in ten scripting without any errors. But when I compile in in HS I get this error

    Code:
    Compiling script /etc/HomeSeer/scripts/test.cs: {interactive}(11,17): error CS1525: Unexpected symbol `Object', expecting `)', `,', `[', `]', or `=' {interactive}(13,8): error CS1525: Unexpected symbol `Dim', expecting `)', `,', `[', `]', or `=' {interactive}(30,37): error CS1519: Unexpected symbol `end-of-file' in class, struct, or interface member declaration {interactive}(30,37): error CS8025: Parsing error {interactive}(2,1): warning CS0105: The using directive for `System' appeared previously in this namespace {interactive}(3,1): warning CS0105: The using directive for `System.Linq' appeared previously in this namespace {interactive}(4,1): warning CS0105: The using directive for `Scheduler' appeared previously in this namespace {interactive}(5,1): warning CS0105: The using directive for `HomeSeerAPI' appeared previously in this namespace
    I have no idea how to trouble shoot this nor do I know what the error message means.
    I'm running HS on debian with mono. Is this the issue?
Working...
X