2022-10-11 06:19:01 +00:00
|
|
|
#!/bin/bash
|
2022-10-02 12:24:51 +00:00
|
|
|
|
2022-10-22 11:41:27 +00:00
|
|
|
set -x
|
|
|
|
|
2023-02-18 20:31:04 +00:00
|
|
|
I2C_BUS=3
|
|
|
|
|
2022-10-03 16:37:15 +00:00
|
|
|
# Export the configuration values
|
2022-10-22 12:54:50 +00:00
|
|
|
SCRIPT_PATH=/home/pi/hydrophonitor/scripts
|
2022-10-23 14:03:54 +00:00
|
|
|
. $SCRIPT_PATH/export-config-values.sh
|
2022-10-03 16:37:15 +00:00
|
|
|
|
2023-02-18 20:31:04 +00:00
|
|
|
OPTIONS="--output $OUTPUT_DIR --interval $DEPTH_INTERVAL --bus $I2C_BUS"
|
2022-10-02 12:24:51 +00:00
|
|
|
|
2022-10-22 12:54:50 +00:00
|
|
|
cd $HOME_PATH/hydrophonitor/depth-logger && python record-depth.py $OPTIONS
|