Pjotr500
(Pieter)
June 11, 2018, 7:37pm
1
I’m trying to get InfluxDB running on a Rasberry Pi2 with openHAB 2.3
I already installed the InfluxDB Persistence (v1.0) Add-on from the Paper-UI
How can I start the influxdb service or how can I access the mentioned influx webinterface ?
I used SSH to start the influx cli, but the ‘Unit influxdb.service’ is ‘not found’
Pjotr500
(Pieter)
June 14, 2018, 8:50am
3
Good story, but it doesn’t help me.
Somehow, I can’t get the Influx commandline.
Dim
(Angelos)
June 14, 2018, 12:36pm
4
it does help you since it includes a link to https://docs.influxdata.com/influxdb/v1.5/introduction/installation/
obviously, you didn’t follow the instructions
4994james
(James Brown)
April 24, 2019, 8:49pm
5
Hi. I am following the installation instructions at https://docs.influxdata.com/influxdb/v1.7/introduction/installation/
I get this after starting the service, apparently successfully
[21:24:40] openhabian@openHABianPi:~$ influx
-bash: influx: command not found
Likewise no response via the web service interface.
I noticed in a thread in the influx community that the following need to be run:
test $VERSION_ID = "7" && echo "deb https://repos.influxdata.com/debian wheezy stable" | sudo tee /etc/apt/sources.list.d/influxdb.list
test $VERSION_ID = "8" && echo "deb https://repos.influxdata.com/debian jessie stable" | sudo tee /etc/apt/sources.list.d/influxdb.list
test $VERSION_ID = "9" && echo "deb https://repos.influxdata.com/debian stretch stable" | sudo tee /etc/apt/sources.list.d/influxdb.list
I assume I am supposed to run just one of these however each one yields the following:
-bash: test: =: unary operator expected
Or if preceded by sudo:
[21:47:50] openhabian@openHABianPi:~$ sudo test $VERSION_ID = "7" && echo "deb https://repos.influxdata.com/debian wheezy stable" | sudo tee /etc/apt/sources.list.d/influxdb.list
test: missing argument after ‘7’
I cannot find any reference to this error in any blog. Can anyone help please?
I think the command line doesn’t work or something right now, anyhow, here is a link to where I got stuck on the same thing and figured it out
finding the influx command was what hung me up trying to do this tutorial. Eventually I found info telling me to point my web browser at the web interface which can be found at
localhost:8083
after install
the web interface allows the creation of databases, users and permissions
hope it helps
rpwong
(Russ)
April 25, 2019, 6:03am
7
I also tried to install InfluxDB last weekend and ran into issues. Seems as if the script in openhabian-config isn’t working properly right now. I haven’t had time to take another look at it, yet.
4994james
(James Brown)
April 25, 2019, 7:26am
8
Thanks. I am not sure this is an openhab related issue. I feel sure it will be solved once I understand what is going wrong with
test $VERSION_ID = "9" && echo "deb https://repos.influxdata.com/debian stretch stable" | sudo tee /etc/apt/sources.list.d/influxdb.list
Maybe I will log in the influx forum.
4994james
(James Brown)
April 29, 2019, 9:47pm
9
Replying to my own post. I have now solved this. It is important to follow the instructions on this thread:
Store your openHAB item states in an InfluxDB time-series datastore and create highly customizable diagrams with Grafana . These diagrams can in return be included in your sitemap as images.
[image]
Following this guide, you will install InfluxDB and Grafana, make openHAB store data in an InfluxDB database, make Grafana fetch data from the InfluxDB database and draw diagrams. Finally you can include these diagrams in your openHAB sitemap.
Table of Content
Starting Point
InfluxDB Installation …
precisely. In my case I failed to notice that there is a different procedure for installing influxdb on a RPi. The link is:
Installation on the Raspberry Pi 2 or 3
These are the special steps to install InfluxDB and Grafana on a Raspberry Pi 2 or 3, the older Raspberry Pi 1 is not suited due to it’s ARMv6 architecture .
The following steps expect a Debian/Raspbian Jessie based OS.
Before we can start, you need to install an apt extension for https capable repositories:
sudo apt-get update && sudo apt-get install apt-transport-https
InfluxDB
InfluxDB can be installed through the official repository. Add the key to …
After that I have no problems except that the instructions for the embedding of a grafana chart into a sitemap aren’t quite right. I will post another update on the main thread to correct it.