1.) Run container with the command below. This will map the device path to the container and configure the container to always run at boot.
$ sudo docker run --restart=always --device=/dev/ttyS0:/dev/ttyS0 -i -t mriotimpactlabs/weewx-davis-vpro2 /bin/bash
2.) From within the intractive bash session, edit the weew.conf file so that it is configured for your custom deployment.
$ vim /etc/weewx/weewx.conf
3.) There are four or five parameters which must be modified. There are conspicuous comments in the file which point to these parameters. The parameters are listed below...
- Latitude
- Longitude
- Altitude
- MQTT Topic
- Port: /dev/ttyS0
2.) Once you begin an interactive bash session from within the container, run the following command to start Weewx.
$ /etc/init.d/weewx start
3.) If you wish to stop weewx, run the following command.
$ /etc/init.d/weewx stop