Updated for MQTT client

This commit is contained in:
Hendrik Borras 2018-01-08 18:25:51 +01:00
parent 1abe702626
commit 5227a8fd50
2 changed files with 7 additions and 1 deletions

View file

@ -14,6 +14,10 @@ sqlite_location = ../storage/sqlite_db
# tells the cleanup script how old the oldest event is allowed to be; measured in hours
sqlite_max_event_age = 13
[MQTT]
broker_address = cosmicpidata.mooo.com
broker_topic = cosmicpi/v1.5/1.5.1
[UI]
enable_UI = True
username = user

View file

@ -18,7 +18,7 @@ sudo apt --yes upgrade
echo "--- Installing packages via apt"
# needed for the CosmicPi software
sudo apt --yes install git python-pip htop python-numpy python-matplotlib python-flask
sudo apt --yes install git python-pip htop python-numpy python-matplotlib python-flask mosquitto mosquitto-clients
# needed for create_ap
sudo apt --yes install git util-linux procps hostapd iproute2 iw haveged dnsmasq
@ -37,11 +37,13 @@ sudo cp -f install_files/create_ap.conf /etc/create_ap.conf
echo "--- Setting up systemd services"
sed -i -e "s+$TOREPLACE+$EXECPATH+g" install_files/CosmicPi-mqtt.service
sed -i -e "s+$TOREPLACE+$EXECPATH+g" install_files/CosmicPi-database_cleaner.service
sed -i -e "s+$TOREPLACE+$EXECPATH+g" install_files/CosmicPi-detector.service
sed -i -e "s+$TOREPLACE+$EXECPATH+g" install_files/CosmicPi-UI.service
sudo cp -f install_files/*.service /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable CosmicPi-mqtt.service
sudo systemctl enable CosmicPi-database_cleaner.service
sudo systemctl enable CosmicPi-detector.service
sudo systemctl enable CosmicPi-UI.service