# Using rtl\_433 to get weather station data

**URL:** <https://community.openenergymonitor.org/t/using-rtl-433-to-get-weather-station-data/12754>\
**Category:** Integrations\
**Created:** [16 December 2019 11:56 UTC](https://community.openenergymonitor.org/t/using-rtl-433-to-get-weather-station-data/12754 "2019-12-16T11:56:21Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![borpin](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/borpin/32/193_2.png) [@borpin](https://community.openenergymonitor.org/u/borpin)\
**Post date:** [16 December 2019 11:56 UTC](https://community.openenergymonitor.org/t/using-rtl-433-to-get-weather-station-data/12754/1 "2019-12-16T11:56:21Z")

</div>

> [@Radio interference - Xmas?](https://community.openenergymonitor.org/t/radio-interference-xmas/12736/11):
>
> Also look out for rtl\_433

Ah that’s interesting. I have an old USB DVB-T stick lying around that looks like it may be compatible. What hardware do you use? [GitHub - merbanan/rtl\_433: Program to decode radio transmissions from devices on the ISM bands (and other frequencies)](https://github.com/merbanan/rtl_433)

> [@Radio interference - Xmas?](https://community.openenergymonitor.org/t/radio-interference-xmas/12736/11):
>
> a weather station.

My base station has gone (slightly) kaput but the data is still coming from the sensors I am sure.

---

<div class="post-metadata">

**Author:** ![dbrooke](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/dbrooke/32/12103_2.png) [@dbrooke](https://community.openenergymonitor.org/u/dbrooke)\
**Post date:** [16 December 2019 12:27 UTC](https://community.openenergymonitor.org/t/using-rtl-433-to-get-weather-station-data/12754/2 "2019-12-16T12:27:37Z")

</div>

> [@borpin](#):
>
> What hardware do you use?

It’s just some cheap generic R820T tuner. Not as good as the V3 mentioned above (I use those for some other applications) but fine for this purpose.

> [@borpin](#):
>
> My base station has gone (slightly) kaput but the data is still coming from the sensors I am sure.

I only bought a sensor set, but it’s WH1080 compatible and runs on 868.350 MHz

---

<div class="post-metadata">

**Author:** ![borpin](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/borpin/32/193_2.png) [@borpin](https://community.openenergymonitor.org/u/borpin)\
**Post date:** [16 December 2019 12:40 UTC](https://community.openenergymonitor.org/t/using-rtl-433-to-get-weather-station-data/12754/3 "2019-12-16T12:40:11Z")

</div>

> [@dbrooke](#):
>
> It’s just some cheap generic R820T tuner.

such as this  
[https://www.amazon.co.uk/dp/B013Q94CT6/ref=cm\_sw\_em\_r\_mt\_dp\_U\_mQ39Db8HYM754](https://www.amazon.co.uk/dp/B013Q94CT6/ref=cm_sw_em_r_mt_dp_U_mQ39Db8HYM754)

> [@dbrooke](#):
>
> but it’s WH1080 compatible

That’s what I have.

---

<div class="post-metadata">

**Author:** ![dbrooke](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/dbrooke/32/12103_2.png) [@dbrooke](https://community.openenergymonitor.org/u/dbrooke)\
**Post date:** [16 December 2019 12:48 UTC](https://community.openenergymonitor.org/t/using-rtl-433-to-get-weather-station-data/12754/4 "2019-12-16T12:48:09Z")

</div>

> [@borpin](#):
>
> such as [this](https://www.amazon.co.uk/dp/B013Q94CT6/ref=cm_sw_em_r_mt_dp_U_mQ39Db8HYM754)?

Mine’s an older one, more like this:  
[https://www.amazon.co.uk/dp/B00BYQMGZG/ref=psdc\_1338185031\_t2\_B013Q94CT6](https://www.amazon.co.uk/dp/B00BYQMGZG/ref=psdc_1338185031_t2_B013Q94CT6)

---

<div class="post-metadata">

**Author:** ![borpin](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/borpin/32/193_2.png) [@borpin](https://community.openenergymonitor.org/u/borpin)\
**Post date:** [16 December 2019 12:58 UTC](https://community.openenergymonitor.org/t/using-rtl-433-to-get-weather-station-data/12754/5 "2019-12-16T12:58:59Z")

</div>

I split the topic as it is way off topic 😀

> [@Radio interference - Xmas?](https://community.openenergymonitor.org/t/radio-interference-xmas/12736/11):
>
> I use it together with a bit of python to feed my emonPi with data from some CurrentCost power monitors and a weather station.

Would you mind sharing the code?

---

<div class="post-metadata">

**Author:** ![dbrooke](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/dbrooke/32/12103_2.png) [@dbrooke](https://community.openenergymonitor.org/u/dbrooke)\
**Post date:** [16 December 2019 13:16 UTC](https://community.openenergymonitor.org/t/using-rtl-433-to-get-weather-station-data/12754/6 "2019-12-16T13:16:15Z")

</div>

> [@borpin](#):
>
> I split the topic as it is way off topic

Good idea.

> [@borpin](#):
>
> Would you mind sharing the code?

It’s a bit of a quick hack, so there’s hard coded configuration embedded throughout, and I’ve modified a bit of that so you don’t try to connect to my emonPi 😁, but this should be a good starting point.

[mqtt\_868.py.txt](https://community.openenergymonitor.org/uploads/short-url/2Kw38KNuOdA6ZLlWGDwzrme0Ubn.txt) (1.4 KB)

run it using something like:

rtl\_433 -f 868350000 -F json -M level 2\> /dev/null | ./mqtt\_868.py

---

<div class="post-metadata">

**Author:** ![borpin](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/borpin/32/193_2.png) [@borpin](https://community.openenergymonitor.org/u/borpin)\
**Post date:** [16 December 2019 13:18 UTC](https://community.openenergymonitor.org/t/using-rtl-433-to-get-weather-station-data/12754/7 "2019-12-16T13:18:14Z")

</div>

> [@dbrooke](#):
>
> but this should be a good starting point.

Excellent. I’ll have a look when the stick arrives and let you know how I get on.

Cheers

---

<div class="post-metadata">

**Author:** ![Bill.Thomson](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/bill.thomson/32/1834_2.png) [@Bill.Thomson](https://community.openenergymonitor.org/u/Bill.Thomson)\
**Post date:** [16 December 2019 13:55 UTC](https://community.openenergymonitor.org/t/using-rtl-433-to-get-weather-station-data/12754/8 "2019-12-16T13:55:14Z")

</div>

> [@borpin](#):
>
> That’s what I have.

That should do the job. For local signals, an el cheapo SDR works fine.

---

<div class="post-metadata">

**Author:** ![Robert.Wall](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/robert.wall/32/38246_2.png) [@Robert.Wall](https://community.openenergymonitor.org/u/Robert.Wall)\
**Post date:** [16 December 2019 17:16 UTC](https://community.openenergymonitor.org/t/using-rtl-433-to-get-weather-station-data/12754/9 "2019-12-16T17:16:42Z")

</div>

2 posts were split to a new topic: [Community.openenergymonitor.org temporarily offline](https://community.openenergymonitor.org/t/community-openenergymonitor-org-temporarily-offline/12757)

---

<div class="post-metadata">

**Author:** ![borpin](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/borpin/32/193_2.png) [@borpin](https://community.openenergymonitor.org/u/borpin)\
**Post date:** [17 December 2019 17:08 UTC](https://community.openenergymonitor.org/t/using-rtl-433-to-get-weather-station-data/12754/10 "2019-12-17T17:08:50Z")

</div>

I am super impressed with this.

Installed rtl\_433 from the Raspbian testing repo, plugged in the USB stick and off it goes like magic.

Just used the command (-R 32 for the WH1080)

```auto
rtl_433 -R 32

```

and I get data. ![beer_cheer](https://community.openenergymonitor.org/uploads/default/original/2X/4/4e771dd9e42226fc5a882fd329a05642ed246eb5.gif) ![highfive](https://community.openenergymonitor.org/uploads/default/original/2X/5/5ff242bdaf3b6f3c8eae09459f806245c2d085d1.gif)

---

<div class="post-metadata">

**Author:** ![borpin](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/borpin/32/193_2.png) [@borpin](https://community.openenergymonitor.org/u/borpin)\
**Post date:** [17 December 2019 17:36 UTC](https://community.openenergymonitor.org/t/using-rtl-433-to-get-weather-station-data/12754/11 "2019-12-17T17:36:54Z")

</div>

@dbrooke I notice there is now inbuilt MQTT output - no need for your script!

I’m using

```auto
 rtl_433 -R 32 -F "mqtt://X.X.X.X:1883,user=posting,pass=postingtomqtt,retain=0,devices=rtl_433_weather"

```

The only downside is that it sends the data as separate topics. I’ve suggested adding an option to send it as a single JSON payload.

All I need now is a service file to run it by `systemd` and I’m sorted.

BTW, it is running on my EmonPi.

---

<div class="post-metadata">

**Author:** ![Bill.Thomson](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/bill.thomson/32/1834_2.png) [@Bill.Thomson](https://community.openenergymonitor.org/u/Bill.Thomson)\
**Post date:** [17 December 2019 18:01 UTC](https://community.openenergymonitor.org/t/using-rtl-433-to-get-weather-station-data/12754/12 "2019-12-17T18:01:32Z")

</div>

> [@borpin](#):
>
> Installed rtl\_433 from the Raspbian testing repo, plugged in the USB stick and off it goes like magic.

Prety slick, eh?

The current crop of SDRs are _very_ verstile devices. Did you notice that rtl\_433  
has direct support for the emonTx? There are well over 100 devices in the list of supported  
hardware. emonTx is number 45.  
 ![image](https://community.openenergymonitor.org/uploads/default/original/2X/5/55ca35f02db7341bd2e398f43b46087bacda81e3.png)

Here’s a link to a Python app that’ll take your WH1080 data and draw lots of nice charts and graphs: [http://www.weewx.com](http://www.weewx.com)

Like this one:  
[![](http://www.weewx.com/screenshots/hoodriver.png) ](http://www.weewx.com/screenshots/hoodriver.png)

---

<div class="post-metadata">

**Author:** ![borpin](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/borpin/32/193_2.png) [@borpin](https://community.openenergymonitor.org/u/borpin)\
**Post date:** [17 December 2019 19:06 UTC](https://community.openenergymonitor.org/t/using-rtl-433-to-get-weather-station-data/12754/13 "2019-12-17T19:06:28Z")

</div>

> [@Bill.Thomson](#):
>
> Did you notice that rtl\_433 has direct support for the emonTx?

Ha no I didn’t. What format though 😀.

I’ve used [pywws](https://pywws.readthedocs.io/en/latest/index.html) for years and I’d like to continue but getting the data into it may be an issue.

How I did it if anyone is interested…  
[https://tech.borpin.co.uk/2019/12/17/get-data-from-wh1080-maplin-weatherstation-sensors-directly/](https://tech.borpin.co.uk/2019/12/17/get-data-from-wh1080-maplin-weatherstation-sensors-directly/)

---

<div class="post-metadata">

**Author:** ![dbrooke](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/dbrooke/32/12103_2.png) [@dbrooke](https://community.openenergymonitor.org/u/dbrooke)\
**Post date:** [17 December 2019 22:42 UTC](https://community.openenergymonitor.org/t/using-rtl-433-to-get-weather-station-data/12754/14 "2019-12-17T22:42:50Z")

</div>

> [@borpin](#):
>
> I notice there is now inbuilt MQTT output

So there is! It wasn’t in there when I first set this up and I’d not noticed its addition.

---

<div class="post-metadata">

**Author:** ![stephen](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/stephen/32/19571_2.png) [@stephen](https://community.openenergymonitor.org/u/stephen)\
**Post date:** [17 January 2020 00:14 UTC](https://community.openenergymonitor.org/t/using-rtl-433-to-get-weather-station-data/12754/15 "2020-01-17T00:14:53Z")

</div>

not sure anyone mentioned but there [weewx-sdr](https://github.com/matthewwall/weewx-sdr) driver which is what I use

plus other nice extensions to weewx  
**[weewx-belchertown](https://github.com/poblabs/weewx-belchertown)** – Nice webinterface for weewx-  
**[weewx-mqtt](https://github.com/matthewwall/weewx-mqtt)**– MQTT publishing  
**[weewx-influxdb](https://github.com/matthewwall/weewx-influx)** --which is what I use for long term data storage

---

<div class="post-metadata">

**Author:** ![Bill.Thomson](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/bill.thomson/32/1834_2.png) [@Bill.Thomson](https://community.openenergymonitor.org/u/Bill.Thomson)\
**Post date:** [17 January 2020 01:01 UTC](https://community.openenergymonitor.org/t/using-rtl-433-to-get-weather-station-data/12754/16 "2020-01-17T01:01:15Z")

</div>

> [@stephen](#):
>
> not sure anyone mentioned but there [weewx-sdr](https://github.com/matthewwall/weewx-sdr) driver which is what I use

Although it doesn’t mention the driver specifically, the chart **does** make reference to _weewx:_

 ![image](https://community.openenergymonitor.org/uploads/default/original/2X/2/271086bea65cf57c09803a92689ea5033a248cf8.png)

---

<div class="post-metadata">

**Author:** ![stephen](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/stephen/32/19571_2.png) [@stephen](https://community.openenergymonitor.org/u/stephen)\
**Post date:** [17 January 2020 04:43 UTC](https://community.openenergymonitor.org/t/using-rtl-433-to-get-weather-station-data/12754/17 "2020-01-17T04:43:57Z")

</div>

oh okay was not sure if you were using the builtin drivers connected to via the weather device console by USB or the SDR driver as it was not mentioned…  
well maybe in the chart you mention and it was part of that image .but there one image that is broken on my end and I can not see that …

this my current web out put for my station:

 ![weaterstation](https://community.openenergymonitor.org/uploads/default/original/2X/4/4200c700532e8607e986660e2ef808b6c30c1b30.png)

also the mqtt format from weewx-mqtt works easily with my [esp-TFT-graphing](https://github.com/krywenko/ESP_TFT_GRAPH_MQTT) via MQTT just have to change the topic in it slightly ie: for ouside temp it would be weather/outTemp\_F.
