#/bin/bash #by @4MeInfo sudo apt update sudo apt upgrade -y sudo apt install wget git unzip g++ gcc build-essential -y sudo pip install bme680 sudo adduser -aG homebridge i2c sudo echo "i2c-dev" >> /etc/modules sudo echo "i2c-bcm2708" >> /etc/modules cd /tmp git clone https://github.com/4MeInfo/bsec_bme680_linux.git cd bsec_bme680_linux/ mkdir .src cd .src/ wget --no-check-certificate https://www.bosch-sensortec.com/media/boschsensortec/downloads/bsec/bsec_1-4-7-4_generic_release.zip unzip bsec_1-4-7-4_generic_release.zip rm bsec_1-4-7-4_generic_release.zip cd .. chmod a+x make.sh sudo bash make.sh sudo cp bsec_bme680 /var/homebridge/bsecbme680 sudo cp bsec_iaq.conf /var/homebridge/bsec_iaq.conf sudo cp bsec_bme680 /root/homebridge/bsec_bme680 sudo cp bsec_bme680 /home/homebridge/.homebridge/bsec_bme680 sudo cp bsec_iaq.conf /root/homebridge/bsec_iaq.config sudo cp bsec_iaq.conf /home/homebridge/.homebridge/bsec_iaq.config cd .. git clone https://github.com/4MeInfo/homebridge-bme680 cd homebridge-bme680 sudo npm -g install -verbose --build-from-source --unsafe-perm #sudo reboot