Adds autostart script for mobile mesurements
This commit is contained in:
17
autostart_mobile_measurement.sh
Normal file
17
autostart_mobile_measurement.sh
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
FOLDER="/home/prause/measurement-scripts/"
|
||||||
|
NEW_DIR=$(DATE=$(date +%F-%T))
|
||||||
|
|
||||||
|
export PIPENV_VENV_IN_PROJECT=1
|
||||||
|
mkdir "$FOLDER$NEW_DIR"
|
||||||
|
cd "$FOLDER$NEW_DIR"
|
||||||
|
pipenv run pipenv run ./measurement_main.py -c 130.75.73.69 \
|
||||||
|
--bandwidth \
|
||||||
|
--set time=30 \
|
||||||
|
--gps /dev/serial/by-id/usb-u-blox_AG_-_www.u-blox.com_u-blox_5_-_GPS_Receiver-if00 \
|
||||||
|
--serial /dev/ttyUSB2 \
|
||||||
|
-n 10 \
|
||||||
|
--folder "$FOLDER$NEW_DIR" \
|
||||||
|
--prefix automated \
|
||||||
|
-i wwan0
|
||||||
Reference in New Issue
Block a user