Announcement

Collapse
No announcement yet.

TextSeer (and WPseer) discussion

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

  • mstrickland
    replied
    Wow - Quick Work - Thanks

    Thanks for the quick work.

    Question - If you specify

    parameter=some value

    on the URL it always matches the FIRST parameter in the header of your script function no matter the name of the parameter in the script header.

    I have this in a script called test.vb:
    Code:
    Sub Main(Parm1 as Object)
    
      hs.WriteLog("TextSeer", "Test text.vb script passed parm1 = (" & Parm1 & ")"  )
    
    end sub
    in the script.

    and the URL is (with real values substituted for the xxx):
    Code:
    http://xxx.xxx.xxx.xxx/textseer?script=test.vb&sub=main&parameter=val1
    I get this in the log:
    Code:
    Test text.vb script passed parm1 = (val1)
    This implies you can pass only a single parameter which is OK because I could append several values with delimiters like (a;b;c) and parse them in the script.

    Can you verify that I am using this correctly?

    THANKS for the new features.

    Leave a comment:


  • Moskus
    replied
    The plugin is updated, download 0.0.3 here: http://board.homeseer.com/showthread.php?p=1122376

    It now supports scripts and "smart toggle" (toggle between "off" and "On Last Level" IF IT EXISTS or just "On" if not.

    Also I'm doing some caching of the device list, to speed things up. It gets refreshed every 5 minutes now.

    Leave a comment:


  • mstrickland
    replied
    Yes - Scripts

    It was late in the evening when I posted this but I have no excuse because English IS my first language. Thanks for understanding what I meant when I said Events and not Scripts.

    If you could allow a script to be run directly and supply a parameter it would make just about anything possible and simple via a URL using Textseer.

    Posting all of the URL options on a thread here would be very nice.

    You should start a Paypal Donation account. I would contribute a few dollars.

    VERY COOL.

    Leave a comment:


  • Moskus
    replied
    Originally posted by mstrickland View Post
    In particular I would like to trigger an event and pass a parameter.
    Events does not take parameters, so that's not possible.

    If you mean scripts, however, I think I can add that.


    I'll write out all the different URL commands.

    Leave a comment:


  • mstrickland
    replied
    Textseer - Cool - Documentation??

    I just discovered Textseer and it works pretty cool. I know I could control HS3 with JSON but it is way more complex than necessary.

    Is there any one place to see all of the URL options? I have gathered up some of the things from various posts so I can control devices and trigger events.

    In particular I would like to trigger an event and pass a parameter.

    Thanks.

    Leave a comment:


  • Moskus
    replied
    ... no, sadly, there's no toggle yet.
    I remember now, I made a script for it but didn't add it to the plugin yet.


    For events, try this:
    To see all event groups
    /textseer?Location1=[Events]


    To see all events in a group:
    /textseer?location1=[Events]&location2=Kontroll


    From there, just grab the Event ID, and execute it like you would with a device but with the command "Run Event":
    /textseer?deviceid=1000&devicecmd=Run%20Event

    Leave a comment:


  • NickStrong
    replied
    Nice, whats the event command? Doesnt say so in the help file.

    Cant find the toggle command in 0.0.2?

    Leave a comment:


  • Moskus
    replied
    See version 0.0.2
    ... I can't remember if it includes toggle (I seldom use toggle), but it can trigger events.

    Leave a comment:


  • Moskus
    replied
    Yes... that too needs to be in the new version.

    Leave a comment:


  • NickStrong
    replied
    Have you been able to add the possiblity to run an event with textseer?

    Leave a comment:


  • NickStrong
    replied
    Awesome. Thanks!

    Leave a comment:


  • Moskus
    replied
    Yeah, but I haven't gotten around to publish it yet, I'll do that this weekend.

    Leave a comment:


  • NickStrong
    replied
    Did you ever implement a toggle function?

    Leave a comment:


  • Moskus
    replied
    Not a problem! I kind of had to, I was depending on it myself...

    Leave a comment:


  • sparkman
    replied
    Thanks for making the HS3 version available Moskus, it works great!

    Cheers
    Al

    Leave a comment:

Working...
X