This commit is contained in:
parent
ff45d347d6
commit
094e39fb18
1 changed files with 2 additions and 1 deletions
|
|
@ -45,7 +45,7 @@ sudo iptables -A INPUT -p tcp --dport 3000 -j ACCEPT
|
|||
sudo iptables -A PREROUTING -t nat -p tcp --dport 80 -j REDIRECT --to-port 3000
|
||||
sudo iptables-save > /etc/iptables/rules.v4
|
||||
echo "installing BME680 library and MQTT client"
|
||||
pip3 install bme680 paho-mqtt
|
||||
sudo pip3 install bme680 paho-mqtt
|
||||
echo "setting up I2C_LCD, CSS811 and air monitoring script"
|
||||
cd /home/pi
|
||||
mkdir airmon
|
||||
|
|
@ -59,6 +59,7 @@ sudo systemctl daemon-reload
|
|||
sudo systemctl enable airmon.service
|
||||
sudo systemctl start airmon.service
|
||||
echo "slowing down I2C on Raspberry Pi to 10kbps, required for CCS811 sensor"
|
||||
echo "dtparam=i2c_arm=on" | sudo tee -a /boot/config.txt
|
||||
echo "dtparam=i2c_arm_baudrate=10000" | sudo tee -a /boot/config.txt
|
||||
echo "All done!"
|
||||
read -p "Press enter to reboot"
|
||||
|
|
|
|||
Loading…
Reference in a new issue