HTTPd 2  

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: v2022.0.1 released on Aug. 18, 2023
Release downloaded: 3 times
Requires: Indigo v2022.1.2 or higher
(Check the Releases tab below for older releases that may have different requirements)
  Download latest release

HTTPd

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.

Release details
Released on: Aug. 18, 2023
Requires: Indigo v2022.1.2+
Downloaded: 3 times 
Changes in this release

Python3 port bug fixed.

Release details
Released on: June 17, 2023
Requires: Indigo v2022.1.2+
Downloaded: 0 times 
Changes in this release

Updated to Python 3 for Indigo 2022.X and later.

Release details
Released on: Feb. 13, 2021
Requires: Indigo v7.0.2 thru v2022.2
Downloaded: 0 times 
Changes in this release

Fix for issue #8, implements a keep-alive timer.

Release details
Released on: Oct. 18, 2020
Requires: Indigo v7.0.2 thru v2022.2
Downloaded: 0 times 
Changes in this release

Modified handing of webhook in request URL for more flexibility.

Release details
Released on: Oct. 8, 2020
Requires: Indigo v7.0.2 thru v2022.2
Downloaded: 0 times 
Changes in this release

Bug fixes

Release details
Released on: May 17, 2020
Requires: Indigo v7.0.2 thru v2022.2
Downloaded: 0 times 
Changes in this release

Implement optional timestamp

Each server device now has an option to set a timestamp state each time a setvar request is handled.

Release details
Released on: Feb. 2, 2020
Requires: Indigo v7.0.2 thru v2022.2
Downloaded: 0 times 
Changes in this release

Fixes for Proxy devices.

Any actions involving Proxy devices now need to specify the Server device it's associated with.