Commit 2417f270 authored by Olivier Kaufmann's avatar Olivier Kaufmann
Browse files

Adds a script to install a local mqtt broker

Showing with 8 additions and 2 deletions
+8 -2
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
...@@ -234,8 +234,8 @@ class OhmPi(object): ...@@ -234,8 +234,8 @@ class OhmPi(object):
with io.open('/sys/firmware/devicetree/base/model', 'r') as f: with io.open('/sys/firmware/devicetree/base/model', 'r') as f:
if 'raspberry pi' in f.read().lower(): if 'raspberry pi' in f.read().lower():
running_on_pi = True running_on_pi = True
except Exception as e: except FileNotFoundError:
print(e) pass
return running_on_pi and arm64_imports return running_on_pi and arm64_imports
def read_quad(self, filename): def read_quad(self, filename):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment