This repository contains the things needed to build docker images for the home autoomation software FHEM (http://fhem.de)
/etc/timezone
is set via mounting as a run parameter bust still FHEM reports the wrong timezone.
To fix this I put {$ENV{TZ}='Europe/Berlin'}
into fhem.cfg but that is just a hack. Fix that properly!
In ?????? it says:
Verify that your FHEM time is correct by entering {localtime()} into the FHEM command line.
If not, check the system time and timezone of your FHEM server and adjust appropriately.
It may be necessary to add export TZ=`cat /etc/timezone` or something similar to your FHEM start script /etc/init.d/fhem or your system configuration file /etc/profile.
If /etc/timezone does not exists or is undefined execute tzselect to find your timezone and write the result into this file.
After making changes restart FHEM and enter {$ENV{TZ}} into the FHEM command line to verify. To fix the timezone temporarily without restarting FHEM enter {$ENV{TZ}='Europe/Berlin'} or something similar into the FHEM command line.
Again use tzselect to fine a valid timezone name.
AFAIK stable. Totally free to use by everyone.
rpi-latest
FHEM 5.8 for Raspberry Pirpi-updated
FHEM 5.8 for Raspberry Pi updated to the (at build time) latest versions of all modules
Initial content was copied from https://github.com/Raigen/docker-fhem. Many thanks for your effort!
cd ~; rm -rf docker-fhem; git clone https://github.com/sejnub/docker-fhem.git
cd ~/docker-fhem; docker build -t sejnub/fhem:rpi-latest .
Run the latest version (see section "run")
Open browser and point it to the fhem webserver on port 8083.
Into the command field at the top of the fhem web page type
update
When it's finished type into the same command field
shutdown
Now commit the update to a new image
docker commit fhem sejnub/fhem:rpi-updated
Now you have an up to date image with fhem.
Push images to https://hub.docker.com
If you are not sejnub you have to retag the images to your username at dockerhub and use those new tags. The following commands use the authors tags.
Log into dockerhub and push the images with
docker login
docker push sejnub/fhem:rpi-latest
docker push sejnub/fhem:rpi-updated
For running with CUL we need --privileged
or --device
. The following commands assume that you use a CUL in a typical setup.
Run an interactive bash
docker rm -f fhem; docker run -it -v /etc/timezone:/etc/timezone --device /dev/ttyACM0 -p 8083:8083 -p 7072:7072 --name fhem sejnub/fhem:rpi-latest bash
Run the latest or the updated version
docker rm -f fhem; docker run -d -v /etc/timezone:/etc/timezone --device /dev/ttyACM0 -p 8083:8083 -p 7072:7072 --name fhem sejnub/fhem:rpi-latest
docker rm -f fhem; docker run -d -v /etc/timezone:/etc/timezone --device /dev/ttyACM0 -p 8083:8083 -p 7072:7072 --name fhem sejnub/fhem:rpi-updated
For flashing and adding CUL see https://haus-automatisierung.com/hardware/fhem/2016/05/08/fhem-tutorial-reihe-part-4-cul-flashen-und-erste-geraete-anlernen.html