Choose style:

Author Topic: Sensor Status as XML  (Read 2027 times)

0 Members and 1 Guest are viewing this topic.

Offline fillibar

  • Backer
  • *
  • Posts: 2060
  • Thanks: 4
  • Registered : 02/08/2013
Sensor Status as XML
« on: December 05, 2014, 08:46:56 pm »
I was looking over the sensor data provided by the Almond+ that comes off:
<your Almond+ IP here>/cgi-bin/luci/;stok=e7xXxXxXxXxXxXxXxXxXxXx41/almond?cmd=list

The data is useful (although oddly one of my sensors shows as tampered there but not in any other interface) but the formatting is... Pretty awful in my book. Is there any way this could be reformatted as XML and include some additional pieces of information? I can parse it as is... but it is far less convenient than if it was in XML to begin with and that would allow it to be readily used by other methods. Just for grins, here is a sample of my data AND a sample of what I wish that piece would look like in XML:
Code: [Select]
Code: [Select]
<Date>12/05/2014 20:37:22</Date>
<Failed>08/25/2014 18:37:28</Failed>
<Restored>08/25/2014 18:38:00</Restored>

Most of the content is already there for the sensors. It would be nice (not necessary though) to get the type of data ABOVE that (I put it in XML as Hostname through Power) also. The main thing here is the formatting of it AND having it available as XML output. The only change I made to the Sensor fields that were there was I changed the "name" field within DeviceValues to be "Feature" because looking over my sensors that seems to be more of what they are and it makes it easier to distinguish from the sensor "Name" field.
Almond 3 mesh handling the home.

Offline rpr69

  • Backer
  • *
  • Posts: 133
  • Thanks: 0
  • Registered : 08/09/2014
Re: Sensor Status as XML
« Reply #1 on: January 06, 2015, 02:00:28 pm »
It should be a fairly simple thing to add for the developers, since the raw data is already stored as XML in the file /DeviceList.xml so it would just need to be exposed via the web server. Worst case you could probably symlink it.

See my Wiki page for how I use it to upload data to a cloud database.


Page created in 0.052 seconds with 17 queries.