Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 1.14 KB

README.md

File metadata and controls

25 lines (16 loc) · 1.14 KB

Anemometer

This container handles the anemometer of the weather station. The wiring is described here.

This container is using Python and the gpiozero library. Each rotation is handled as a button press out of which the wind speed can be calculated.

The data sheet of the weather station provides the necessary data.

A wind speed of 2.4 km/h causes the switch to close once per second.

Development

In order to test the code easily, the container uses a trick to allow using PyCharm locally and execute the code in the remote container. For that the container needs to open an SSH port. This can be achieved setting the device service variable START_SSHD=1. This will start sshd and allow PyCharm to sue the container as a remote execution environment.

NOTE: This is a development trick/hack. In a production environment the sshd config should be removed.

Misc