diff --git a/README.md b/README.md index 88bb254..347c815 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,7 @@ A simple Python script which provides a Bluetooth to MQTT gateway, easily extens * [Xiaomi Mi Scale](http://www.mi.com/en/scale/) * [Linak Desk](https://www.linak.com/business-areas/desks/office-desks/) via [linak_bt_desk](https://github.com/zewelor/linak_bt_desk) * [MySensors](https://www.mysensors.org/) +* [Xiaomi Mi Flora plant sensor](https://xiaomi-mi.com/sockets-and-sensors/xiaomi-huahuacaocao-flower-care-smart-monitor/) via [miflora](https://github.com/open-homeautomation/miflora) ## Getting Started diff --git a/bt-mqtt-gateway.service b/bt-mqtt-gateway.service index b7c464f..00c4085 100644 --- a/bt-mqtt-gateway.service +++ b/bt-mqtt-gateway.service @@ -1,5 +1,6 @@ [Unit] Description=Bluetooth MQTT gateway +Documentation=https://github.com/zewelor/bt-mqtt-gateway After=network.target [Service] @@ -9,4 +10,4 @@ ExecStart=/home/user/bt-mqtt-gateway/gateway.py Restart=always [Install] -WantedBy=multi-user.target \ No newline at end of file +WantedBy=multi-user.target diff --git a/config.yaml.example b/config.yaml.example index 46fb17b..9794ffe 100644 --- a/config.yaml.example +++ b/config.yaml.example @@ -31,3 +31,10 @@ manager: mac: 00:11:22:33:44:55 topic_prefix: linak_desk update_interval: 1800 + miflora: + args: + devices: + herbs: 00:11:22:33:44:55 + topic_prefix: miflora + update_interval: 300 + diff --git a/gateway.py b/gateway.py index f60998a..8a392d0 100755 --- a/gateway.py +++ b/gateway.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python3 import logging import sys