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
Explorans limites defectum
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
Explorans limites defectum
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
Explorans limites defectum
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
Explorans limites defectum
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  OpenWeatherMap Docs Ron Haley 2 18 5 hours ago
Last Post: Dean Roddey
  New Z-Wave driver preview Dean Roddey 129 11,577 06-11-2019, 10:26 AM
Last Post: gReatAutomation
  Somfy RTS Driver jokermac 4 232 05-29-2019, 10:16 AM
Last Post: Dean Roddey
  Problem with B&K Driver / Keypad kblagron 9 742 03-19-2019, 12:00 PM
Last Post: kblagron
  Problem with EventGhost Driver batwater 2 278 03-17-2019, 12:42 PM
Last Post: Dean Roddey
  Zigbee Driver adamalli 12 1,249 01-17-2019, 06:20 AM
Last Post: CouchPotatoe
  What would the proper trigger to be for a time or a X min before sundown? ghurty 1 395 01-10-2019, 10:08 AM
Last Post: Dean Roddey
  Can't find a rule/trigger IVB 5 595 12-10-2018, 06:03 PM
Last Post: Dean Roddey
  CML Driver IDE [copy/paste] does not work lleo 2 579 11-25-2018, 10:01 AM
Last Post: lleo
  How to update the new zwave stick/driver? ghurty 5 800 11-22-2018, 06:56 PM
Last Post: Dean Roddey

Forum Jump:


Users browsing this thread: 1 Guest(s)