Skip to content

A proof of principle project to decode wireless weather sensors with the Raspberry Pi.

License

Notifications You must be signed in to change notification settings

EmlJnke/tempRainPi

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fork of untergasser/tempRainPi

This is a Fork of the original tempRainPi to further develop the great work of Andreas Untergasser to fit all my purposes.

Almost all C++ Code is written by him so credits go to Untergasser!

TempRainPi

This is a proof of concept project to decode wireless weather sensors with simple modules running on a Raspberry Pi. Currently, it only supports the Alecto WS 1200. As the receiver is responsible for decoding the frequency, it should work with 868Mhz as well as 433Mhz depending on the device used. The Raspberry Pi does
not handle any high frequency decoding and just reads the signal on one pin 10000 times per second.
In principle, it could work for any frequency if decoders are available and the output signal is digital. Cheap modules supporting on/off keying (OOK) modulation are available. The code only requires the WiringPi library. It consumes low amounts of energy and is computationally cheap.

Prerequisites

The transmitter can be used to send an identical signal, which can be recorded with an SDR:

rtl_fm -M am -f 433.9M -s 10k > rtl.dat

And visualized with audacity (import raw data, Signed 16 bit PCM, Little-endian and Mono). The station displays do not respond to the signal yet, probably due to the low amplitude.

History and Credits

The whole idea and the basic source code were inspired by the TempHygroRX868 which Martin Kompf, whose web page I also really enjoy, developed.

The hardware setup is identical to rpi-rf. I furthermore use the same sensors and wiring of the sensors and Raspberry Pi, but no code provided. It inspired the idea to send data back to the display.

A great project to deal with weather sensors is rtl_433.

Many thanks to Benjamin Larsson and especially to Christian W. Zuckschwerdt for their support decoding the Alecto WS-1200 signals.

After all that I still depend on code from tfrec (SDR for TFA KLIMALOGG Pro sensors).

License

Copyright 2020 Andreas Untergasser + Emil Jahnke

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

About

A proof of principle project to decode wireless weather sensors with the Raspberry Pi.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 50.0%
  • C++ 46.0%
  • Makefile 3.0%
  • Shell 1.0%