[SOLVED] Graphs with RRD4J

hello to all I am trying or working with graphs but they are not visualized in the sitemap.
I have performed the following steps:
-Install persistance rrd4j
-create openhab / conf / persistance / rrd4j.persist
(I have searched the routes I’ve seen in several post but they are not in my configuration)
The content should look like this:
Strategies {
// for rrd charts, we need a cron strategy
everyMinute: “0 * * * *?”

  default = everyChange

}

Items {
*: strategy = everyUpdate, everyMinute
}

The * is for persist ALL my item

-I have activated the persist in Paper UI

-I put the sitemaps line:

Chart item=Temperature period=h refresh=300

But don´t work, i read a lot of post and tutorals and nothing.

Anyone can help me?
Greetings from Spain

Hi,

try

everyMinute: "0 0/1 * 1/1 * ? *"

Also, I assume you have a group or Item called Temperature?

Kurt

persistence NOT persistance

Yes, Temperature is a group, I have also tried a item but nothing :sleepy:

Yes, persistence is correct, I wrote it wrong, i only create the file, the path is create by the installation program

Hi,
Try this one, please:

Temperature*: strategy = everyMinute

Kurt

Strategies {
    // for rrd charts, we need a cron strategy
    everyMinute: "0 * * * * ?"
    default = everyChange
}

Items {
    Temperature*: strategy = everyUpdate, everyMinute
}

The cron statement is "0 * * * * ?" you forgot a space between the last asterisk and question mark.

At the start of OH, what does the openhab.log say about the rrd4j service?

Is rrd4j your only persistence service. Did you tell OH that it is your default persistence service in the paperUI (Configuration/System/Persistence)

In your sitemap definition the parameters are the wrong order. It should be:

Chart item=Temperature refresh=300 period=h

Nothing, not work :disappointed_relieved:

At the start of OH, what does the openhab.log say about the rrd4j service?

Your rrd4j.persist file should be located in the persistence folder
The persistence folder should be located in the same folder as your sitemaps and items and rules folder

2018-05-14 11:09:35.432 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model ‘rrd4j.persist’
2018-05-14 11:09:38.251 [ERROR] [xtext.validation.CompositeEValidator] - Error executing EValidator
java.util.ConcurrentModificationException: null

I think the second line has no relation but just in case.

I have tried your example but nothing happens, I also have rrd4j by default in the configuration.

Only the graph appears but without any indicator

Yes, is in the same folder

What do you mean?

In basic UI i see the graph, but it’s empty

That means there are no values in your items in the group Temperature

I can see the value of the temperature in the main view, even so I have tried other values ​​such as the sun rise of astro addon but nothing

Change the temperature value and you should see a change on the chart
Also your refresh rate for the chart is far too small (300ms) change it to 60000 (One minute)

1 Like

ok I will try your example, but how can I change the temperature manually? since it gets it from the weather underground addon.
And, even if the value does not change, should not a continuous line appear on the graph?

You can use the REST API to change items

I’m too new for that hahaha, I’m going to try the setpoint value of the heating temperature, which I can vary from the app