Well, after the troubles with the last update i decided to create a Debian container first and install Pimatic on that. Runs pretty smooth right now! (just make sure you install the right NPM version!!)
-
New docker container for pimatic with autostart
-
Can you roughly explain how I can do that?
I don’t understand that.pimatic + MySensors + Homeduino + z-way
https://github.com/n3roGit/MySensors_n3ro -
@jos-hendriks said in New docker container for pimatic with autostart:
mkdir /home/pimatic-app
could you plase explain how to use your docker with the update script?
pimatic + MySensors + Homeduino + z-way
https://github.com/n3roGit/MySensors_n3ro -
Basicly setup a Debian docker container and follow this howto. For me i installed the 9.4.2 version as the latest didn’t work (npm install pimatic@0.9.42)… but remeber, install the right npm version (https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions)
-
THX! Do you have linked some folder to the docker to prevent data loss?
pimatic + MySensors + Homeduino + z-way
https://github.com/n3roGit/MySensors_n3ro -
Haven’t done that yet, first tried to see if it was possible…
-
Thx. It works great. The only think… the service doesnt start automaticly
pimatic + MySensors + Homeduino + z-way
https://github.com/n3roGit/MySensors_n3ro -
Google has an easy fix for that
-
like this?
#!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error. # # In order to enable or disable this script just change the execution # bits. # # By default this script does nothing. # added by ADMIN to run fancy stuff at boot: /usr/sbin/service pimatic start exit 0
pimatic + MySensors + Homeduino + z-way
https://github.com/n3roGit/MySensors_n3ro -
You can try, i havent done it myselve yet, so no idea!
-
Hmm not working like this
pimatic + MySensors + Homeduino + z-way
https://github.com/n3roGit/MySensors_n3ro -
Had half an hour to try this, didn’t get it to work either… Best not to restart the container then
-
hahahha
pimatic + MySensors + Homeduino + z-way
https://github.com/n3roGit/MySensors_n3ro -
Finally almost everything runs!!!
Now only the echo and dash plugin don’t work anymore. I guess I’ll have to open some ports for it.does anyone know what they are?
Or do I have to run the container directly on my network interface?
pimatic + MySensors + Homeduino + z-way
https://github.com/n3roGit/MySensors_n3ro -
@n3ro said in New docker container for pimatic with autostart:
Finally almost everything runs!!!
Now only the echo and dash plugin don’t work anymore. I guess I’ll have to open some ports for it.does anyone know what they are?
Or do I have to run the container directly on my network interface?
I‘m a Docker newbie too. After reading the articles in the latest c‘t magazine, i decided to try it out. Thanks to Jos Hendriecks Blog my Pimatic container is up and running.
I‘ve configured a macvlan network in Docker to get the Amazon Dash Button plugin working. This allows libpcap to capture pakets on the physical network interface. But according to the Openhab Dockerimage description , there seems to be a simpler solution. Just run the Docker image on the host network (—net=host) as root user. I haven‘t tried it out yet.
Update:
Indeed Dash button does work on the host network, if i run my container with the following parameters:docker run ... --network host --cap-add NET_ADMIN --cap-add NET_RAW ...