Was wondering if there was any way to subscribe (or any other means) to the log? Was hoping to create something I miss from Homeseer. There is a app that looks at the log and reports based on keywords. Things like error or warn. Custom phrases too.
I know we can look at individual device logs but what about the full log - 'Logs'?
Thanks @dan.t, I also found your code from this post. I modified it to use the current way HE handles websocket but it won't connect. Any ideas what I'm doing wrong? Thanks
(using the latest Chrome browser on a Chromebook beta channel)
Holy crap, I put in 8080 as a wild guess and it connected!
Thank you!
edit:
Seeing great data in the log to:
dev:57582019-08-31 08:01:23.424 am debugGot Data {"name":"Living Room Shelf Multisensor","msg":"Living Room Shelf Multisensor motion is inactive","id":98,"time":"2019-08-31 08:01:17.713","type":"dev","level":"info"}
dev:57582019-08-31 08:01:23.415 am debugGot Data {"name":"Test","msg":"In motionSensorHandler (v2.0.0) - sZone: true - Status: inactive","id":7371,"time":"2019-08-31 08:01:12.437","type":"app","level":"debug"}
dev:57582019-08-31 08:01:23.406 am debugGot Data {"name":"Living Room Iris Motion Sensor","msg":"Living Room Iris Motion Sensor is inactive","id":1567,"time":"2019-08-31 08:01:12.260","type":"dev","level":"info"}
dev:57582019-08-31 08:01:23.398 am debugGot Data {"name":"aWeb socket","msg":"Got Data {"name":"aWeb socket","msg":"Got Data {"name":"Kitchen Iris Motion Sensor","msg":"Kitchen Iris Motion Sensor is inactive","id":1589,"time":"2019-08-31
You can connect to the standard port 80 to get the logs if you come from a different device like a raspberry PI or so. If you do it from within HE, you need to connect to port 8080. It has to do with how the core HE SW listens to ports. You could have also tried to connect to ws://localhost/logsocket , that might have worked to. This way you don't have an IP address in the device code and make it easier to share with others. Just a thought...