Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 1.29 KB

README.md

File metadata and controls

26 lines (17 loc) · 1.29 KB

Raingauge

This container handles the rain gauge 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 information to calculate the rainfall.

The rain gauge is a self-emptying tipping bucket type. Each 0.2794 mm of rain cause one momentary contact closure that can be recorded with a digital counter or microcontroller interrupt input.

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