Public Repository

Last pushed: 7 months ago
Short Description
Short description is empty for this repo.
Full Description

1.) If docker is installed, run the command to pull the image.

$ docker pull mriotimpactlabs/weewx-newmountain-nm150

2.) After you pull the image, run it with the following command. 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/ttyUSB0:/dev/ttyUSB0 -i -t mriotimpactlabs/weewx-newmountain-nm150 /bin/bash

3.) 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

4.) 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...

-MQTT Topic

Note: The topic must have no forward slashes at the end.
Correct Example: topic = some/topic/name
Incorrect Example: topic = some/topic/name/

5.) Once you being your interactive bash session from within the container, run the following command to start Weewx.

$ /etc/init.d/weewx start

6.) If you wish to stop Weewx, run the following command.

$ /etc/init.d/weewx stop

7.) If you wish to restart Weewx, run the following command.

$ /etc/init.d/weewx restart

8.) Technical Note: Sometimes after the configuration is finished and I start Weewx, I get this problem where the data is being published to the terminal only. If this happens first make sure that the topic is correctly spelled. Once this is confirmed, stop Weewx, exit container and exec back into it with:

$ docker exec -it <containerID> /bin/bash

Then start Weewx:

$ /etc/init.d/weewx start

9.) Technical Note: This was not obvious to me originally, but when you subscribe to some topic make sure you append it with "loop". So if your topic on the "weewx.conf" is:

topic = some/topic/name

then your subscription from the client should read:

topic = some/topic/name/loop

Docker Pull Command