Go to file
Dustin Brunner c32964a108 Test 2022-08-29 20:23:30 +02:00
helper_scripts V1 2022-08-27 11:45:59 +02:00
README.md Fix Logging 2022-08-27 12:52:25 +02:00
influxdb_config.py V1 2022-08-27 11:45:59 +02:00
jds6600.py V1 2022-08-27 11:45:59 +02:00
readfreq_influxdb.py Test 2022-08-29 20:23:30 +02:00
readfreq_terminal.py V1 2022-08-27 11:45:59 +02:00


Influx-DB frequency logger with JDS6600 signal generator

A simple python script to write measured frequency values into a Influx-DB database.

Python installation on Ubuntu

sudo apt-get update
sudo apt-get install python3
sudo apt-get install python3-pip

Python Dependencies:

pip install pyserial
pip install influxdb

running the script (automatically)

The script is auto-detecting the USB-port, where the signal generator is connected to. After that it connects to a Influx-DB-server and then publishes the measured frequency value every second to this server. Make sure to fill your login credentials into the influxdb_config.py-file.

To auto start the script at the sotartup of the server we configure a systemd-service. I assume the repository with this script is cloned into the home directory of one user.

sudo nano /etc/systemd/system/readfreq_influxdb.service

Write into this file:

Description=readfreq_influxdb python script

ExecStart=/usr/bin/python3 -u /home/user/software_python/readfreq_influxdb.py


No the autostart can be activated:

sudo systemctl enable readfreq_influxdb.service
sudo systemctl start readfreq_influxdb.service
sudo systemctl status readfreq_influxdb.service

To deactivate it, use the command sudo systemctl disable readfreq_influxdb.service.

Sources/useful links:

This work by Dustin Brunner is licensed under CC BY 4.0

Creative Commons Lizenzvertrag
Dieses Werk von Dustin Brunner ist lizenziert unter einer Creative Commons Namensnennung 4.0 International Lizenz.