Skip to content
This repository was archived by the owner on Jul 12, 2023. It is now read-only.

Commit 324b08d

Browse files
authored
Merge pull request #16 from linien-org/develop
add documentation
2 parents f53940d + 078552f commit 324b08d

File tree

2 files changed

+38
-1
lines changed

2 files changed

+38
-1
lines changed

README.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,40 @@ Logs the status of a [linien](https://github.com/linien-org/linien) spectroscopy
55
``` bash
66
sudo pip install linien-influxdb
77
```
8+
9+
Note that `linien-influxdb` is currently only compatible with influxdb2.
10+
# Usage
11+
12+
`linien-influxdb` is a command line tool that uses an ini-file for configuration:
13+
14+
```bash
15+
linien-influxdb config.ini
16+
```
17+
18+
To get help, use
19+
20+
```bash
21+
linien-influxdb --help
22+
```
23+
24+
An example configuration file, can be found [here](https://github.com/linien-org/linien-influxdb/blob/master/linien_influxdb/example_config.ini):
25+
26+
```ini
27+
[influx2]
28+
url=http://localhost:8086
29+
org=my-org
30+
token=my-token
31+
timeout=6000
32+
verify_ssl=False
33+
bucket=my-bucket
34+
measurement=linien-status
35+
36+
[linien]
37+
host=rp-f0xxxxx.local
38+
username=root
39+
password=root
40+
interval=10 # log interval in seconds
41+
parameters=lock, modulation_amplitude, modulation_frequency, p, i, d, monitor_signal_mean, error_signal_mean, error_signal_std, control_signal_mean
42+
```
43+
44+
For more parameters, have a look at [`parameters.py`](https://github.com/linien-org/linien/blob/master/linien/server/parameters.py) of Linien.

linien_influxdb/example_config.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ measurement=linien-status
1111
host=rp-f0xxxxx.local
1212
username=root
1313
password=root
14-
interval=10
14+
interval=10 # log interval in seconds
1515
parameters=lock, modulation_amplitude, modulation_frequency, p, i, d, monitor_signal_mean, error_signal_mean, error_signal_std, control_signal_mean

0 commit comments

Comments
 (0)