<?xml-stylesheet type="text/xsl" href="https://community.element14.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>[CaTS] ForgetMeNot - Week 3: Data persistence and charts with OpenHAB</title><link>/challenges-projects/design-challenges/forget-me-not/b/blog/posts/cats-forgetmenot---week-3-data-persistence-and-charts-with-openhab</link><description>Previous posts for this project: [CaTS] ForgetMeNot - Index [CaTS] ForgetMeNot - Week 0: Project Description [CaTS] ForgetMeNot - Week 1: EnOceanPi and Sensors [CaTS] ForgetMeNot - Week 2: Elro CoCo and Pi Cam with OpenHAB [CaTS] ForgetMeNot - 3D Printing</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: [CaTS] ForgetMeNot - Week 3: Data persistence and charts with OpenHAB</title><link>https://community.element14.com/challenges-projects/design-challenges/forget-me-not/b/blog/posts/cats-forgetmenot---week-3-data-persistence-and-charts-with-openhab</link><pubDate>Sun, 04 Oct 2015 12:24:13 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:3feec164-d1a4-40a2-8588-a226114afe03</guid><dc:creator>gonium</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Just a quick addition: I needed to add an item for the temperature chart period - otherwise, OpenHAB wasn&amp;#39;t able to detect the type of the switch in the sitemap. The result was that all three graphs were shown simultaneously. This is how my item definition looks like:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;[embed:dc8ab71f-3b98-42d9-b0f6-e21e02a0f8e2:3ef06e6b-9b7d-4651-b12d-db8be7f5e991:type=text&amp;amp;text=Number+Temperature_Chart_Period+%22Chart+period+%5B%25s%5D%22]&lt;/p&gt;&lt;div&gt;&lt;/div&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Hope this helps. Thanks for this great walkthrough!&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;-Mathias&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=18216&amp;AppID=100&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: [CaTS] ForgetMeNot - Week 3: Data persistence and charts with OpenHAB</title><link>https://community.element14.com/challenges-projects/design-challenges/forget-me-not/b/blog/posts/cats-forgetmenot---week-3-data-persistence-and-charts-with-openhab</link><pubDate>Fri, 30 Jan 2015 12:31:11 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:3feec164-d1a4-40a2-8588-a226114afe03</guid><dc:creator>Former Member</dc:creator><slash:comments>2</slash:comments><description>&lt;p&gt;Hai Fredrick,&lt;/p&gt;&lt;p&gt;the following is my mysql.persist :&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;// persistence strategies have a name and a definition and are referred to in the &amp;quot;Items&amp;quot; section&lt;/p&gt;&lt;p&gt;Strategies {&lt;/p&gt;&lt;p&gt;&amp;nbsp; // for rrd charts, we need a cron strategy&lt;/p&gt;&lt;p&gt;&amp;nbsp; everyMinute : &amp;quot;0 * * * * ?&amp;quot;&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Items {&lt;/p&gt;&lt;p&gt;&amp;nbsp; DemoSwitch,NoOfLights,Window_GF_Toilet,Heating* : strategy = everyChange, everyMinute, restoreOnStartup&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; // let&amp;#39;s only store temperature values in mysql&lt;/p&gt;&lt;p&gt;&amp;nbsp; Temperature*,Weather_Chart* : strategy = everyMinute, restoreOnStartup&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I am pushing random values as temperature values for Weather_Chart group. i Just want to know if i have to create manually tables or will openhab generate tables based on the items inside it?&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=18216&amp;AppID=100&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: [CaTS] ForgetMeNot - Week 3: Data persistence and charts with OpenHAB</title><link>https://community.element14.com/challenges-projects/design-challenges/forget-me-not/b/blog/posts/cats-forgetmenot---week-3-data-persistence-and-charts-with-openhab</link><pubDate>Fri, 19 Sep 2014 13:53:32 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:3feec164-d1a4-40a2-8588-a226114afe03</guid><dc:creator>fvan</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;&lt;span&gt;[mention:8fb233e8974445138ef0af2b63b49f94:e9ed411860ed4f2ba0265705b8793d05]&lt;/span&gt; made a good point (thanks):&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;even though everything seems to work as is, it might be recommended to also set the default persistence to mysql:&lt;/p&gt;&lt;p&gt;&lt;span&gt; &lt;/span&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;[embed:dc8ab71f-3b98-42d9-b0f6-e21e02a0f8e2:3ef06e6b-9b7d-4651-b12d-db8be7f5e991:type=text&amp;amp;text=%23+The+name+of+the+default+persistence+service+to+use%0Apersistence%3Adefault%3Dmysql]&lt;/p&gt;&lt;div&gt;&lt;/div&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Frederick&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=18216&amp;AppID=100&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: [CaTS] ForgetMeNot - Week 3: Data persistence and charts with OpenHAB</title><link>https://community.element14.com/challenges-projects/design-challenges/forget-me-not/b/blog/posts/cats-forgetmenot---week-3-data-persistence-and-charts-with-openhab</link><pubDate>Sat, 23 Aug 2014 10:40:58 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:3feec164-d1a4-40a2-8588-a226114afe03</guid><dc:creator>ravi_butani</dc:creator><slash:comments>2</slash:comments><description>&lt;p&gt;I did all u have done... on my url it shows blank chart... even after many restarts it cant show any data on chart.. mysql:url=jdbc:mysql://127.0.0.1:3306/openhab is this url in config is same for all and if not how can I know my correct URL...?&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=18216&amp;AppID=100&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: [CaTS] ForgetMeNot - Week 3: Data persistence and charts with OpenHAB</title><link>https://community.element14.com/challenges-projects/design-challenges/forget-me-not/b/blog/posts/cats-forgetmenot---week-3-data-persistence-and-charts-with-openhab</link><pubDate>Mon, 18 Aug 2014 20:27:04 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:3feec164-d1a4-40a2-8588-a226114afe03</guid><dc:creator>michaelwylie</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Also, my project needs a cool name like everyone elses, any help there?&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=18216&amp;AppID=100&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: [CaTS] ForgetMeNot - Week 3: Data persistence and charts with OpenHAB</title><link>https://community.element14.com/challenges-projects/design-challenges/forget-me-not/b/blog/posts/cats-forgetmenot---week-3-data-persistence-and-charts-with-openhab</link><pubDate>Mon, 18 Aug 2014 20:26:01 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:3feec164-d1a4-40a2-8588-a226114afe03</guid><dc:creator>michaelwylie</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Is there a faster way to restart the system? I feel like it takes forever and I&amp;#39;ve already removed all the unnecessary bindings.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=18216&amp;AppID=100&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: [CaTS] ForgetMeNot - Week 3: Data persistence and charts with OpenHAB</title><link>https://community.element14.com/challenges-projects/design-challenges/forget-me-not/b/blog/posts/cats-forgetmenot---week-3-data-persistence-and-charts-with-openhab</link><pubDate>Mon, 18 Aug 2014 20:19:36 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:3feec164-d1a4-40a2-8588-a226114afe03</guid><dc:creator>hlipka</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;OK, I got it to work. I used Frederick&amp;#39;s mysql.persist configuration, and was able to get my Items table populated (and the other tables as well). But what is strange: with each restart, only the first sensor sending data gets the entry in the Items table, for all others I got no entry there. But 3 restarts later I&amp;#39;m there &lt;span&gt;[View:/resized-image/__size/16x16/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-3feec164-d1a4-40a2-8588-a226114afe03/7725.contentimage_5F00_1.png:16:16]&lt;/span&gt;&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=18216&amp;AppID=100&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: [CaTS] ForgetMeNot - Week 3: Data persistence and charts with OpenHAB</title><link>https://community.element14.com/challenges-projects/design-challenges/forget-me-not/b/blog/posts/cats-forgetmenot---week-3-data-persistence-and-charts-with-openhab</link><pubDate>Mon, 18 Aug 2014 19:55:25 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:3feec164-d1a4-40a2-8588-a226114afe03</guid><dc:creator>hlipka</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;@Frederick : Yes, I cleared the IDs, this setup actually shows the sensor state properly in the web UI.&lt;/p&gt;&lt;p&gt;&lt;span&gt;[mention:8fb233e8974445138ef0af2b63b49f94:e9ed411860ed4f2ba0265705b8793d05]&lt;/span&gt;: Well spotted, that line was incorrect. OpenHAB seems to read the configuration fine nonetheless (there isnother sensor defined after that which also worked fine).&lt;/p&gt;&lt;p&gt;But even when I change that to be correct, the MySQL setup doesn&amp;#39;t work &lt;span&gt;[View:/resized-image/__size/16x16/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-3feec164-d1a4-40a2-8588-a226114afe03/8321.contentimage_5F00_2.png:16:16]&lt;/span&gt;&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=18216&amp;AppID=100&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: [CaTS] ForgetMeNot - Week 3: Data persistence and charts with OpenHAB</title><link>https://community.element14.com/challenges-projects/design-challenges/forget-me-not/b/blog/posts/cats-forgetmenot---week-3-data-persistence-and-charts-with-openhab</link><pubDate>Mon, 18 Aug 2014 17:37:17 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:3feec164-d1a4-40a2-8588-a226114afe03</guid><dc:creator>hlipka</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Strange. I did the same, but for some reason my &amp;#39;Items&amp;#39; table is not getting populated &lt;span&gt;[View:/resized-image/__size/16x16/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-3feec164-d1a4-40a2-8588-a226114afe03/contentimage_5F00_2.png:16:16]&lt;/span&gt; There is no error in the log file, so I&amp;#39;m kind of stuck. (The table itself got created, though)&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=18216&amp;AppID=100&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: [CaTS] ForgetMeNot - Week 3: Data persistence and charts with OpenHAB</title><link>https://community.element14.com/challenges-projects/design-challenges/forget-me-not/b/blog/posts/cats-forgetmenot---week-3-data-persistence-and-charts-with-openhab</link><pubDate>Mon, 18 Aug 2014 04:57:02 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:3feec164-d1a4-40a2-8588-a226114afe03</guid><dc:creator>mcb1</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Thanks Frederick&lt;/p&gt;&lt;p&gt;That&amp;#39;s exactly the sort of thing I need to do for my project ...&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Mark&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=18216&amp;AppID=100&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: [CaTS] ForgetMeNot - Week 3: Data persistence and charts with OpenHAB</title><link>https://community.element14.com/challenges-projects/design-challenges/forget-me-not/b/blog/posts/cats-forgetmenot---week-3-data-persistence-and-charts-with-openhab</link><pubDate>Mon, 18 Aug 2014 04:16:06 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:3feec164-d1a4-40a2-8588-a226114afe03</guid><dc:creator>vish</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Wow....that&amp;#39;s an elaborate guide. Thanks Frederick! &lt;span&gt;[View:/resized-image/__size/16x16/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-3feec164-d1a4-40a2-8588-a226114afe03/contentimage_5F00_1.png:16:16]&lt;/span&gt;&amp;nbsp; I&amp;#39;m also trying to do the same thing, but stuck. I think this will solve my problem.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=18216&amp;AppID=100&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>