First it just fired off: curl -sL https://repos.influxdata.com/influxdb.key | sudo apt-key add -
and because only: source /etc/os-release
doesn’t do anything, I ran the command again like this: curl -sL https://repos.influxdata.com/influxdb.key | sudo apt-key add - source /etc/os-release
It then gives an OK.
So I try the next command: sudo apt-get update && sudo apt-get install influxdb (I also ran the 2 test commands).
But this is the result: E: The method driver /usr/lib/apt/methods/https could not be found. N: Is the package apt-transport-https installed?
Any ideas?
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
Ok, so I think I managed to install Influxdb correctly now, but failing with grafana.
I have AIO so that’s based oin raspbian jessie so that’s a debian install, right?
When I try to follow the instructions on http://docs.grafana.org/installation/debian/
it fails at step: sudo dpkg -i grafana_3.1.0-1468321182_amd64.deb
with this error:
dpkg: error processing archive grafana_3.1.0-1468321182_amd64.deb (--install):
package architecture (amd64) does not match system (armhf)
Errors were encountered while processing:
grafana_3.1.0-1468321182_amd64.deb
I can’t find a way to get it installed
Also I get this error in HASS log about influxdb:
16-07-30 17:25:46 homeassistant.components.influxdb: Error saving event "[{'time': datetime.datetime(2016, 7, 30, 15, 25, 46, 404126, tzinfo=<UTC>), 'fields': {'value': 'playing'}, 'measurement': 'media_player.tv_lukas__sascha', 'tags': {'entity_id': 'tv_lukas__sascha', 'domain': 'media_player'}}]" to InfluxDB
Traceback (most recent call last):
File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/components/influxdb.py", line 103, in influx_event_listener
influx.write_points(json_body)
File "/home/hass/deps/influxdb/client.py", line 402, in write_points
tags=tags)
File "/home/hass/deps/influxdb/client.py", line 447, in _write_points
expected_response_code=204
File "/home/hass/deps/influxdb/client.py", line 289, in write
headers=headers
File "/home/hass/deps/influxdb/client.py", line 259, in request
raise InfluxDBClientError(response.content, response.status_code)
influxdb.exceptions.InfluxDBClientError: 400: {"error":"field type conflict: input field \"value\" on measurement \"media_player.tv_lukas__sascha\" is type string, already exists as type integer"}
Yes, something is wrong and it is not the archives, both should be working. The problem is the download part : from your log, you can read
and
If you open the downloaded file with your browser, you will see it is indeed an html page.
Instead, download the .deb file from the release section, which is the best practice recommended by github :
but this is discouraged by github (in fact, for that usage, binary files in repo don’t follow the github’s recommendation and we should not even but the binary there …)
By the way, I should add that I didn’t test the package on a pi3.
When you click on a panel title, select “share” in the opening box, then at the bottom of the new box, you have “Direct link rendered image”. This should create a png snapshot on the panel.
You’re welcome.
I am wondering now, isn’t it bad to run influx and grafana on a pi3? Because it’s reading/writing all the the time to the sd card.
Can both be run on a synology nas instead?
There may be some confusion here. I think PuckStar use the package I provide. By the time I build phantomjs, the resulting binary wasn’t as static as the developers wanted it to be and as far as I can see your binary as also some dependencies that should not be here. A consequence of that is the binary is tied to the distro used to build it. I was unsure of the behavior on pi3 due to these dependencies.
Anyway, now I have the answer.