Just started out with the whole data logging adventure and am looking forward to being able to observe some of this information over the long haul. As a starting point, I’d like get a basic activity log rolling with the status of lights and security sensors as they change throughout the day. EventWatcher does an excellent job of reporting this information with the standard “log” report but ultimately I would like to have this information in my custom dashboard which means I need the data in json or some other standardized format.
Checking into the development branch of DataYours I found the inclusion of the Graphite API which would appear to be what I need to get the data in the format I need. Following the setup documentation of DataYours I went in and “watched” all of the variables (Last Trip, Tripped <- For Security & Status <- For Lighting) to get the ball rolling.
So now… if I do something like this:
data_request?id=lr_render&format=json&target=Vera-50002137.018.urn:upnp-org:serviceId:SwitchPower1.Status I’m able to get what appears to be on/off (status) for Device ID: 18 for every second. So… partial success? Of course what I want to do is gather the same data available in the Event Watcher log but am somewhat lost how to get this info and/or if it’s even possible to get from DataYours. So before I go spending hours if not days trying to retrieve this info from DataYours I’m hoping to confirm #1…that this is possible and #2 Any tips on getting this data?
I’ve played around with wildcards etc as suggested in the Graphite API documentation but I’m just not having any luck… Any direction would be greatly appreciated!