Automation Module for HTTP GET?
Posted: 24 Jan 2017 00:20
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!
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!