kofec / domoticz-openwrt Goto Github PK
View Code? Open in Web Editor NEWAddtional packages and scripts for openwrt
Addtional packages and scripts for openwrt
Hello and thank you for your big work! After installation Domoticz on router with OpenWRT, all devices of Xiaomi gateway was connected, only aqara wireless remote switches(3 pcs) doesn'c connect. On raspberry domoticz it was connected without problem. In journal there such string: "Light/Switch ()" - with empty brackets. Other devices work good.
Hi,
I can't compile 2022.1 commits,
My makefile:
Copyright (C) 2016 - 2020 Stijn Tintel [email protected]
This is free software, licensed under the GNU General Public License v2.
See /LICENSE for more information.
include $(TOPDIR)/rules.mk
PKG_NAME:=domoticz
PKG_VERSION_MAJOR:=2022.1
PKG_VERSION_PATCH:=14241
PKG_COMMIT:=90e683a16ec1f267d3efd1b3fd1bff0b9ac9691e
PKG_VERSION:=$(PKG_VERSION_MAJOR).$(PKG_VERSION_PATCH)
PKG_RELEASE:=1ifeq ($(PKG_COMMIT),)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://github.com/domoticz/domoticz/archive/$(PKG_VERSION)/$(PKG_SOURCE)
PKG_HASH:=a02f589daad4eebff1f5e93815c1acd1864cf068f8f5c3185bcdd20207ae395e
else
PKG_SOURCE:=$(PKG_NAME)-$(PKG_COMMIT).tar.gz
PKG_SOURCE_URL:=https://github.com/domoticz/domoticz/archive/$(PKG_COMMIT)/$(PKG_SOURCE)
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_COMMIT)
PKG_HASH:=91848ae6c7cfa1f24b0f7b836f904f69e3ba23c1b07ebdca16d2794b363fd047
endifPKG_LICENSE:=GPL-3.0
PKG_LICENSE_FILES:=License.txtPKG_BUILD_DEPENDS:=minizip cereal domoticz_PYTHON3:python3
PKG_BUILD_PARALLEL:=1
PKG_FIXUP:=autoreconf
PKG_USE_MIPS16:=0PKG_CONFIG_DEPENDS :=
CONFIG_PACKAGE_domoticz
CONFIG_domoticz_PYTHON3
CONFIG_domoticz_OPENZWAVE
CONFIG_domoticz_TELLDUSCMAKE_INSTALL:=1
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mkdefine Package/domoticz
SECTION:=utils
CATEGORY:=Utilities
TITLE:=Open Source Home Automation System
URL:=http://domoticz.com/
MAINTAINER:=David Woodhouse [email protected]
USERID:=domoticz=6144:domoticz=6144
MENU:=1
DEPENDS:=
+boost
+boost-date_time
+boost-system
+boost-thread
+jsoncpp
+libcurl
+domoticz_PYTHON3:python3
+domoticz_OPENZWAVE:libopenzwave
+domoticz_TELLDUS:telldus-core
+minizip
+lua5.3
+libfmt
+libmosquitto
+libopenssl
+libsqlite3
+libstdcpp
+zlib
endefdefine Package/domoticz/config
source "$(SOURCE)/Config.in"
endefdefine Package/domoticz/description
Domoticz is a Home Automation System that lets you monitor and configure various devices like: Lights, Switches, various sensors/meters like Temperature, Rain, Wind, UV, Electra, Gas, Water and much more. Notifications/Alerts can be sent to any mobile device.
endefCMAKE_OPTIONS +=
-DBUILD_SHARED_LIBS=yes
-DBoost_NO_BOOST_CMAKE=yes
-DGIT_SUBMODULE=no
-DCMAKE_BUILD_TYPE=Release
-DUSE_BUILTIN_MQTT=no
-DUSE_BUILTIN_SQLITE=no
-DUSE_BUILTIN_JSONCPP=no
-DUSE_BUILTIN_MINIZIP=no
-DUSE_BUILTIN_LIBFMT=no
-DUSE_LUA_STATIC=no
-DUSE_STATIC_BOOST=no
-DUSE_STATIC_LIBSTDCXX=no
-DUSE_STATIC_OPENZWAVE=no
-DUSE_OPENSSL_STATIC=no
-DWITH_LIBUSB=noTARGET_CFLAGS += -flto
TARGET_CXXFLAGS += -DWITH_GPIO -fltoifneq ($(CONFIG_domoticz_PYTHON3),)
CMAKE_OPTIONS += -DUSE_PYTHON=yes
TARGET_LDFLAGS += -lpython3.9
else
CMAKE_OPTIONS += -DUSE_PYTHON=no
endififneq ($(CONFIG_domoticz_OPENZWAVE),)
CMAKE_OPTIONS += -DUSE_OPENZWAVE=yes
else
CMAKE_OPTIONS += -DUSE_OPENZWAVE=no
endififneq ($(CONFIG_domoticz_TELLDUS),)
CMAKE_OPTIONS += -DUSE_TELLDUS=yes
else
CMAKE_OPTIONS += -DUSE_TELLDUS=no
endifdefine Build/Prepare
$(call Build/Prepare/Default)Fix APPVERSION/APPDATE since we don't build from a git tree
sed -i 's|#define APPVERSION.[^]\|#define APPVERSION $(PKG_VERSION_PATCH)\|'
$(PKG_BUILD_DIR)/getgit.cmake
COMMITDATE=tar tvfz $(DL_DIR)/$(PKG_SOURCE) --full-time | sed 's/.* \(20..-..-.. ..:..:..\) domoticz-.*/\1/;q'
;
COMMITTS=date --date="$$$${COMMITDATE}" +%s
;
sed -i "s/#define APPDATE./#define APPDATE $$$${COMMITTS}\\n")/" $(PKG_BUILD_DIR)/getgit.cmake
ifneq ($(PKG_COMMIT),)
sed -i "s/#define APPHASH.[^n]*n/#define APPHASH "$(shell echo$(PKG_COMMIT) | cut -c1-8)"\\n/" $ (PKG_BUILD_DIR)/getgit.cmake
sed -i "s/#define APPHASH /#define APPHASH \/" $(PKG_BUILD_DIR)/getgit.cmake
sed -i "s/$(shell echo$(PKG_COMMIT) | cut -c1-8)/$ (shell echo$(PKG_COMMIT) | cut -c1-8)\/" $ (PKG_BUILD_DIR)/getgit.cmake
endifRemove unwanted scripts
cd $(PKG_BUILD_DIR)/scripts && rm -rf
buienradar_rain_example.pl
_domoticz_main*
download_update.sh
dzVents/{.gitignore,documentation,examples,generated_scripts,data}
dzVents/runtime/{integration-tests,misc/smoothing.xlsx,tests}
logrotate/
lua_parsers/example*
lua/*demo.lua
python/
readme.txt
restart_domoticz
templates/All.Python
update_domoticz
domoticz.confRemove *.md
cd
$(PKG_BUILD_DIR) && $ (FIND) -name '*.md' -delete
endefdefine Package/domoticz/install
$(INSTALL_DIR) $ (1)/etc/config$(1)/etc/hotplug.d/tty $ (1)/etc/init.d $(1)/etc/domoticz/plugins
$(INSTALL_BIN) ./files/domoticz.hotplug $ (1)/etc/hotplug.d/tty/domoticz
$(INSTALL_BIN) ./files/domoticz.init $ (1)/etc/init.d/domoticz
$(INSTALL_CONF) ./files/domoticz.config $ (1)/etc/config/domoticz
$(INSTALL_DIR) $ (1)/usr/share/domoticz $(1)/usr/bin
$(CP) $ (PKG_INSTALL_DIR)/usr/dzVents $(1)/usr/share/domoticz/dzVents
$(CP) $ (PKG_INSTALL_DIR)/usr/Config $(1)/usr/share/domoticz/Config
$(CP) $ (PKG_INSTALL_DIR)/usr/scripts $(1)/etc/domoticz/scripts
ln -sf /var/lib/domoticz/dzVents/generated_scripts $(1)/etc/domoticz/scripts/dzVents
ln -sf /var/lib/domoticz/dzVents/data $(1)/etc/domoticz/scripts/dzVents
$(CP) $ (PKG_INSTALL_DIR)/usr/www $(1)/usr/share/domoticz/
$(INSTALL_BIN) $ (PKG_INSTALL_DIR)/usr/domoticz $(1)/usr/bin/domoticzcompress static web content
find $(1)/usr/share/domoticz/www -name ".css" -exec gzip -9 {} ;
find $(1)/usr/share/domoticz/www -name ".js" -exec gzip -9 {} ;
gzip -9 $(1)/usr/share/domoticz/www/.html
gzip -9 $(1)/usr/share/domoticz/www/secpanel/.html
find $(1)/usr/share/domoticz/www/views -name "*.html" -exec sh -c 'grep -q "<!--#embed" {} || gzip -9 {}' ;
endefdefine Package/domoticz/conffiles
/etc/config/domoticz
/var/lib/domoticz/
/etc/domoticz/
endef
$(eval $ (call BuildPackage,domoticz))
and errors:
SHELL= flock /home/xxx/openwrt/tmp/.domoticz-90e683a16ec1f267d3efd1b3fd1bff0b9ac9691e.tar.gz.flock -c ' /home/xxx/openwrt/scripts/download.pl "/home/xxx/openwrt/dl" "domoticz-90e683a16ec1f267d3efd1b3fd1bff0b9ac9691e.tar.gz" "19e05935f410479351339f69b9090752f4d0b1130f0bc2516264397c1f124a4e" "" "https://github.com/domoticz/domoticz/archive/90e683a16ec1f267d3efd1b3fd1bff0b9ac9691e/domoticz-90e683a16ec1f267d3efd1b3fd1bff0b9ac9691e.tar.gz" '
Can't exec "curl": No such file or directory at /home/xxx/openwrt/scripts/download.pl line 77.
- wget --tries=5 --timeout=20 --no-check-certificate --output-document=- https://github.com/domoticz/domoticz/archive/90e683a16ec1f267d3efd1b3fd1bff0b9ac9691e/domoticz-90e683a16ec1f267d3efd1b3fd1bff0b9ac9691e.tar.gz/domoticz-90e683a16ec1f267d3efd1b3fd1bff0b9ac9691e.tar.gz
--2022-03-02 09:34:25-- https://github.com/domoticz/domoticz/archive/90e683a16ec1f267d3efd1b3fd1bff0b9ac9691e/domoticz-90e683a16ec1f267d3efd1b3fd1bff0b9ac9691e.tar.gz/domoticz-90e683a16ec1f267d3efd1b3fd1bff0b9ac9691e.tar.gz
Resolving github.com (github.com)... 140.82.121.3
Connecting to github.com (github.com)|140.82.121.3|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/domoticz/domoticz/tar.gz/90e683a16ec1f267d3efd1b3fd1bff0b9ac9691e/domoticz-90e683a16ec1f267d3efd1b3fd1bff0b9ac9691e.tar.gz/domoticz-90e683a16ec1f267d3efd1b3fd1bff0b9ac9691e [following]
--2022-03-02 09:34:25-- https://codeload.github.com/domoticz/domoticz/tar.gz/90e683a16ec1f267d3efd1b3fd1bff0b9ac9691e/domoticz-90e683a16ec1f267d3efd1b3fd1bff0b9ac9691e.tar.gz/domoticz-90e683a16ec1f267d3efd1b3fd1bff0b9ac9691e
Resolving codeload.github.com (codeload.github.com)... 140.82.121.9
Connecting to codeload.github.com (codeload.github.com)|140.82.121.9|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2022-03-02 09:34:26 ERROR 404: Not Found.Download failed.
Can't exec "curl": No such file or directory at /home/xxx/openwrt/scripts/download.pl line 77.
- wget --tries=5 --timeout=20 --no-check-certificate --output-document=- https://sources.cdn.openwrt.org/domoticz-90e683a16ec1f267d3efd1b3fd1bff0b9ac9691e.tar.gz
--2022-03-02 09:34:26-- https://sources.cdn.openwrt.org/domoticz-90e683a16ec1f267d3efd1b3fd1bff0b9ac9691e.tar.gz
Resolving sources.cdn.openwrt.org (sources.cdn.openwrt.org)... 151.101.14.132, 2a04:4e42:3::644
Connecting to sources.cdn.openwrt.org (sources.cdn.openwrt.org)|151.101.14.132|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2022-03-02 09:34:26 ERROR 404: Not Found.Download failed.
Can't exec "curl": No such file or directory at /home/xxx/openwrt/scripts/download.pl line 77.
- wget --tries=5 --timeout=20 --no-check-certificate --output-document=- https://sources.openwrt.org/domoticz-90e683a16ec1f267d3efd1b3fd1bff0b9ac9691e.tar.gz
--2022-03-02 09:34:26-- https://sources.openwrt.org/domoticz-90e683a16ec1f267d3efd1b3fd1bff0b9ac9691e.tar.gz
Resolving sources.openwrt.org (sources.openwrt.org)... 148.251.151.136, 2a01:4f8:210:5087::2
Connecting to sources.openwrt.org (sources.openwrt.org)|148.251.151.136|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2022-03-02 09:34:26 ERROR 404: Not Found.Download failed.
Can't exec "curl": No such file or directory at /home/xxx/openwrt/scripts/download.pl line 77.
- wget --tries=5 --timeout=20 --no-check-certificate --output-document=- https://mirror2.openwrt.org/sources/domoticz-90e683a16ec1f267d3efd1b3fd1bff0b9ac9691e.tar.gz
--2022-03-02 09:34:26-- https://mirror2.openwrt.org/sources/domoticz-90e683a16ec1f267d3efd1b3fd1bff0b9ac9691e.tar.gz
Resolving mirror2.openwrt.org (mirror2.openwrt.org)... 46.4.11.11, 2a01:4f8:221:3d45::2
Connecting to mirror2.openwrt.org (mirror2.openwrt.org)|46.4.11.11|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2022-03-02 09:34:27 ERROR 404: Not Found.Download failed.
No more mirrors to try - giving up.
make[2]: *** [Makefile:184: /home/xxx/openwrt/dl/domoticz-90e683a16ec1f267d3efd1b3fd1bff0b9ac9691e.tar.gz] Error 2
make[2]: Leaving directory '/home/xxx/openwrt/feeds/packages/utils/domoticz'
time: package/feeds/packages/domoticz/compile#0.37#0.32#2.61
ERROR: package/feeds/packages/domoticz failed to build.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.