Announcement

Collapse
No announcement yet.

Script command to toggle output?

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

    Script command to toggle output?

    Hi, what script command command would you use to toggle this output?

    Output 003 [Garage Door]

    No toggle selection shows under the control button drop downs, only On
    and Off.

    And how would select the toggle time?

    When I try to view the PDF help file my, Acrobat Reader 7 Errors and has to Close, I have no problems with other PDF's.

    Thanks,
    Mark

    #2
    Originally posted by MStan View Post
    Hi, what script command command would you use to toggle this output?

    Output 003 [Garage Door]

    No toggle selection shows under the control button drop downs, only On
    and Off.

    And how would select the toggle time?

    When I try to view the PDF help file my, Acrobat Reader 7 Errors and has to Close, I have no problems with other PDF's.

    Thanks,
    Mark
    Here is the syntax:

    PHP Code:
    Public Function ControlOutput(ByVal strOutput As String_
                                             ByVal strAction 
    As String_
                                             ByVal strOnTime 
    As String) As String
    strOutput “001” – “208”
    strAction “On”“Off”“Toggle”
    strOnTime “0” – “65535” 
    Here is the sample code:

    PHP Code:
    Sub Main(ByVal parm As Object)
      
    '
      ' 
    Toggle output 003 for 60 seconds
      
    '
      Dim strResults As String = hs.plugin("UltraM1G").ControlOutput("003", "Toggle", "60")
      If strResults.Length > 0 Then
        Call hs.WriteLog("Error", strResults)
      End If
    End Sub 
    Can you view this PDF? http://automatedhomeonline.com/HomeS...sers_Guide.pdf

    Regards,
    Ultrajones
    Plug-ins: UltraMon, UltraM1G, UltraCID, Ultra1Wire, UltraLog, UltraWeatherBug, UltraPioneerAVR, UltraGCIR

    Comment


      #3
      Originally posted by Ultrajones View Post
      Here is the syntax:

      PHP Code:
      Public Function ControlOutput(ByVal strOutput As String_
                                               ByVal strAction 
      As String_
                                               ByVal strOnTime 
      As String) As String
      strOutput “001” – “208”
      strAction “On”“Off”“Toggle”
      strOnTime “0” – “65535” 
      Here is the sample code:

      PHP Code:
      Sub Main(ByVal parm As Object)
        
      '
        ' 
      Toggle output 003 for 60 seconds
        
      '
        Dim strResults As String = hs.plugin("UltraM1G").ControlOutput("003", "Toggle", "60")
        If strResults.Length > 0 Then
          Call hs.WriteLog("Error", strResults)
        End If
      End Sub 
      Can you view this PDF? http://automatedhomeonline.com/HomeS...sers_Guide.pdf

      Regards,
      Ultrajones
      No I can't, that's the PDF Link that gives me the error...

      Mark

      Comment


        #4
        The link works for me,

        tenholde
        tenholde

        Comment


          #5
          Originally posted by tenholde View Post
          The link works for me,

          tenholde

          Ok, I got it. Their must have been some sort of problem with my PDF
          reader, I was running Ver 7.1. I just removed it and installed the latest ver 9, now all is Good.



          Thanks,
          Mark

          Comment


            #6
            Originally posted by Ultrajones View Post
            Here is the syntax:

            PHP Code:
            Public Function ControlOutput(ByVal strOutput As String_
                                                     ByVal strAction 
            As String_
                                                     ByVal strOnTime 
            As String) As String
            strOutput “001” – “208”
            strAction “On”“Off”“Toggle”
            strOnTime “0” – “65535” 
            Here is the sample code:

            PHP Code:
            Sub Main(ByVal parm As Object)
              
            '
              ' 
            Toggle output 003 for 60 seconds
              
            '
              Dim strResults As String = hs.plugin("UltraM1G").ControlOutput("003", "Toggle", "60")
              If strResults.Length > 0 Then
                Call hs.WriteLog("Error", strResults)
              End If
            End Sub 
            Can you view this PDF? http://automatedhomeonline.com/HomeS...sers_Guide.pdf


            Regards,
            Ultrajones
            Should toggle show up in the drop down section of the HS device control
            page?....only On and Off Show as selections.

            Mark

            Comment

            Working...
            X