I’m trying to make a script using the Event API, but I can’t get it to work. The reason for using it, is that I need to monitor some events on my gateways. I have used the documentation found here
After doing a little bit of research it looks like I need something called a SSE client, but after trying to use that in python and Node-RED - I still can’t get it to work.
Does anybody have any experience with this or can point me in the right direction ?
I have a working Java implementation to read from the event api:
Things that my code does, specifically for the event stream:
Use media type “application/json; charset=utf-8”, I suspect this is internally converted to HTTP header “Content-type: application/json; charset=utf-8”
Hi,
like jssani I am struggling with the HTTP API for receiving events for a specific gateway.
Thanks @bertrik for developing a Java client.
This is my try in doing the same in python: