Docker container for https://github.com/pimoroni/fanshim-python with prometheus exporter
5.4K
fanshim-python the official fanshim library.
prometheus includes prometheus export for monitoring
The python code in this repo is based on the official library examples.
Enable arm64 build support on amd64 systems (only required if not running).
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
Build (and push) the image for arm64.
docker buildx build \
--push \
--platform linux/arm64 \
--output=type=image,push=true \
--tag tyriis/fanshim-python:latest .
Start a configured docker container.
docker run -d --privileged \
--env OFF_THRESHOLD=55 \
--env ON_THRESHOLD=65 \
--env LOW_TEMP=55 \
--env HIGH_TEMP=65 \
--env DELAY=2 \
--env PREEMPT=FALSE \
--env VERBOSE=FALSE \
--env NOBUTTON=FALSE \
--env NOLED=FALSE \
--env BRIGHTNESS=255 \
--env EXTENDED_COLOURS=TRUE \
--env LOG_LEVEL=INFO \
--env PROMETHEUS_METRIC_PORT=9100 \
--name fanshim-python \
tyriis/fanshim-python
Currently prometheus metrics exporter runs on port 9100 if not changed.
Content type
Image
Digest
sha256:ae00c0c52…
Size
23.4 MB
Last updated
over 3 years ago
Requires Docker Desktop 4.37.1 or later.