24 lines
1.0 KiB
Bash
24 lines
1.0 KiB
Bash
#!/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 |