Home-Assistant and Node-RED integration with Duet
-
I'm trying to create some automation around my Duet controllers and integrate them into home-assistant and node-red. When I load the URL for the duet the headers contain content-encoding: "gzip" . I've tried to uncompress with gzip and have been unable to get any data. A simple test with curl
curl -H "Accept-Encoding: gzip" -I http://192.168.0.16/#
HTTP/1.1 500 Unknown message type or not authenticatedIn node-red I have tried to push the http payload into a gzip node but it yields an array of char. Converting that array into a string and it is not readable. Also tried to push it into a json node but that failed as well.
Has anyone tried to do this type of integration? Any pointers appreciated.
thanks,
Brendin -
[[language]] curl http://192.168.86.100 | gzip -d | more
Works for me.
More importantly,
[[language]] curl http://192.168.86.100/rr_status ```Returns an uncompressed JSON payload. All the "rr_…." interface requests are documented here: [https://github.com/chrishamm/DuetWebControl](https://github.com/chrishamm/DuetWebControl)
-
Thank you. Exactly what I was looking for,
-
Remember to call /rr_disconnect afterwards or you will get old status messages in your webui