Skip to content

Latest commit

 

History

History
40 lines (30 loc) · 1.27 KB

README.md

File metadata and controls

40 lines (30 loc) · 1.27 KB

Weather Station Receiver

CI Quality Gate Status

Weather Station data receiver for RaspberryPi. This application processes the data received from the weather station.

Install

Install PIP:

sudo apt install -y python3-pip

Install Python packages:

pip3 install pyyaml pyserial requests

Enable serial port

The Raspberry Pi serial port is disabled by default. If we run the program, we will get the following error:

08.Nov 2020 18:17:58 raspberrypi WS-Receiver: (ERROR) [Errno 2] could not open port /dev/ttyS0: [Errno 2] No such file or directory: '/dev/ttyS0'

To enable the serial port follow the next steps:

  1. Open the configuration menu:
sudo raspi-config
  1. Navigate to Interfacing Options.

  2. Navigate to Serial and answer the questions:

    Would you like a login shell to be accessible over serial? No

    Would you like the serial port hardware to be enabled? Yes

  3. Close menu and reboot.