WXforum.net

Weather Station Hardware => Oregon Scientific Hardware => Topic started by: AndyB on April 20, 2020, 10:01:19 AM

Title: Capturing sensor data.
Post by: AndyB on April 20, 2020, 10:01:19 AM
Hi Guys 'n Gals,

A while ago my wife purchased an Oregon Scientific weather station that uses wireless (433Mhz) sensors. The base station works fine but there is no way to log the data.

I found a receiver circuit based on an Arduino that grabbed and decoded the data. That worked well and I was able to stuff the data in to a database. Problem was the USB kept dropping out and I'd lose days of data each time as I had to do a hard reset to get it to work again (seems to be a common problem with USB).

Does anyone here know, or have made a similar system using a raspberry Pi ?

I'm thinking of the Pi as it's network based and I could grab the data that way.

Any advice/help would be appreciated.

Cheers,

Andy

PS I'm a retired Electronics/ICT technician so am handy with a soldering iron and some coding ;)
Modify message
Title: Re: Capturing sensor data.
Post by: Bushman on April 20, 2020, 10:06:07 AM
RTL_433 on Software Defined Radio running on a Pi will  do this.  There are a lot of tutorials around.  Weewx seems to be the most popular DB to store the data and there is a full setup of it from Matthew Wall IIRC.
Title: Re: Capturing sensor data.
Post by: Storm017 on April 20, 2020, 04:07:16 PM
Additional information on SDR and Weewx

https://github.com/weewx/weewx/wiki/sdr-rpi-recipe

EDIT:

Here is a link for the hardware that weewx supports:

http://www.weewx.com/docs/hardware.htm

If your approach would be to use a SDR to capture RF sensor data,  would need a BME280 sensor or BMP280 sensor for pressure readings. Here is the one I use:

https://www.amazon.com/HiLetgo-Atmospheric-Pressure-Temperature-Humidity/dp/B01N47LZ4P/ref=sr_1_7 dchild=1&keywords=BME280&qid=1587430194&s=industrial&sr=1-7

As for a RTC Module, as mentioned in the sdr-rpi-recipe, I'm using a DS3231 Module.

https://www.amazon.com/Diymore-AT24C32-Arduino-Without-Battery/dp/B01IXXACD0/ref=sr_1_2_sspa?crid=191K8YV7OJW2W&dchild=1&keywords=ds3231&qid=1587430453&s=industrial&sprefix=DS%2Cindustrial%2C154&sr=1-2-spons&psc=1&spLa=ZW5jcnlwdGVkUXVhbGlmaWVyPUEyWFNKVzIzSVFWN1c2JmVuY3J5cHRlZElkPUEwOTI1NTQ4VTMzUlFGQkJWRE5RJmVuY3J5cHRlZEFkSWQ9QTA4NDAyMjlQNUg2Sk1NRkI2UVUmd2lkZ2V0TmFtZT1zcF9hdGYmYWN0aW9uPWNsaWNrUmVkaXJlY3QmZG9Ob3RMb2dDbGljaz10cnVl


Title: Re: Capturing sensor data.
Post by: AndyB on April 21, 2020, 04:58:35 AM
Thanks guys. I'll have a read through the links.

Cheers,

Andy
Title: Re: Capturing sensor data.
Post by: hmderek on April 26, 2020, 08:17:35 AM
I've used an RFXtrx433XL USB 433.92MHz Transceiver, hooked up to a Raspberry Pi, to collect the data.

This post I wrote - mostly for my own benefit - has some relevant links: https://dbxit.com/enabling-rfxcom-protocols-using-rfxcmd-on-linux

There are other options available, like Rflink.

Another option is using Home Assistant, which also gives you the option to read data from a 433mhz receiver. It has a built in web socket server which you can subscribe to. It can send event updates every time a sensor update is received.

https://www.home-assistant.io/integrations/rfxtrx/

https://www.home-assistant.io/integrations/rflink/

https://www.home-assistant.io/integrations/websocket_api/

Domoticz is also an option and easy to set up. But I believe it has less options when you want to forward your data somewhere else. Also, in my case it tended to freeze up, making it less useful.