Developer: | FlyingDiver Like this plugin? Show your appreciation! |
Category: | IP Communications |
Github: | Github Repo |
Assistance: | Get help! |
Plugin ID: | com.flyingdiver.indigoplugin.httpd2 |
Latest release: | v2.2.0 released on Feb. 13, 2021 (this release is only compatible with Indigo 2022.2 and earlier) |
Release downloaded: | 0 times |
Requires: | Indigo v7.0.2 thru v2022.2 |
(Check the Releases tab below for older releases that may have different requirements) | |
Download latest release |
Plugin for the Indigo Home Automation system.
Runs one or more HTTP server(s) inside Indigo.
Create an HTTP Server device for each port you want served. Each service instance (Indigo device) has it's own port, username/password, etc. If you want to enable SSL for a port, see the Wiki for instructions.
You'll need to set up port forwarding on your router to the specified port. Only ports > 1024 can be used.
Example URL to activate the plugin:
http://username:password@my.domain.org:5566/setvar?foo=bar&zig=zag
The first "action" the plugin supports is "/setvar". This will set the specified variables to the values given. For protection, the variables have "httpd_" prepended to the names provided. In this case, the Indigo variable "httpd_foo" would be set to "bar", and the Indigo variable "httpd_zig" would be set to "zag". If they don't exist, the variables are created in an "HTTPd" variable folder. "/setvar" is available with either GET or POST http methods.
The next action is "/webhook". The syntax is similar:
http://username:password@my.domain.org:5566/webhook?name=test
In this case, the plugin will do a broadcastToSubscribers call:
indigo.server.broadcastToSubscribers(u"httpd_webhook", broadcastDict)
and the contents of broadcastDict would be:
{
'request': {
...<the Headers from the HTTP POST request>...
},
'payload': {
... <the POST payload>...
},
'vars': {
'name': 'test',
}
}
For more details on the URL path and payload options see the Wiki.
Released on: | Feb. 13, 2021 |
Requires: | Indigo v7.0.2 thru v2022.2 |
Downloaded: | 0 times |
Download this release |
Fix for issue #8, implements a keep-alive timer.
Released on: | Oct. 18, 2020 |
Requires: | Indigo v7.0.2 thru v2022.2 |
Downloaded: | 0 times |
Download this release |
Modified handing of webhook in request URL for more flexibility.
Released on: | Oct. 8, 2020 |
Requires: | Indigo v7.0.2 thru v2022.2 |
Downloaded: | 0 times |
Download this release |
Bug fixes
v2.1.0 | Requires Indigo v7.0.2 thru v2022.2 | Released May 17, 2020 | Release 2.1.0 - timestamp for setvar actions |
Released on: | May 17, 2020 |
Requires: | Indigo v7.0.2 thru v2022.2 |
Downloaded: | 0 times |
Download this release |
Implement optional timestamp
Each server device now has an option to set a timestamp state each time a setvar request is handled.
Released on: | Feb. 2, 2020 |
Requires: | Indigo v7.0.2 thru v2022.2 |
Downloaded: | 0 times |
Download this release |
Fixes for Proxy devices.
Any actions involving Proxy devices now need to specify the Server device it's associated with.