From b4ee913c00b8f2bbc0a18c5d18cf6b009f0049b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20Nu=C8=9Biu?= Date: Thu, 5 Oct 2023 23:58:57 +0300 Subject: [PATCH] Update Readme.md --- Readme.md | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/Readme.md b/Readme.md index 33f8dc6..0777e7d 100644 --- a/Readme.md +++ b/Readme.md @@ -72,6 +72,25 @@ sudo systemctl status bme680-homekit Feb 21 20:10:30 raspberrypi systemd[1]: Started Bme680 Homekit service. ``` +## Troubleshooting + +If you get an error for FileNotFound: + +``` +Traceback (most recent call last): + File "/home/denis/bme680-homekit/sensors/main.py", line 112, in + driver.add_accessory(accessory=get_bridge(driver)) + File "/home/denis/bme680-homekit/sensors/main.py", line 101, in get_bridge + bridge.add_accessory(Bme680Sensor(accessory_driver, "Sensor")) + File "/home/denis/bme680-homekit/sensors/main.py", line 33, in __init__ + self.sensor = bme680.BME680(bme680.I2C_ADDR_PRIMARY) + File "/home/denis/.local/lib/python3.9/site-packages/bme680/__init__.py", line 43, in __init__ + self._i2c = smbus.SMBus(1) +FileNotFoundError: [Errno 2] No such file or director +``` + +You will need to active I2C interface with `sudo raspi-config` -> Interfacing -> I2C + ### Prometheus Prometheus is a system for monitoring and alerting. To install it run `prometheus./install.sh`. @@ -84,4 +103,4 @@ Grafana can be used to create dashboard and visualise prometheus metrics. To ins Grafana is accessible on port `:80`. Premade dashboards can be found in the `grafana/dashboards` folder. -![](./docs/grafana_dashboard.png) \ No newline at end of file +![](./docs/grafana_dashboard.png)