matthijsvisser / kamstrup-402-mqtt

This project provides a Python library that enables communication with the Kamstrup Multical 402 heat meter. The configured parameters will be read from the meter at a certain interval and published in MQTT messages.
MIT License
45 stars 11 forks source link

Docker install #8

Closed jeroendew closed 1 year ago

jeroendew commented 1 year ago

Hi Matthijs,

I've have this running perfectly under windows, but since a couple days I have a NAS (synology). And I want to move the script to the NAS with docker. But somehow i'm not able to install this on a docker.

Any change you could help?

Greetings, Jeroen

jrkalf commented 1 year ago

Hi Jeroen,

You can install it in a docker. but it depends on the base operating system you're using. I've been able to run it in a home-assistant add-on form (also a docker container). Just make sure you install the right requirements. As a base I used Alpine Linux.

check my docker file at: https://github.com/jrkalf/kamstrup-40x-mqtt-hassio/

jeroendew commented 1 year ago

Hi jrkalf,

Unfortunately the docker version doesn't have the add-on page anymore :-( . Need to find another way...

matthijsvisser commented 1 year ago

Hi,

I'm currently quite busy with work. I might have time at the end of december to implement it. I noticed that some People forked this repo, you might find your answer there.

Cheers

matthijsvisser commented 1 year ago

@jeroendew @jrkalf Just pushed a commit for Docker support

see https://github.com/matthijsvisser/kamstrup-402-mqtt#running-as-a-docker-container

jeroendew commented 1 year ago

Hi @matthijsvisser,

Thanks for the instructions i'm gonna try and see if i can get this to work

EDIT Got it to work on my synology NAS. Thanks again :-)