PKG_NAME:=python-ble2mqtt
PKG_VERSION:=0.1.5
-PKG_RELEASE:=1
+PKG_RELEASE:=2
PYPI_NAME:=ble2mqtt
PKG_HASH:=0015cae0c36badb48cbd4a1c8b1a8029e45ab0891a95363fe00624c2629b4510
SUBMENU:=Python
TITLE:=Bluetooth to MQTT bridge
URL:=https://github.com/devbis/ble2mqtt/
- DEPENDS:=+python3-light +python3-aio-mqtt-mod +python3-asyncio +python3-bleak +python3-logging
+ DEPENDS:=+python3-light +python3-aio-mqtt-mod +python3-asyncio +python3-bleak +python3-logging +python3-uuid
endef
define Package/python3-ble2mqtt/description
devices to your smart home
endef
+define Py3Package/python3-ble2mqtt/install
+ $(INSTALL_DIR) $(1)/etc/init.d
+ $(INSTALL_BIN) ./files/ble2mqtt.init $(1)/etc/init.d/ble2mqtt
+endef
+
$(eval $(call Py3Package,python3-ble2mqtt))
$(eval $(call BuildPackage,python3-ble2mqtt))
$(eval $(call BuildPackage,python3-ble2mqtt-src))
--- /dev/null
+#!/bin/sh /etc/rc.common
+
+START=98
+USE_PROCD=1
+
+start_service()
+{
+ procd_open_instance
+
+ procd_set_param env BLE2MQTT_CONFIG=/etc/ble2mqtt.json
+ procd_set_param command /usr/bin/ble2mqtt
+ procd_set_param stdout 1
+ procd_set_param stderr 1
+ procd_close_instance
+}