diff --git a/config_example/config.py b/config_example/config.py index 6dbf30b..c9017c8 100644 --- a/config_example/config.py +++ b/config_example/config.py @@ -5,10 +5,10 @@ import report __BASEPATH__ = os.path.abspath(os.path.dirname(__file__)) -MQTT_USER = "mqtt_username" -MQTT_PASS = "mqtt_password" -MQTT_SERVER = "mqtt_server" -MQTT_TOPIC = "mqtt_topic" +MQTT_SERVER = "" +MQTT_USER = "" +MQTT_PASS = "" +MQTT_TOPIC = "" DAT_PATH_DHT = None # os.path.join(__BASEPATH__, 'dat', 'dht') DAT_PATH_BMP = None # os.path.join(__BASEPATH__, 'dat', 'bmp') diff --git a/init_venv b/init_venv new file mode 100755 index 0000000..428ff04 --- /dev/null +++ b/init_venv @@ -0,0 +1,8 @@ +#!/bin/sh +# +BASEPATH=`realpath $(dirname $0)` + +python3 -m venv $BASEPATH/venv +$BASEPATH/venv/bin/pip install --upgrade pip +find $BASEPATH -name requirements.txt | xargs -L 1 $BASEPATH/venv/bin/pip install -r +$BASEPATH/venv/bin/pip list --outdated --format=json | jq -r '.[] | .name'|xargs -n1 $BASEPATH/venv/bin/pip install -U