Database interface

Discussions about RaZberry - Z-Wave board for Raspberry computer
Post Reply
p_mihai_ro
Posts: 3
Joined: 27 Feb 2013 10:48

Database interface

Post 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.
User avatar
PoltoS
Posts: 7565
Joined: 26 Jan 2011 19:36

We will not store historical

Post 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
Post Reply