> Then there will be enough to add some option, like reporting=yes, to
> items configuration.
>
> Just wanted to know if somebody works on something like that? If not,
> I would give it a try myself then. And do you have any plans to add
> some kind of persistent storage or database to openHAB which can be
> used to store historical values?
Yes, definitely! We have http://code.google.com/p/openhab/issues/detail?id=21, which will deal with persisting historical data in different ways. This is THE major feature that I would like to add for the next release (1.0.0). ThinkSpeak might then be one of many "persistence providers" in this new framework - sounds good to me :-)
In the next few days I want to start a discussion around that here in the group, so stay tuned.
Regards,
Kai
Well, while my post was moderated :-) I made some progress. First I
made it based on rules instead of drules (rules are available starting
from openhab 0.9). Then I discovered that when both temperatures come
from bus at the same time it does not work with ThingSpeak because
they have 1 request / 15 seconds limit for a data stream. So a
modified variant looks like this:
rule ThingSpeak
when
Item House_Temperature received update
then
sendHttpGetRequest("http://api.thingspeak.com/update?key=<ThingSpeak
key>&field1=" + House_Temperature.state.toString() + "&field2=" +
Weather_Temperature.state.toString());
end
And it just works. Another idea could be sending this values for
certain amount of sensors using simple crontab once every 1-5 minutes.
But this only works for numeric values, for movement sensor, for
example, you need to send the value as soon as you got update from the
bus or it will just be irrelevant :-)
I used ThingSpeak among others because of it's flexible and javascript
based (which means it work on iPad and iPhone too!) graph library.
Best regards,
Victor Belov
> --
> You received this message because you are subscribed to the Google Groups "openhab" group.
> To post to this group, send email to ope...@googlegroups.com.
> To unsubscribe from this group, send email to openhab+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/openhab?hl=en.
>