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

Adds a script to install a local mqtt broker

parent 3a07c1e9
No related merge requests found
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):
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):
......
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