VoiceOfSoftware Posted December 7, 2017 Posted December 7, 2017 Hi, I've scoured the forums for this topic, but must not be searching for the right keywords. I want to send events to my external server in realtime. So for instance, as soon as I turn on a light, I want an outbound REST call sent to my server so it can react. I upgraded to the portal, and I see how I can poll for the latest log file with https://my.isy.io/isy/<apitkey>/rest/logbut I don't see how to push these events at the instant in time they happen. TIA Quote
Jimbo.Automates Posted December 7, 2017 Posted December 7, 2017 Hi, I've scoured the forums for this topic, but must not be searching for the right keywords. I want to send events to my external server in realtime. So for instance, as soon as I turn on a light, I want an outbound REST call sent to my server so it can react. I upgraded to the portal, and I see how I can poll for the latest log file with https://my.isy.io/isy/<apitkey>/rest/logbut I don't see how to push these events at the instant in time they happen. TIA There is no automatic way to have device changes pushed with rest. You could do that with the network resources, but that would be painful. You can subscribe and get changes thru a socket like PyISY does and others http://wiki.universal-devices.com/index.php?title=ISY_Developers Sent from my Pixel 2 XL using Tapatalk Quote
VoiceOfSoftware Posted December 7, 2017 Author Posted December 7, 2017 Thanks, I'm having trouble tracking down PyISY; it seems to link to a dead end. Are there official docs on the socket interface? Quote
Jimbo.Automates Posted December 7, 2017 Posted December 7, 2017 Thanks, I'm having trouble tracking down PyISY; it seems to link to a dead end. Are there official docs on the socket interface?Looks like the PyISY doc links are gone, the source is at https://github.com/automicus/PyISYYes, the wiki has links to the docs and the socket interface. Sent from my Pixel 2 XL using Tapatalk Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.