Sorry if this was asked already before, I couldn’t find a solution and yes, I searched .
I use an RPi3 with OH2.0 Release. There I have the temperature and humidity comming from the weather binding.
I also have the RRD4J persistance running and it perfectly works for the last hour, day and week. It’s integrated like this in the sitemap:
rrd4j has a hard time dealing with time periods that don’t have data. I suspect that you don’t have a lot of data that covers the last month and year.
So you can take a wait and see approach once enough time has passed for there to be a full month’s worth of data and see if the chart starts working.
Beyond that, I’m not sure what I would try. If you want accurate charts for those longer time periods, you would be better served with a DB other than rrd4j anyway since rrd4j thins out the data with averages as is gets older. A popular approach is this one.
Thanks for your answer. I think I should get enough data for the last months, as it runs for nearly a year. With some smaller interruptions.
But I already thought that rrd4j is not the best solution for this. Anyway, I’m looking for an easy solution as this is not of a high priority for me
I’m going to have a look at what you suggested.
By the way: myopenhab seems to work as persistance as well, is that correct? Which database system does it use?
That is not correct. The old way used to use a .persist file to define which Items get exposed to my.openhab for third party integrations (e.g. IFTTT). The service only “saves” the most recent value and you can’t create charts with it nor can you query it from your rules.
If the displayed part of your sitemap-file is the complete section for the chart, there are NO SETTINGS for a monthly or yearly chart. Or did you just not post it all?