forked from mqu/viessmann-mqtt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.txt
29 lines (22 loc) · 813 Bytes
/
install.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
sudo apt-get install ruby ruby-sqlite3 mosquitto mosquitto-clients
sudo gem install mqtt
# add user to dialout group
sudo usermod -aG dialout $(whoami)
sudo mosquitto_passwd -c /etc/mosquitto/passwd user
cat >> /etc/mosquitto/mosquitto.conf << EOF
allow_anonymous false
password_file /etc/mosquitto/passwd
EOF
service mosquitto restart
cd $HOME
git clone https://github.com/mqu/viessmann-mqtt/
cd viessmann-mqtt
chmod +x viessmann-mqtt
./viessmann-mqtt sysinstall # install packages : ruby, sqlite, gems
./viessmann-mqtt install # download and install vitalk (not mandatory if running on raspbian : vitalk binary is given in package)
./viessmann-mqtt init # create mandatory directories
./viessmann-mqtt start
./viessmann-mqtt status
./viessmann-mqtt stop
./viessmann-mqtt restart