zorruno wikki: Tasmota Device Manager and Docker

Tasmota Device Manager and Docker


Notes

Allows Tasmota Device manager (tdmgr), which is a python GUI application to run in a docker container, and uses noVNC (HTML5 web based VNC client) to let you view tdmgr remotely.

View remotely with
http://[HOST IP ADDR]:5810

You can also use a VNC client directly at port 5910
Originally from https://hub.docker.com/r/marcelkordek/tasmota-device-manager (but this appears to have been abandoned)

Tasmota Device Manager: https://github.com/jziolkowski/tdm
NoVNC: https://novnc.com/info.html
Base container ENV variables https://github.com/jlesage/docker-baseimage-gui/#environment-variables


dockerfile

FROM jlesage/baseimage-gui:debian-10

RUN apt-get update && apt-get upgrade -y
RUN add-pkg libqt5x11extras5 python3 python3-pip git -y --no-install-recommends
RUN pip3 install --upgrade pip
RUN pip3 install setuptools

# Install Tasmota Device Manager
RUN pip3 install tdmgr

# Set the name of the application (this appears in the browser)
ENV APP_NAME="Tasmota Device Manager"

# Environment Variables
# see https://github.com/jlesage/docker-baseimage-gui/#environment-variables
#ENV TZ="Pacific/Auckland"

# Copy the start script
COPY startapp.sh /startapp.sh

# Create volume
VOLUME /config



docker-compose.yml

WARNING: My wiki editor stuff up spacing currently and may transform spaces into tabs... so this YML file likely won't work if you don't tidy it up sorry (I plan to fix the editor...)
version: '3.3'
services:
	tasmota-device-manager:
	build: .
	volumes:
		- "/dockervolumes/tasmota-device-manager/config:/config"
		- "/etc/localtime:/etc/localtime:ro"
		- "/etc/timezone:/etc/timezone:ro"
	ports:
		- '5810:5800'
		- '5910:5900'
	container_name: tasmota-device-manager
	hostname: tasmota-device-manager
	restart: unless-stopped


startapp.sh

#!/bin/sh
export HOME=/config
exec /usr/bin/python3 /usr/local/bin/tdmgr.py


--
CategoryDocker
CategoryMicrocontrol
CategoryHomeAutomation