joshuacox / mkdomoticz Goto Github PK
View Code? Open in Web Editor NEWMake a persistent domoticz container PDQ
License: GNU General Public License v3.0
Make a persistent domoticz container PDQ
License: GNU General Public License v3.0
Hi Joshua,
I've a sonos one with Alexa and i use your image to dockerize domoticz.
I'm a newbie in docker and i used the configuration by default on port 8080.
It's working nicely. But now i want to connect Alexa with domoticz and i need to use SSL port.
At my knowledge, only one skill work with Alexa, called Controlicz that only works with SSL.
I've tried " export DOMOTICZ_OPTS='-sslwww 443 -www 0' " before running docker without result
And after i used -p 443:433 in docker run.
Can you help me.
Thank for your reply.
PS: sorry for my english, i'm french.
I run the latest stable version and have configured 2 mapped volumes:
\config (actual database)
\log
Domoticz make every hour an automatic backup (Configure via: Setup - Settings - System - Enable automatic backup)
In the log file I see the backup procedure is starting but the backup files are not outside the container in the folder \config.
2020-12-23 13:00:01.372 Status: Starting automatic database backup procedure...
2020-12-23 13:00:03.428 Status: Ending automatic database backup procedure...
The backup file is created in the folder: ./src/domoticz/backups/hourly/backup-hour-13-Domoticz.db
in the container.
Is it possible to make a folder mapping outside the container for the backups?
Hello,
I used https://www.domoticz.com/wiki/Docker to install the docker container Domoitcz.
I works like a charm exept for the e-mail notifications.
My setup:
Raspberry PI 4B with Ubuntu Linux image VERSION="19.10 (Eoan Ermine)"
Server: Docker Engine - Community
Version: 19.03.3
API version: 1.40 (minimum version 1.12)
Go version: go1.12.10
Git commit: a872fc2
Built: Tue Oct 8 00:59:07 2019
OS/Arch: linux/arm64
Your docker container from Dockerhub
Domoticz V4.10364
Script to run the container:
docker run --name=domoticz_arm
--privileged
-d
--network ip32to63
-v /home/ubuntu/terraform/domoticz/datadir/config:/config
-t joshuacox/mkdomoticz:arm
Email notification errors from the Domoticz log:
2020-02-06 11:03:05.143 Notification sent (email) => Failed
2020-02-06 11:03:05.151 Active notification Subsystems: email (1/13)
2020-02-06 11:03:05.102 Status: Notification: Domoticz test
2020-02-06 11:03:05.143 Error: SMTP Mailer: Error sending Email to: [email protected] !
2020-02-06 11:03:05.143 Error: Failed to send Email notification!
I cannot get it to work with auth, without auth for local LAN.
not on port 25, not on SSL 465
To make sure the container is able to connect to my local SMTP mail server,
I connected to the container and installed telnet.
I was able to to connect to my mail server and send an email via telnet from the
container in the bash shell.
So I am kind of lost why it won't work from the Domoticz web interface.
Any help is appreciated.
Thanx in advance.
grtz,
Andre
$ docker run --name=domoticz --privileged --cidfile="cid" -d -p 8080:8080 -t joshuacox/mkdomoticz:arm
Unable to find image 'joshuacox/mkdomoticz:arm' locally
arm: Pulling from joshuacox/mkdomoticz
8d1b22c79612: Extracting [==================================================>] 140.5MB/140.5MB
c5a849e7f0d1: Download complete
4c534d38e9da: Download complete
docker: failed to register layer: Error processing tar file(exit status 1): archive/tar: invalid tar header.
See 'docker run --help'.
other docker seems to be fine:
$ docker run -d -p 80:80 hypriot/rpi-busybox-httpd
Unable to find image 'hypriot/rpi-busybox-httpd:latest' locally
latest: Pulling from hypriot/rpi-busybox-httpd
c74a9c6a645f: Pull complete
6f1938f6d8ae: Pull complete
e1347d4747a6: Pull complete
a3ed95caeb02: Pull complete
Digest: sha256:c00342f952d97628bf5dda457d3b409c37df687c859df82b9424f61264f54cd1
Status: Downloaded newer image for hypriot/rpi-busybox-httpd:latest
ce43188a7747e24f1af4d0648b83c81366812fd5ad1185e47bcdf4d25de6911b
Hi,
I pulled this docker container and I can't get dzVents scripts to work.
I've created a volume /home/domoticz/docker_data/Domoticz/scripts:/src/domoticz/scripts/dzVents/scripts and placed a demo.lua inside it.
return {
on = {
timer = {
'every 1 minute'
}
},
active = true,
execute = function(domoticz)
domoticz.log('testing')
end
}
I don't see any log and error messages. It seems scripts never gets triggered.
To replicate follow instructions at https://www.domoticz.com/wiki/Telegram_Bot to create a telegram a/c, create a bot and get the API key, and then obtain the Chat ID.
In Domoticz Settings / Notifications tab, paste the API key and Chat ID into the Telegram settings (as the bottom of the page) and press Test. Message: "Notification Sent - should arrive at your device soon" pops up. No message arrives. Log error:
2020-03-14 15:58:27.965 Status: Notification: Domoticz test
2020-03-14 15:58:28.016 Notification sent (telegram) => Failed
2020-03-14 15:58:28.024 Active notification Subsystems: email, telegram (2/13)
2020-03-14 15:58:28.016 Error: Telegram:
There is no problem when sending a message via the CLI:
Open the Domoticz CLI in Portainer and connect. Paste the following (after inserting the API key and Chat ID):
curl --data chat_id=<CHAT ID> --data-urlencode "text=Some complex text $25 78%" "https://api.telegram.org/bot<API KEY>/sendMessage"
It returns:
{"ok":true,"result":{"message_id":67,"from":{"id":985736213,"is_bot":true,"first_name":"xxxxxxx","username":"xxxxxxxxx"},"chat":{"id":xxxxxxxxx,"first_name":"xxxxxx","username":"xxxxxx","type":"private"},"date":1584201822,"text":"Some complex text 5 78%"}}root@c826cdca9643:/#
Does the problem have the same issue as sending email?
I'm coming from a pi and installed this docker. but when uploaden my database it's newer then the stable. how can I update this domoticz docker to the latest beta so that I can import my database?
Hello,
I try to run Domoticz in docker (Docker GUI in openmediavault4 on a ARM-device).
I only use Domoticz for logging my SolarEdge-system ATM.
I've got only errors: Error: SolarEdgeAPI: Error getting http data! (it works on an other system, so the API I used is okay).
What can I do to solve this problem?
TIA
Frepke
I need wemo bridge access
Dockerfile
RUN pip install -U ouimeaux
or clone https://github.com/iancmcc/ouimeaux in build process
should run in python3
And provide wemo command to query a wemo bridge
Hello,
After all, thanks for the efforts. They are really appreciated.
On a cleanly built docker image, and after sending GCM ID from the mobile App, an error occurs when trying to send GCM notification. After enabling as much as log as possible, only this log is relevant to the issue:
2019-03-13 14:06:42.592 [7f72b4b4e700] Notification sent (gcm) => Failed
2019-03-13 14:06:42.601 [7f72b4b4e700] Active notification Subsystems: (0/13)
2019-03-13 14:06:42.581 [7f72b4b4e700] Status: Notification: Domoticz test
2019-03-13 14:06:42.592 [7f72b4b4e700] Error: GCM: Could not send message, HTTP Error
e-mail notifications also fail in this system.
My system is an APU-4c2 running:
docker-compose script as follows:
domoticz:
image: joshuacox/mkdomoticz
hostname: domoticz
container_name: domoticz
privileged: true
volumes:
- ./domoticz/config:/config
ports:
- "8081:8080"
restart: always
Thanks in advance
Just needs an answer on how to configure hardware/devices to use wake-on-lan from the Docker container. Thanks in advance.
Regards, Bert
Hi,
Well first thanks for this project, it worked for me on an RPI. I wonder, there is few domoticz/docker projects. Is this the official one?
Some observations.
Updating domoticz doesn't work for me. When I log in to the container, I can run .updaterelease after installing git, wget, sudo etc.. As the container is running, I am not exactly sure how the update is picked-up. I tried a docker restart, which left the container not running...
The container time is not in sync with host time. This is a common docker thing, there seems to be solutions for it.
I might have a go with a PR for these issues.
Is it possible to rebuild the image so the newest stable version from domoticz is used? Currently it is v4.10364 and latest stable is v4.10717
Domoticz is showing incorrect time on the frontend despite the host's timezone is set to Europe/London
first - thanks for great job creating this Dockerfile :)
for me after dockerization domoticz stops sending email notifications to google... logging of domoticz not really good so no luck with real error message, and also unable to check error on google side for now.
2019-01-23 20:32:03.923 Error: SMTP Mailer: Error sending Email to: [email protected] !
2019-01-23 20:32:03.923 Error: Failed to send Email notification!
i think something with SSL... but not sure.. will investigate.
Hi, first of all thanks for building and maintaining the only functional Docker images and Dockerfiles I could find for Domoticz containers on Raspberry Pi :)
I'm currently Dockerizing my existing Domoticz on the following context :
The backup server being used only when the main one is under maintenance. In such context, Domoticz persisted data and config must be transferred back and forth between containers on both servers, with the same Domoticz versions, to avoid hazardous automated up/down migrations on Domoticz database between both instances relying on different CPU architectures.
So, could you provide images of the latest Domoticz stable version (3.8153 and further ones when available) on Docker Hub for both your strech and arm-stretch branches ?
Like :
I guess this would be useful to many users, since your images for those branches are currently built on different periods, and relying on Domoticz master (beta) branch :
Or, at least, could you provide an argument for the Domoticz version on your stretch and stretch-arm Dockerfiles, so that anyone can build the same Domoticz version on both architectures ?
This way any user can override these settings upon build from command line or docker-compose files to build from any Domoticz tag or the master branch :
# Domoticz
ha-domoticz:
build:
context: ./domoticz/build/arm # (<- mkdomoticz Dockerfile)
args:
DOMOTICZ_VERSION: 3.8153 # (or master)
Please check my pull requests below.
Thanks.
Hi,
I did a pull and then the frist command to extract the config data to local dir, then i did:
docker run -d --name domoticz --privileged --cidfile="/mnt/docker_data/cids/domoticz-cid" -p 8080:8080/tcp -v
pwd/mnt/docker_data/domoticz/config:/config -t joshuacox/mkdomoticz
The container runs but when i go to the sever_ip:8080 i'am getting a message 404 Not found. Only related topic regarding this is:
Logs say:
docker logs -f domoticz
2017-06-28 05:52:59.383 Domoticz V3.7502 (c)2012-2017 GizMoCuz
2017-06-28 05:52:59.383 Build Hash: fdc764ee, Date: 2017-05-23 11:06:41
2017-06-28 05:52:59.384 Startup Path: /usr/local/bin/
2017-06-28 05:52:59.387 BuildManifest: Created directory /usr/local/bin/plugins/
2017-06-28 05:52:59.403 PluginSystem: Started, Python version '3.5.3'.
2017-06-28 05:52:59.404 Active notification Subsystems: gcm, http (2/12)
2017-06-28 05:52:59.404 WebServer(HTTP) started on address: 0.0.0.0 with port 8080
2017-06-28 05:52:59.405 Error: WebServer(SSL) startup failed on address 0.0.0.0 with port: 443: use_certificate_chain_file: No such file or directory
2017-06-28 05:52:59.405 Error: WebServer(SSL) check privileges for opening ports below 1024
2017-06-28 05:52:59.405 Proxymanager started.
2017-06-28 05:52:59.405 Starting shared server on: 0.0.0.0:6144
2017-06-28 05:52:59.405 RxQueue: queue worker started...
2017-06-28 05:52:59.405 TCPServer: shared server started...
2017-06-28 05:53:01.407 EventSystem: reset all events...
2017-06-28 05:53:01.407 EventSystem: reset all device statuses...
2017-06-28 05:53:01.407 EventSystem: Started
2017-06-28 05:53:01.891 PluginSystem: Entering work loop.
2017-06-28 05:53:03.427 Incoming connection from: 192.168.0.4
Any advice to solve this?
Docker not starting for rapsberry PI 1:
$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
64c41d9e1fe0 joshuacox/mkdomoticz:arm "/start.sh" 15 minutes ago Exited (139) 59 seconds ago domoticz
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.