Add RTK rover database logging and site logger
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
[Unit]
|
||||
Description=RTK Rover Recorder (ZED-F9P + LoRa + SQLite)
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=naue
|
||||
WorkingDirectory=/home/naue/rtk
|
||||
EnvironmentFile=-/home/naue/rtk/rtk_rover.env
|
||||
Environment=PYTHONUNBUFFERED=1
|
||||
|
||||
ExecStart=/usr/bin/python3 /home/naue/rtk/rtk_rover_recorder.py \
|
||||
--zed /dev/serial/by-id/usb-u-blox_AG_-_www.u-blox.com_u-blox_GNSS_receiver-if00 \
|
||||
--zed-baud 115200 \
|
||||
--lora /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0 \
|
||||
--lora-baud 9600 --db /home/naue/rtk/rtk_rover.db \
|
||||
--log-dir /home/naue/rtk/logs \
|
||||
--device-id ${DEVICE_ID} --msl-offset 0 \
|
||||
--site-log \
|
||||
--site-project testlauf_001 \
|
||||
--site-min-fix-seconds 5 \
|
||||
--site-max-hacc 0.05 \
|
||||
--auto-record \
|
||||
--record-note "systemd auto recording"
|
||||
|
||||
Restart=always
|
||||
RestartSec=2
|
||||
TimeoutStopSec=10
|
||||
StandardOutput=journal
|
||||
StandardError=journal
|
||||
NoNewPrivileges=true
|
||||
PrivateTmp=true
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user