diff --git a/install_local_mqtt_broker.sh b/install_local_mqtt_broker.sh new file mode 100644 index 0000000000000000000000000000000000000000..ef3c81457253e14fa0b98bf2f60c8d385ef4b022 --- /dev/null +++ b/install_local_mqtt_broker.sh @@ -0,0 +1,6 @@ +sudo apt update && sudo apt upgrade +sudo apt install -y mosquitto mosquitto-clients +sudo systemctl enable mosquitto.service +echo "Broker is intalled. Starting now..." +mosquitto -v + diff --git a/ohmpi.py b/ohmpi.py index ae8ef7b3a146fcbbcb2aca29c2156f0d52961f2f..330b73793287a5739031ed87f6f52e2a82bf4463 100644 --- a/ohmpi.py +++ b/ohmpi.py @@ -234,8 +234,8 @@ class OhmPi(object): with io.open('/sys/firmware/devicetree/base/model', 'r') as f: if 'raspberry pi' in f.read().lower(): running_on_pi = True - except Exception as e: - print(e) + except FileNotFoundError: + pass return running_on_pi and arm64_imports def read_quad(self, filename):