Engineerisaac Posted September 17, 2018 Share Posted September 17, 2018 We have a cloud service that has web events. For the driver creators out there like Alan and blackwire. What is in your opinion the best way to send events into control4 from the web? I guess im asking a dumb qustion more so anybody know the best and most efficent way besides a poling loop of looking to the cloud via a timer interval. Link to comment Share on other sites More sharing options...
msgreenf Posted September 17, 2018 Share Posted September 17, 2018 Web hooks? We have a cloud service that has web events. For the driver creators out there like Alan and blackwire. What is in your opinion the best way to send events into control4 from the web? I guess im asking a dumb qustion more so anybody know the best and most efficent way besides a poling loop of looking to the cloud via a timer interval.Sent from my Pixel 2 XL using Tapatalk Link to comment Share on other sites More sharing options...
Engineerisaac Posted September 17, 2018 Author Share Posted September 17, 2018 I guess I'm curious if you just responded for the sake of responding... Sure great web hooks, does that imply that the controller is constantly polling the web hook with an interval timer? Or is there a more efficient and less taxing way? - - Sent from my potato. Link to comment Share on other sites More sharing options...
Rexabyte Posted September 17, 2018 Share Posted September 17, 2018 Use a websocket so you get bidirectional communication. EDIT: Just to expand a little more. Use something like the JSON RPC protocol on top of websockets to support method calls and broadcast messages. https://www.jsonrpc.org/specification Link to comment Share on other sites More sharing options...
alanchow Posted September 18, 2018 Share Posted September 18, 2018 Websockets, http long polling, MQTT, the list goes on. Really depends on what you're comfortable with implementing, how much load your server can handle and also how fast you want the system to react. Link to comment Share on other sites More sharing options...
Engineerisaac Posted September 20, 2018 Author Share Posted September 20, 2018 My Web services are fantastically fast. So I'm looking for near real-time event executions. What would be best? And by chance do you have any example syntax I can disect? I know that's asking slot. But I thought ide ask. Link to comment Share on other sites More sharing options...
RyanE Posted September 20, 2018 Share Posted September 20, 2018 I'd suggest something in your web services that accepts an incoming connection from Control4, likely WebSockets if I were doing it. The main reason is security. I'd be wary opening up your firewall to any ports on the Control4 controller (or a driver running on that controller). RyanE Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.