Add sensors folder
This commit is contained in:
parent
cd23749cf7
commit
5cbc298b63
3 changed files with 7 additions and 2 deletions
|
@ -13,15 +13,20 @@ After running the program you'll be given the QR code used to add the sensor as
|
||||||
|
|
||||||
Ensure you are the `pi` user. Clone the repo in home and then install requirements.
|
Ensure you are the `pi` user. Clone the repo in home and then install requirements.
|
||||||
|
|
||||||
|
### Cloning the project
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cd /home/pi && git clone git@github.com:dnutiu/bme680-homekit.git && cd bme680-homekit
|
cd /home/pi && git clone git@github.com:dnutiu/bme680-homekit.git && cd bme680-homekit
|
||||||
sudo apt-get install libavahi-compat-libdnssd-dev
|
sudo apt-get install libavahi-compat-libdnssd-dev
|
||||||
pip3 install -r requirements.txt
|
pip3 install -r requirements.txt
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Sensors
|
||||||
|
|
||||||
Run the program once to pair it with your ios. ex:
|
Run the program once to pair it with your ios. ex:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
cd sensors
|
||||||
python3 main.py
|
python3 main.py
|
||||||
Setup payload: X-HM://0023K50QET2YB
|
Setup payload: X-HM://0023K50QET2YB
|
||||||
Scan this code with your HomeKit app on your iOS device:
|
Scan this code with your HomeKit app on your iOS device:
|
||||||
|
|
|
@ -6,7 +6,7 @@ After=local-fs.target network-online.target
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
RestartSec=5s
|
RestartSec=5s
|
||||||
User=pi
|
User=pi
|
||||||
ExecStart=/usr/bin/python3 /home/pi/bme680-homekit/main.py
|
ExecStart=/usr/bin/python3 /home/pi/sensors/bme680-homekit/main.py
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
Loading…
Reference in a new issue