diff --git a/src/wrapper.sh b/src/wrapper.sh new file mode 100644 index 0000000..068d3ee --- /dev/null +++ b/src/wrapper.sh @@ -0,0 +1,24 @@ +#!/bin/bash + +export MISCALE_MAC=00:00:00:00:00:00 # Mac address of your scale +export MQTT_PREFIX=miScale + +export USER1_GT=70 # If the weight is greater than this number, we'll assume that we're weighing User #1 +export USER1_SEX=male +export USER1_NAME=Jo # Name of the user +export USER1_HEIGHT=175 # Height (in cm) of the user +export USER1_DOB=1990-01-01 # DOB (in yyyy-mm-dd format) + +export USER2_LT=35 # If the weight is less than this number, we'll assume that we're weighing User #2 +export USER2_SEX=female +export USER2_NAME=Sarah # Name of the user +export USER2_HEIGHT=95 # Height (in cm) of the user +export USER2_DOB=1990-01-01 # DOB (in yyyy-mm-dd format) + +export USER3_SEX=female +export USER3_NAME=Missy # Name of the user +export USER3_HEIGHT=150 # Height (in cm) of the user +export USER3_DOB=1990-01-01 # DOB (in yyyy-mm-dd format) + +MY_PWD="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" +python3 $MY_PWD/Xiaomi_Scale.py \ No newline at end of file