Page 1 of 1

Database interface

Posted: 04 Mar 2013 11:44
by p_mihai_ro
Hi,

We see the need of having the list of events from the Z-Wave network stored in a table of some kind, that can could be later reported on. This would bring very nice functionality like history of temperature, access, devices started/stopped, doors opened/closed and so on.

Will this be available (is it in the roadmap at any point in the future)? If not, how do you suggest it is best to be implemented from outside the Z-Way API?

Thanks in advance,
Mihai.

We will not store historical

Posted: 04 Mar 2013 11:44
by PoltoS
We will not store historical of each value, since it takes too much memory. But it is quite easy to do.

You need to attach your own function to the value change you are interrested in (use data.level.bind()) and then
- run external program with system() to store it in DB or somewhere else or
- use loadObject()/saveObject() to store the history in JSON object