Hilscher Community Forum
Data logger - Printable Version

+- Hilscher Community Forum (https://forum.hilscher.com)
+-- Forum: netPI 3 - Docker featuring Industrial Raspberry Pi 3 platform (https://forum.hilscher.com/forum-1.html)
+--- Forum: Software (https://forum.hilscher.com/forum-5.html)
+--- Thread: Data logger (/thread-631.html)

Pages: 1 2


RE: Data logger - Armin@netPI - October-13th-2020

Well I think without modifying the Influxdb container in accordance to your demand you will not succeed that influxdb container will store the data to your USB drive.

If just read the InfluxDB container readme from here it says the default folder the database is stored to is /var/lib/influxdb. So I don't understand where you have got the information from that the database is stored under "/etc/init.d/influxdb"?

I remember a customer who uses the InfluxDB container like you with an external USB drive. He told me that he needed to edit the InfluxDB container start script file which is located here "/entrypoint.sh".

He added a "mount..." line like this to the start script

Code:
#!/bin/bash
mount /dev/sda1 /var/lib/influxdb

...

Precondition for this example is of course that you have mapped the /dev/sda1 device to the InfluxDB container when you configured it.

You say that the InfluxDB container does not include an editor. But why do you not make a post installation of your preferred editor?

In the container overview list under the item "Quick actions" you have 4 small icons. One is a "Exce console" icon that opens a standard Linux console called in the context of the container. So you can do everything in the container as on a standard Linux. And then you can call a sequence like shown below to install the editor nano for example (which is my favorite) and then edit the /entrypoint.sh file

Code:
apt update
apt install nano
nano /entrypoint.sh

Then close the console and restart the container.

Thx
Armin


RE: Data logger - Jan - October-14th-2020

It works!
You are my hero of the day Armin, thank you.