Page 1 of 1

Automation Module for HTTP GET?

Posted: 24 Jan 2017 00:20
by hp1
Hi,

I've built a perl razberry integration module, which has been working great. I set it to poll every 10 seconds, and it's been reliably for years (started with 1.7.2, and it works with 2.0.0. I haven't upgraded since it's stable).

The every 10 second poll works for the most part, things aren't that time sensitive. However I was thinking if I added in some motion sensors, 10 second polling wouldn't be responsive enough.

Based on this, I'm wondering if there might be a better method. I use niffler, which works great for sending local status updates -- so is there anything automation module that can send all changed data to a URL?

ie http://server/script?device=%DEVICEID%&state=%STATE%

with the DEVICEID and STATE being replaced by dynamic data?

In reading the forums, there is a HTTP device, which a static URL can be created and then associated with a device -- however I don't think that will work since I want the change to be sent, plus creating a 1-1 mapping of fake HTTP devices to real devices isn't that scalable.

Any ideas, suggestions? Having the ability to push out updates would be an awesome addition to zway!

Re: Automation Module for HTTP GET?

Posted: 24 Jan 2017 13:25
by Isaksson
Hello.
Take a look at the MQTT Module.
And if you really need http and not MQTT then you could use example Node-RED to push http when MQTT message is received.

Re: Automation Module for HTTP GET?

Posted: 07 Feb 2017 00:39
by hp1
Thanks for the pointer. Wasn't quite what I needed, but gave me the idea to create an automation module. So far using a new razbery2 with dummy devices my HTTPGet plugin seems to send http requests to the integration server.