- #DOCKER NETWORK MONITORING FULL VERSION#
- #DOCKER NETWORK MONITORING INSTALL#
- #DOCKER NETWORK MONITORING SERIAL#
- #DOCKER NETWORK MONITORING UPDATE#
The docker-compose file supports below parameters:
#DOCKER NETWORK MONITORING SERIAL#
Similar is the devices section it is mapping your local serial device to /dev/ttyUSB0 in the container Docker-compose file example version: '3.8' In below example it will be running on standard port 80 but you can easily change that by modifying the port mapping parameter from 80:80 to for instance 81:80 if you want the container to be available at port 81. After a short while (initially the container image needs to be downloaded from Docker hub) the P1-Monitor will be available on selected port. This way a small local network will be created and the container will be started in the background. Next you start your containerised P1-Monitor using the docker-compose up -d command. If your server is being rebooted the container will automatically be started again.
#DOCKER NETWORK MONITORING UPDATE#
That subdirectory is for creating persistence if the container is recreated or an update is available all data is preserved since it is being stored outside the container. If needed you can modify it using your own parameters such as the location of the data (in the example script in the subdirectory alldata). Copy the contents of below docker-compose file example to that file and save it.
To start with docker-compose create a new directory and create a file named docker-compose.yml. I selected docker-compose because it is easier to start and maintain a configuration Docker script
#DOCKER NETWORK MONITORING INSTALL#
P1-Monitor smart monitor cable connector PIN nummer P1 poortĬonnect above pins when using the smart meter port Install dockerįor the ones not familiar with containers: Start with installing docker and docker-compose on your system. Of course its even more easy to buy a standard ‘ Smart meter USB cable‘ for 15 euro or so but it was weekend and I needed the cable now ? Since I don’t have a serial port on my server (who does?) I used a standard USB to serial adaptor and modified a standard phone cable (for the RJ11 connector in the Smart meter) and connected it to the serial as below. Docker hub also holds the versions for other architectures so you can also run the container on ARM etc (such as Raspberry Pi) devices.
#DOCKER NETWORK MONITORING FULL VERSION#
The container version has the same functionality as the full version (although some options related to Operating System are not being used of course). The container image is available on Docker hub and I’m using GitHub to maintain the repository. Unless changes will be made to the databases of course but in that case you still use the export/import procedures. One other big benefit that I experienced is that I do not need to go through the extensive update process of exporting and importing data since everything is stored outside the container. That’s why I started converting that software to a container version suitable for running on any system with the help of docker, docker-compose, portainer or any system. But the software provided by ZTATZ is only available as a complete system image running on a Raspberry Pi. Since I’m running a Linux server already I didn’t want to start using a dedicated Raspberry Pi board for monitoring my smart meter. P1 monitor is software that visualises the data using graphs en retain the information in databases.
You can use that data to get real-time insight in your usage. A data package, called a telegram, is sent every 10 seconds (interval may differ) that contains data on usage on electricity and gas. The original software is maintained from įor those new to this subject, this software is intended to read information from you smart energy meter using the P1 port (a sort of serial port) using the DSMR protocol. This project is describing the porting of the P1-Monitor software running on Raspberry Pi to a container version to be able to run it on any Operating System.