From 5cbc298b63897f784851adc12a912b29bf4c6102 Mon Sep 17 00:00:00 2001 From: Denis-Cosmin Nutiu Date: Mon, 13 Jun 2022 12:58:41 +0300 Subject: [PATCH] Add sensors folder --- Readme.md | 7 ++++++- bme680-homekit.service => sensors/bme680-homekit.service | 2 +- main.py => sensors/main.py | 0 3 files changed, 7 insertions(+), 2 deletions(-) rename bme680-homekit.service => sensors/bme680-homekit.service (72%) rename main.py => sensors/main.py (100%) diff --git a/Readme.md b/Readme.md index 15d9f4b..22ced55 100644 --- a/Readme.md +++ b/Readme.md @@ -11,7 +11,9 @@ After running the program you'll be given the QR code used to add the sensor as ## Installing -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 cd /home/pi && git clone git@github.com:dnutiu/bme680-homekit.git && cd bme680-homekit @@ -19,9 +21,12 @@ sudo apt-get install libavahi-compat-libdnssd-dev pip3 install -r requirements.txt ``` +### Sensors + Run the program once to pair it with your ios. ex: ```bash +cd sensors python3 main.py Setup payload: X-HM://0023K50QET2YB Scan this code with your HomeKit app on your iOS device: diff --git a/bme680-homekit.service b/sensors/bme680-homekit.service similarity index 72% rename from bme680-homekit.service rename to sensors/bme680-homekit.service index d69a76b..c13c22e 100644 --- a/bme680-homekit.service +++ b/sensors/bme680-homekit.service @@ -6,7 +6,7 @@ After=local-fs.target network-online.target Restart=on-failure RestartSec=5s User=pi -ExecStart=/usr/bin/python3 /home/pi/bme680-homekit/main.py +ExecStart=/usr/bin/python3 /home/pi/sensors/bme680-homekit/main.py [Install] WantedBy=multi-user.target \ No newline at end of file diff --git a/main.py b/sensors/main.py similarity index 100% rename from main.py rename to sensors/main.py