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
  HTTP Post zra 7 131 05-18-2018, 08:47 AM
Last Post: zra
  New Z-Wave driver preview Dean Roddey 13 870 05-17-2018, 01:02 PM
Last Post: Dean Roddey
  Sonos Driver with Sonos Connect Amp zra 5 206 05-05-2018, 09:43 AM
Last Post: Dean Roddey
  Radio RA driver issue dogman 7 290 04-22-2018, 08:33 AM
Last Post: Dean Roddey
  Preview of new Web based RIVA client Dean Roddey 464 65,706 04-07-2018, 12:13 PM
Last Post: Dean Roddey
  Docs Link broken - Template Scaling Shaky 3 226 03-17-2018, 04:18 PM
Last Post: Dean Roddey
  IFTT and HTTP Trigger parameter passing setup Shaky 5 350 03-09-2018, 10:20 PM
Last Post: Dean Roddey
  Elk Driver fails Ron Haley 11 552 03-08-2018, 07:28 PM
Last Post: Ron Haley
  Nest driver disconnecting and reconnecting dogman 59 4,635 03-08-2018, 05:23 PM
Last Post: dogman
  Aeotec USB stick, existing zWave (v3) driver? IVB 3 270 03-05-2018, 08:57 PM
Last Post: znelbok

Forum Jump:


Users browsing this thread: 1 Guest(s)