mirror of
https://github.com/openwrt/packages.git
synced 2026-04-15 10:51:55 +00:00
mqttled: remove package
Development of this package is stalled [1], it uses python3-netifaces [2], but that repository was archived in 20211 [3], because there does not seems to be replacement according to this issue: https://github.com/trevortrevor/mqttled/issues/3 Let's remove it. [1] https://github.com/trevortrevor/mqttled/ [2] https://github.com/trevortrevor/mqttled/issues/3 [3] https://github.com/al45tair/netifaces Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
This commit is contained in:
@@ -1,58 +0,0 @@
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=mqttled
|
||||
PKG_VERSION:=0.1.2
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PYPI_NAME:=mqttled
|
||||
PKG_HASH:=eb94af853605f4f1ea3c34b66e2f84f3d9845d795529ae8429feb954e74876d7
|
||||
|
||||
PKG_MAINTAINER:=Tom Grime <tom.grime@gmail.com>
|
||||
PKG_LICENSE:=MIT
|
||||
PKG_LICENSE_FILES:=LICENCE
|
||||
|
||||
include ../../lang/python/pypi.mk
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
include ../../lang/python/python3-package.mk
|
||||
|
||||
define Package/mqttled
|
||||
SECTION:=utils
|
||||
CATEGORY:=Utilities
|
||||
TITLE:=LED Control from MQTT
|
||||
URL:=https://github.com/trevortrevor/mqttled/
|
||||
DEPENDS:= \
|
||||
+python3-paho-mqtt \
|
||||
+python3-uci \
|
||||
+python3-idna \
|
||||
+python3-jsonpath-ng \
|
||||
+python3-yaml \
|
||||
+python3-schema \
|
||||
+python3-netifaces \
|
||||
+python3-logging \
|
||||
+python3-urllib \
|
||||
+python3-asyncio \
|
||||
+python3-pkg-resources
|
||||
|
||||
endef
|
||||
|
||||
define Package/mqttled/description
|
||||
Exposes the LEDs of your device to an MQTT broker with optional Home Assistant auto discovery
|
||||
endef
|
||||
|
||||
define Py3Package/mqttled/install
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mqttled $(1)/usr/bin/
|
||||
|
||||
$(INSTALL_DIR) $(1)/etc/init.d
|
||||
$(INSTALL_BIN) ./files/mqttled.init $(1)/etc/init.d/mqttled
|
||||
$(INSTALL_DIR) $(1)/etc/config
|
||||
$(INSTALL_DATA) ./files/mqttled.config $(1)/etc/config/mqttled
|
||||
endef
|
||||
|
||||
define Package/mqttled/conffiles
|
||||
/etc/config/mqttled
|
||||
endef
|
||||
|
||||
$(eval $(call Py3Package,mqttled))
|
||||
$(eval $(call BuildPackage,mqttled))
|
||||
@@ -1,44 +0,0 @@
|
||||
config mqtt 'mqtt'
|
||||
#MQTT Broker Address
|
||||
option host '192.168.1.1'
|
||||
option port '1883'
|
||||
#May work without this, should bind to all interfaces. Needs to be an interface matching in /etc/config/network
|
||||
option interface 'lan'
|
||||
option username ''
|
||||
option password ''
|
||||
#Not tested
|
||||
option tls '0'
|
||||
option cert ''
|
||||
option discovery 'homeassistant'
|
||||
#Set your topic here: e.g. OpenWRTleds/CustomDevice/led1
|
||||
option basetopic 'OpenWRTleds'
|
||||
option subtopic 'CustomDevice'
|
||||
#Reported in the 'device' page in Home Assistant
|
||||
option model 'OpenWRT Device'
|
||||
|
||||
config leds 'leds'
|
||||
#Setting this to 1 will ignore any includes
|
||||
option includeall '1'
|
||||
#excluded LEDs will allways be supressed
|
||||
list exclude 'mt76-phy0'
|
||||
list exclude 'rt2800soc-phy1::assoc'
|
||||
list exclude 'rt2800soc-phy1::quality'
|
||||
list exclude 'rt2800soc-phy1::radio'
|
||||
#list include 'blue:internet'
|
||||
|
||||
config rgb 'rgb'
|
||||
# Exposes 3 LEDs to HomeAssistant as a single RGB LED
|
||||
option enablergb '0'
|
||||
# The name of the RGB LED to expose to HomeAssistant
|
||||
option name 'RGB'
|
||||
# The IDs of the three colored LEDs
|
||||
option red 'LED0_Red'
|
||||
option green 'LED0_Green'
|
||||
option blue 'LED0_Blue'
|
||||
|
||||
config trigger 'triggers'
|
||||
#Only triggers listed here will be presented to HA as 'effects'
|
||||
list triggers 'none'
|
||||
list triggers 'default-on'
|
||||
list triggers 'heartbeat'
|
||||
list triggers 'timer'
|
||||
@@ -1,16 +0,0 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
|
||||
START=99
|
||||
STOP=99
|
||||
|
||||
USE_PROCD=1
|
||||
|
||||
PROG=/usr/bin/mqttled
|
||||
|
||||
start_service() {
|
||||
procd_open_instance
|
||||
procd_set_param command "$PROG"
|
||||
procd_set_param stdout 1
|
||||
procd_set_param stderr 1
|
||||
procd_close_instance
|
||||
}
|
||||
Reference in New Issue
Block a user