-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Google Code skipped issue 21 #89
Comments
From [email protected] on August 22, 2011 04:59:36 Hi Kai, About persistence (i prefer to move our conversation here), take a look at DB4O deployed in a OSGi environment. http://www.osgi.org/wiki/uploads/CommunityEvent2007/PersistenceForOSGi_CRosenberger.pdf I think that it could be a good idea to have such a service in OSGi and then, a specific bundle could manage the item/state info in openHab. This way, other bundles could use persistence service and you could develop specific code for openHab items persistence requirements, and also for query this info. Do you think it could be a good idea? regards |
From kai.openhab on August 22, 2011 05:15:50 I didn't yet know about db4o for OSGi, this sounds indeed very interesting with a very low footprint. |
From [email protected] on August 22, 2011 06:06:55 Yes, i think (we are starting with db4o, too). A couple of links: http://measuringmeasures.com/blog/2009/1/20/building-a-time-series-databse-in-db4o.html http://developer.db4o.com/Blogs/Product/tabid/167/entryid/131/Default.aspx I think that it's an already walked path, so it could be easy to deal with. We will do some research about that so i will keep you update. Regards |
From kai.openhab on August 24, 2011 12:46:54 This seems to be a better link as it includes some follow up on the initial posting, which speeds up performance by 100x: http://developer.db4o.com/Forums/tabid/98/aft/5193/Default.aspx Ok, it looks promising, so let me know the outcome of your research - I'd be more than happy to include a timeseries-capable state persistence based on db4o with your help! |
From [email protected] on August 25, 2011 05:36:35 Thanks Kai, You could follow part II and III with this links: http://measuringmeasures.blogspot.com/2009/03/db4o-performance-tuning-part-ii.html http://measuringmeasures.blogspot.com/2009/03/db4o-performance-tuning-part-iii.html Well, we've prepared a bundle with db40 as a plugin, and some services exposed (basic things, get connection, crud...) We will update this thread with news. |
From [email protected] on September 16, 2011 02:28:31 Hi again, As i promised, i'm going to update this thread with our steps forward a persistence solution. Attached, you will find a pdf file (in english) with the detail of the solution, and also a png (in spanish) where you could see images that could help to understand the code and final results. There is a tricky way to select the items to log. We have used a specific group, so you must create the group and associate the items to log to that group. We have just finished a working version, and it works fine. It would be great to receive your feedback. regards. Attachment: Aviary srvpsat-gpm-int Picture 1.png DB4O(1).pdf |
From [email protected] on September 16, 2011 02:32:04 In the UI layer, we plan to use flot ( http://code.google.com/p/flot/ ) to draw different charts with this info. Things to do in persistence layer:
|
From kai.openhab on September 16, 2011 02:39:32 Wow, that looks cool - allow me the weekend to look over it and provide you feedback!
No, not for the moment as openHAB is lacking security features in general... |
From kai.openhab on September 17, 2011 04:10:21 Hi David, As promised, here is some feedback:
That much for now, looking forward to your answers :-) |
From [email protected] on October 17, 2011 05:52:56 hi everyone, how is this going? seems promising!! |
From [email protected] on October 20, 2011 03:19:50 Hi there, We will update this thread asap. Thanks |
From kai.openhab on November 27, 2011 13:47:16 Asap is a very relative term ;-) |
From kai.openhab on December 06, 2011 13:02:32 If there is no response on this issue, I might look into it myself soon as I am really requiring this feature and would like to see some progress. |
From [email protected] on December 13, 2011 08:26:17 Hi Kai, First of all, sorry for the delay... We will send our work as soon as possible, in fact, we want to release it today, but we are suffering some troubles with the development enviroment, probably due to the last changes comitted to the repository (drools, etc.) We are trying to rebuild the enviroment from scratch and see if it's related to our code. We will keep you update. Regards |
From [email protected] on December 20, 2011 08:47:02 Hi Kai, First of all, i want to send you a brief explanation of how it's working. It's not perfect, but could be a good start: We have developed 5 bundles:
To use the last bundle (to recover data), there are two services: url = localhost:8080/query/alerts ==> It returns all traced events in the last week (doesn't matter which item) ordered by date (it could feed a "last alarms" service). Kai, could you please tell me the usual way to send/share this code? Thanks. |
From [email protected] on December 20, 2011 08:48:00 Sorry, i forgot to explain the 4th bundle. It's a MySQL implementation but it's not ready yet. |
From kai.openhab on December 20, 2011 12:01:17 Thanks, looking forward to dive into the code :-)
Simply create a clone of the repo at http://code.google.com/p/openhab/source/clones and push your changes to this repository. Regards, Status: Started |
From [email protected] on December 20, 2011 12:38:41 What about external persistence? Do you know pachube or thingspeak? It could be great to have these features in openhab. As far as i know, thingspeak allows http put calls to send your measures (limited, i think) and pachube has json http calls (maybe a little harder). What about using pachube or thingspeak in rules? This way you could check or uncheck which items do you want to trace... and the only thing you need is a function (pachube-trace, thingspeak-trace), and maybe a couple of lines in the conf file. What do you think? |
From [email protected] on December 21, 2011 08:56:26 Hi, You could get all changes from our clone: http://code.google.com/r/dmorales-persistence/ We have uploaded all bundles (unless mysql, number four) and also pom files, so you can check our code. Regards |
From kai.openhab on December 21, 2011 09:02:16 Cool, thanks! I cannot promise that I can review it before christmas, but definitely still this year :-) |
From [email protected] on December 21, 2011 09:03:35 ok, have nice days¡ |
From kai.openhab on December 30, 2011 13:31:19 I promised too much, the year end comes faster than expected... I already had a look at the code, but to give a decent feedback with reflected suggestions, I will need some more time - but you are not forgotten! Have a good start in 2012! |
From kai.openhab on February 02, 2012 13:23:20 I finally managed to get through the code - it already looks very useful indeed! |
From openhab.lb on March 02, 2012 04:01:33 i have all setup, the data is going to the database, how do use them, how to get out from there ? do you have widget for openhab ? how do you connect to the database ? i would like to have a graph from temperatures ... how is that possible ? |
From kai.openhab on March 02, 2012 04:40:07 Might I ask to wait with those questions until the feature is implemented? Labels: -Version-later Version-1.0.0 |
From [email protected] on March 02, 2012 04:40:40 Please, Read comment #15 in this thread (how to recover data) |
From openhab.lb on March 02, 2012 05:59:39 Thanks a lot for answering i could set it und the data is in the database ... but with To use the last bundle (to recover data), there are two services: url = localhost:8080/query/alerts ==> It returns all traced events in the last week (doesn't matter which item) ordered by date (it could feed a "last alarms" service). i don´t know how to do that... HTTP ERROR 404 Problem accessing /query/alerts. Reason:
|
From openhab.lb on May 04, 2012 00:22:02 Hi Kay, i have build the peristence branch. i copied the addons in the addon directory and they are loaded, but no database files are created and it seems that the persistence directory is not observed by the folderobserver. i used you default configuration with the line for the folderobserver |
From kai.openhab on May 04, 2012 00:28:04 The feature branch has been merged to the default branch (and only there the Maven build has been tested), so please use this. Details on what has been implemented for this issue can be found here: https://groups.google.com/forum/?fromgroups#!topic/openhab/fecbooXCN_U Status: Implemented |
[build fix] karaf 4.0.4-snapshot no longer available.
Skipping this issue number to maintain synchronization with Google Code issue IDs.
Original issue: http://code.google.com/p/openhab/issues/detail?id=21
The text was updated successfully, but these errors were encountered: