Weather Station data receiver for RaspberryPi. This application processes the data received from the weather station.
Install PIP:
sudo apt install -y python3-pip
Install Python packages:
pip3 install pyyaml pyserial requests
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:
- Open the configuration menu:
sudo raspi-config
-
Navigate to Interfacing Options.
-
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
-
Close menu and reboot.