Giter Club home page Giter Club logo

domoticz-openwrt's People

Contributors

kofec avatar

Watchers

 avatar  avatar  avatar

domoticz-openwrt's Issues

Domoticz doesn't see aqara wireless remote switch

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.

2022.1 compile errors

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:=1

ifeq ($(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
endif

PKG_LICENSE:=GPL-3.0
PKG_LICENSE_FILES:=License.txt

PKG_BUILD_DEPENDS:=minizip cereal domoticz_PYTHON3:python3
PKG_BUILD_PARALLEL:=1
PKG_FIXUP:=autoreconf
PKG_USE_MIPS16:=0

PKG_CONFIG_DEPENDS :=
CONFIG_PACKAGE_domoticz
CONFIG_domoticz_PYTHON3
CONFIG_domoticz_OPENZWAVE
CONFIG_domoticz_TELLDUS

CMAKE_INSTALL:=1

include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk

define 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
endef

define Package/domoticz/config
source "$(SOURCE)/Config.in"
endef

define 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.
endef

CMAKE_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=no

TARGET_CFLAGS += -flto
TARGET_CXXFLAGS += -DWITH_GPIO -flto

ifneq ($(CONFIG_domoticz_PYTHON3),)
CMAKE_OPTIONS += -DUSE_PYTHON=yes
TARGET_LDFLAGS += -lpython3.9
else
CMAKE_OPTIONS += -DUSE_PYTHON=no
endif

ifneq ($(CONFIG_domoticz_OPENZWAVE),)
CMAKE_OPTIONS += -DUSE_OPENZWAVE=yes
else
CMAKE_OPTIONS += -DUSE_OPENZWAVE=no
endif

ifneq ($(CONFIG_domoticz_TELLDUS),)
CMAKE_OPTIONS += -DUSE_TELLDUS=yes
else
CMAKE_OPTIONS += -DUSE_TELLDUS=no
endif

define 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
endif

Remove 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.conf

Remove *.md

cd $(PKG_BUILD_DIR) && $(FIND) -name '*.md' -delete
endef

define 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/domoticz

compress 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 {}' ;
endef

define 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.

Download failed.
Can't exec "curl": No such file or directory at /home/xxx/openwrt/scripts/download.pl line 77.

Download failed.
Can't exec "curl": No such file or directory at /home/xxx/openwrt/scripts/download.pl line 77.

Download failed.
Can't exec "curl": No such file or directory at /home/xxx/openwrt/scripts/download.pl line 77.

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.