Graphical Conf of Persistence with RRD4J


(Stephan Krebs) #1

Hi girls and guys,

I’m new to OH and now playing around a lil bit by now. But as I’m building my house at the moment, I know that I will use it in future for everything!

As I read today, that OH2RC1 is out by now, I downloaded it. And I really love it! To test first things, I made a Yahoo Weather Binding Thing in Paper UI what works pretty easy. But now I would like to make a Persistence Graph in HabPanel. I installed the Addon “RRD4J”. And now I’m stuck. Is there a tutorial or something around, how I get the PaperUI created item values into the RRD4J database and then show them in HABPanel?

Thank you for this great Community! Thank you for this Free Software!

CU


(Jürgen Baginski) #2

Follow the wiki on openhab persistence it is still valid (Wiki
The only difference to OH2 , the latter has configuration files for each feature instead of one openhab.config.
If you need further assistance , just yell.


(Stephan Krebs) #3

Well, I have read it yet, but my intention was to do this with the graphical interface… :frowning:


(Angelos) #4

Unfortunately, you cannot configure the persistence service(s) using the Paper UI (or another GUI) (for now? :slight_smile: )

You can only set the default one in Paper UI -> Configuration -> System -> Persistence -> Default Service

You will have to work with flat configuration files. You will need to use 2 files for RRD4J persistence:
/etc/openhab2/services/rrd4j.cfg & /etc/openhab2/persistence/rrd4j.persist (assuming you are on a linux apt-get installation)

By the way: openHAB 2.0.0 Stable Release is already out. You can get it from here: https://bintray.com/openhab/mvn/openhab-distro/2.0.0

http://docs.openhab.org/installation/index.html

and if you are interested in advanced graphing stuff, take a look @:


(Jürgen Baginski) #5

If I’m not mistaken Grafana doesn’t work on HabPanel. However you can easily use the interactive n3-line-chart. The Setup is done via HabPanel, once you have a setup your persistence, the creation of a chart is done in a minute.


(Angelos) #6

I tried it and it seems to work (it also updates the chart)

I added a frame widget in HABPanel and used the Embed share option of the chart from Grafana (copied the URL)


(Jürgen Baginski) #7

Sorry, .Me=wrong


(Rich Koshak) #8

I might be worth adding this little tidbit to @ThomDietrich’s original tutorial. I’ve assumed, like @opus, that it wouldn’t work. I wonder if there are a lot of Habpanel who avoid it thinking it won’t work and non-Habpanl users avoid Habpanal because of this.

Though, the built in charting of Habpanal is pretty good too.


( ) #9

Done InfluxDB+Grafana persistence and graphing

@Dim would you provide me with a nice screenshot, maybe with a smaller graph surrounded by some HABPanel’try ??


(Angelos) #10

bada bing bada boom

Options: (I like #1 the best :slight_smile:)

1: http://imageshack.com/a/img921/7315/8cVTIE.png
2: http://imageshack.com/a/img921/459/WKALdE.png
3: http://imageshack.com/a/img922/3189/izmStf.png


( ) #11

Amazing. Thank you very much! It’s up there and will be a great help for many. :tada:


(Klaus Ostwaldt) #12

Hi folks,
I´m also quiet new in openhab2 and tested the rrd4j-addon.
Works as it should but when I watch the chart in BasicUI the legend is always inside the chart, allthough there´s enough space on the left or right side.
Is there any chance to change the position of the legend?

thanks in advance
Klaus