Last Updated on 16/06/2022 by Kevin Agar
Clean installation sequence for my heating system
- Download the latest MaxAir Image:-
32 bit Ver 1.8 Build 200422
64 bit Ver 1.8 Build 200422 - Update/Upgrade rpi software:-
sudo apt update && sudo apt full-upgrade - Install 1-wire sensor:-
sudo raspi-config>3 Interface Options>I7 1-Wire>Enable - Setup time/location etc:-
sudo raspi-config>5 Localisation Options>L1 Local, L2 Timezone - Install MQTT:-
sudo apt-get install mosquitto mosquitto-clients
sudo systemctl enable mosquitto
sudo mosquitto_passwd -c /etc/mosquitto/credentials admin
Enter the password ’pihome’ and confirm
Create and edit a new file by executing the command ‘sudo nano /etc/mosquitto/conf.d/maxair.conf’
Add the following 3 lines and save the file
per_listener_settings true
allow_anonymous false
password_file /etc/mosquitto/credentials - Update MaxAir files:-
Login to GUI
Select Settings>System Maintenance>MaxAir Update>Check for Updates
Refresh window and install any updates - Install Fail2ban:-
Install procedure for Fail2ban - Install latest database backup file:-
Install latest Database file generated by auto_backup or manual backup.
mysql -u root -ppassw0rd maxair < ‘the name of the sql file you copied’
eg
mysql -u root -ppassw0rd maxair < /home/pi/maxair_mysql_2021_09-22_11-07-52.sql - Mapping a directory on my NAS to the MaxAir controller for database backups. Add line to /etc/fstab and save
sudo nano /etc/fstab
//192.168.0.13/Volume_1/MaxAir_Backups /home/maxair/NetDrive/MaxAir_Backups cifs nofail,noatime,vers=1.0,username=xxx,password=xxx,uid=www-data,gid=www-data,forceuid,forcegid 0 0 - Check all is working
- Make an image file of the SD card
- Copy image to SSD
- Test completed system