diff --git a/auto_rx/auto_rx.service b/auto_rx/auto_rx.service index 6aa09e1..b7ad2f7 100644 --- a/auto_rx/auto_rx.service +++ b/auto_rx/auto_rx.service @@ -3,7 +3,7 @@ Description=auto_rx After=syslog.target [Service] -ExecStart=/usr/bin/python /home/pi/radiosonde_auto_rx/auto_rx/auto_rx.py -t 0 +ExecStart=/usr/bin/python3 /home/pi/radiosonde_auto_rx/auto_rx/auto_rx.py -t 0 Restart=always RestartSec=120 WorkingDirectory=/home/pi/radiosonde_auto_rx/auto_rx/ diff --git a/auto_rx/auto_rx.sh b/auto_rx/auto_rx.sh index 7a2d4c7..a8a1b56 100755 --- a/auto_rx/auto_rx.sh +++ b/auto_rx/auto_rx.sh @@ -10,11 +10,12 @@ # # change into appropriate directory -cd /home/pi/radiosonde_auto_rx/auto_rx/ +cd $(dirname $0) # Clean up old files rm log_power*.csv # Start auto_rx process with a 3 hour timeout. # auto_rx will exit after this time. -python auto_rx.py -t 180 + +python3 auto_rx.py -t 180