• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Data logger
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

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

apt update
apt install nano
nano /entrypoint.sh

Then close the console and restart the container.

You never fail until you stop trying.“, Albert Einstein (1879 - 1955)

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

Possibly Related Threads…
Thread Author Replies Views Last Post
  REST API server data communication MGharat 2 2,723 July-21st-2021, 07:01 AM
Last Post: MGharat
  Docker exposed port don't send data on eth0 COswald 3 3,472 July-15th-2021, 02:10 PM
Last Post: Armin@netPI
  requirement : reading of ethrnet/ip data & storing MGharat 6 4,424 February-1st-2021, 08:07 AM
Last Post: Armin@netPI
  5 x NL 50-Mpi and Node Red like colector data? Jotarod 4 4,317 September-14th-2020, 01:59 PM
Last Post: Armin@netPI
  Receive at startup additional data through the Fieldbus Port Schranz 1 3,062 September-10th-2020, 10:55 AM
Last Post: Armin@netPI
  how to pick up PROFINET data and store them to OPC UA server on Node-RED/netPI. tad 7 6,236 March-16th-2020, 10:21 AM
Last Post: Armin@netPI

Forum Jump:

Users browsing this thread: 1 Guest(s)