Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
HTTP-based Trigger Driver Docs
#1
Where are the docs for the driver?

The driver doc page is so frustrating with it being set in categories - can we have a list of drivers in alphabetical order.
Mykel Koblenz
Illawarra Smart Home
Reply
#2
Actually that one is not really documented per se. I spent a lot of today working on those docs. Basically it falls into the IR/RF family of drivers, all of which use the same client side interface. So it's the same driver that the UIRT, GC-100 and so forth use. So choose any of those for the basics, though the HTTP driver specifically isn't currently discussed much in there. I was working on improving that today for the conversion to HTML. And of course it'll be vastly easier to have a couple of different views of the drivers in the new stuff since it's generated from XML, so the lists can be output programmatically instead of me struggling to make sure to keep various views of them in sync.

But, basically check the generic IR/RF driver for the bulk of it. The only thing specifically about the HTTP driver is that the parameterization is done via query parameters. So you can have a base url http://myserver/PowerOn, and you can call that with various query parameters, http://myserver/PowerOn?Tar=TV or http://myserver/PowerOn?Tar=Rec.

The names of the parameters don't really matter. They will be converted to just a space separated list of values, which are passed to your action as the 2nd action parameter. The first is the name of the trained action that was invoked. The order of the parameters will be the order they were in on the URL.

For trailing, just use a browser to invoke the URL a number of times in a row until the driver is happy. Sometimes it takes more than a few, because some browsers send queries other than what you enter, such as default icon queries and such, the first time you hit a new site or the first time in a while. The driver needs to see the same trigger input a few times in a row to be sure it's got the right thing.
Dean Roddey
Software Geek Extraordinaire
Reply
#3
I also fixed a number of issues in the blaster tab side of the IR client driver interface as well while doing this, stuff that was left over from the 5.x GUI conversion that was never caught.
Dean Roddey
Software Geek Extraordinaire
Reply
#4
Thanks Dean

It was the parameterization that I needed information on.  The rest of it is simple generic stuff just the usage of parameters.

So if we have Tar=Rec does that mean its a local variable named Tar with a set value of Rec
Mykel Koblenz
Illawarra Smart Home
Reply
#5
No, the names have on meaning. You can just call them 1=X&2=Y or whatever. They will changed to a space separated list of values (e.g. "X Y" in this example) and you will receive this as the 2nd action parameter. The first action parameter will be the name of the action invoked. So you need to know what order they are in and pull them out (you can use the GetNthToken command get to them out easily enough act the action level.)
Dean Roddey
Software Geek Extraordinaire
Reply
#6
I have it generating a by make index now, so a two level list with the top level be makes and the inner lists being models, so that's a good start.
Dean Roddey
Software Geek Extraordinaire
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Nest driver disconnecting and reconnecting dogman 58 1,691 Yesterday, 12:24 PM
Last Post: Dean Roddey
  SSL certificate for HTTP trigger driver RichardU 7 68 01-16-2018, 09:50 AM
Last Post: Dean Roddey
  Preview of new Web based RIVA client Dean Roddey 462 39,001 01-06-2018, 07:06 PM
Last Post: Dean Roddey
  Variables Driver jkmonroe 10 123 01-05-2018, 08:29 PM
Last Post: jkmonroe
  Does GC-100 Driver Support Tri-Port Cable? Jnetto 14 361 12-26-2017, 02:06 PM
Last Post: RichardU
  Russound V2 Driver - no install button bpaetzold 1 73 12-24-2017, 07:13 PM
Last Post: Dean Roddey
  Is there a driver out there for the Honeywell Wi-Fi Smart Thermostat? ghurty 18 3,299 12-21-2017, 06:29 PM
Last Post: Dean Roddey
  Generate Random Number in a Trigger batwater 1 97 12-10-2017, 12:43 PM
Last Post: Dean Roddey
  Writing to an external file from trigger event Ira 21 1,588 11-13-2017, 02:08 PM
Last Post: znelbok
  Zwave via http put kfly 6 670 11-07-2017, 07:57 AM
Last Post: kfly

Forum Jump:


Users browsing this thread: 1 Guest(s)