Announcement

Collapse
No announcement yet.

Scripting syntax help - HS3 and BlueIris

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

    Scripting syntax help - HS3 and BlueIris

    Hi Guys, I'm hoping someone can point me in the right direction here....

    We have HS3Pro and Blue Iris4 running together on a Win10Pro machine.

    I'm trying to Set Macro text in BlueIris from HS Events using an Immediate script.

    through an http command like this, it works, the macro text is updated in BI.
    http://10.xx.xx.xx:9080/admin?macro=...r=user&pw=user

    using the HS Control Panel script input, this script runs without error in HS, but does not affect BlueIris macro text.
    &hs.urlaction("http://10.xx.xx.xx","/admin?macro=9&text=NewText&user=user&pw=user",FALSE,9080)

    the "user" is an Admin account, but the syntax is not throwing errors. I have also tried using the hs.geturl("http://..... and no results.

    Any Ideas ?? thanks

    Blair

    HomeSeer: HS3 Pro | Blue-Iris 4 on Windows10Pro
    | Devices: 832 | Events: 211 |
    Plug-Ins: Z-Wave | RFXCOM | UltraRachio3 | Sonos
    BLLAN | BLLOCK | NetCAM | Global Cache Pro | Blue-Iris4

    #2
    Try &nhs.urlaction
    tenholde

    Comment


      #3
      Check your parameters. For hs.URLAction there should be four, all String.

      hs.URLAction(server_url, action, data, headers)

      action is "GET" or "POST".

      For hs.getURL, its

      hs.getURL(host, page, strip_tags, port)

      host & page are String, strip_tags is Boolean, port is Integer.

      Comment


        #4
        Thanks zwolfpack!! You've pulled me out of a hole before, this was good.

        The final script syntax to Trigger a camera in BlueIris looked like this

        &hs.getURL("localhost","/admin?camera=Cam04&trigger&user=userAdmin&pw=user92",TRUE,90 80)


        tenhold
        &nhs. or &hs.

        what's the plus here? Thanks
        Blair

        HomeSeer: HS3 Pro | Blue-Iris 4 on Windows10Pro
        | Devices: 832 | Events: 211 |
        Plug-Ins: Z-Wave | RFXCOM | UltraRachio3 | Sonos
        BLLAN | BLLOCK | NetCAM | Global Cache Pro | Blue-Iris4

        Comment

        Working...
        X