What's the best way to send real-time data KM? In this scenario, a macro would be continuously running as basically a process. AppleScript is the only way I can think of. Any other ideas?
While I'm here, congrats and appreciate to Peter for another incredible update!
Data: Packets of 32 integers or floats (but not both)
Frequency: It's not possible to know, but probably faster than a KM can (and should) handle. Fortunately, a sampling of the packets is fine; ideally the period would be (roughly) higher than 50 ms.
Function: KM will perform simple calculations at O(1), broadcasting the results as a real-time stream (of integers or floats, but not both) to user applications. (The broadcast frequency would be similar to the incoming stream.)
I'm looking to do a similar thing as @notsteve. I would like to have a remote HomeKit automation periodically send temperature and humidity data to my local instance using an http POST message so I can run a KM macro based on what is happening on a HomeKit sensor in a house in another state.