like it very much!
I have the new plugin working perfectly on my test environment.
I Try to get this working on my future docker server environment.
I use a working default docker image domoticz/domoticz:latest. This contains the latest beta
I have this domoticz docker working with volumes and plugins outside docker , see my docker-compose.yml
outside = home/pi/IOTstack/volumes/domoticz/data/plugins/Broadlink (files)
inside container= /opt/domoticz/userdata
And i did a first try to create my own image/container based on image domoticz/domoticz:latest
The dockerfile is included but not ready.
I already have included python and the broadlink files.
@update: last thing to do :
Last part is to install/activate broadlink i think?
- i get an error on that with:RUN python -m pip install python-broadlink-master
error: Could not install packages due to an EnvironmentError: 404 Client Error: Not Found for url:
https://pypi.org/simple/python-broadlink-master/
- i installed python 3.7 in the image, but cant activate it in the image, so an older version is used not suitable for broadlink
Code: Select all
FROM domoticz/domoticz:latest
USER root
RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y -q build-essential\
wget \
zip \
unzip \
git \
python-pip \
python3.7 \
libpython3.7/*
# VOLUME ["/opt/domoticz/scripts", "/opt/domoticz/backups", "/opt/domoticz/db", "/opt/domoticz/plugins", " /opt/domoticz/www/images/floorplans", " /opt/domoticz/www/templates"]
EXPOSE 8080 9440 9000
RUN mkdir -p /opt/domoticz/plugins
RUN cd /opt/domoticz/plugins && wget http://192.168.20.48:80/downloads/broadlink.zip && unzip -q broadlink.zip && rm broadlink.zip
RUN chmod -R 755 /opt/domoticz/plugins/Broadlink
RUN python -m pip install python-broadlink-master
# Start domoticz
# CMD ["/opt/domoticz/domoticz"]
[code]
version: '3.6'
services:
domoticz:
container_name: domoticz
image: domoticz/domoticz:latest
ports:
- "82:8080"
- "6144:6144"
- "1443:1443"
- "9000:9000"
devices:
- '/dev/ttyUSB0:/dev/ttyUSB0'
volumes:
- ./volumes/domoticz/data:/opt/domoticz/userdata
restart: unless-stopped
network_mode: bridge
environment:
- PUID=1000
- PGID=1000
#- LOG_PATH=/opt/domoticz/userdata/domoticz.log
mosquitto:
container_name: mosquitto
image: eclipse-mosquitto
restart: unless-stopped
user: "1000"
ports:
- "1883:1883"
volumes:
- ./volumes/mosquitto/data:/mosquitto/data
- ./volumes/mosquitto/log:/mosquitto/log
- ./volumes/mosquitto/pwfile:/mosquitto/pwfile
- ./services/mosquitto:/mosquitto/config:ro
network_mode: bridge
nodered:
container_name: nodered
build: ./services/nodered/.
restart: unless-stopped
user: "0"
privileged: true
environment:
- TZ=Etc/UTC
ports:
- "1880:1880"
volumes:
- "./volumes/nodered/data:/data"
- "/var/run/docker.sock:/var/run/docker.sock"
- "/var/run/dbus/system_bus_socket:/var/run/dbus/system_bus_socket"
devices:
- "/dev/gpiomem:/dev/gpiomem"
- "/dev/ttyAMA0:/dev/ttyAMA0"
- "/dev/vcio:/dev/vcio"
networks:
- iotstack_nw
logging:
options:
max-size: 5m
max-file: "3"
networks:
iotstack_nw:
name: IOTstack_Net
# external: true
driver: bridge
ipam:
driver: default
config:
- subnet: 10.77.60.0/24
Code: Select all
2021-04-07 11:21:26.864 Broadlink hardware started.
2021-04-07 11:21:26.864 Status: Broadlink: (Broadlink) Entering work loop.
2021-04-07 11:21:26.864 Status: Broadlink: (Broadlink) Started.
2021-04-07 11:21:27.940 Error: Broadlink: (Broadlink) failed to load 'plugin.py', Python Path used was '/opt/domoticz/userdata/plugins/Broadlink/:/usr/lib/python37.zip:/usr/lib/python3.7:/usr/lib/python3.7/lib-dynload:/usr/local/lib/python3.7/dist-packages:/usr/lib/python3/dist-packages:/usr/lib/python3.7/dist-packages'.
2021-04-07 11:21:27.940 Error: Broadlink: (Broadlink) Module Import failed, exception: 'ModuleNotFoundError'
2021-04-07 11:21:27.940 Error: Broadlink: (Broadlink) Module Import failed: ' Name: broadlink'
2021-04-07 11:21:27.940 Error: Broadlink: (Broadlink) Error Line details not available.
Raspberry (raspbian on rpi 3) , Domoticz Beta, dzVents , RFXtrx433e, P1, Hue, Yeelight, Zwave+, X10, ESP(easy), MQTT,Weather Underground, System Alive Checker, Domoticz Remote Server to RPI with Google Assistant,
Jablotron connection, Ikea