GithubHelp home page GithubHelp logo

ceandre / radonreader Goto Github PK

View Code? Open in Web Editor NEW
56.0 7.0 26.0 71 KB

Read current radon level from RadonEye RD200

License: GNU General Public License v3.0

Python 100.00%
radoneye ftlabs radon rd200 bluetooth python

radonreader's Introduction

RadonReader

This project provides a tool which allows users collect current radon data from FTLab Radon Eye RD200 (Bluetooth only version).

Hardware Requeriments

  • FTLabs RadonEye RD200
  • Raspberry Pi
  • Bluetooth LE (Low Energy) support

Software Requeriments

  • Python 2.7.x
  • bluepy Python library

History

  • 0.3 - Added MQTT support

Usage

usage: radon_reader.py [-h] -a ADDRESS [-b] [-v] [-s] [-m] [-ms MQTT_SRV]
                       [-mp MQTT_PORT] [-mu MQTT_USER] [-mw MQTT_PW] [-ma]

RadonEye RD200 (Bluetooth/BLE) Reader

optional arguments:
  -h, --help       show this help message and exit
  -a ADDRESS       Bluetooth Address (AA:BB:CC:DD:EE:FF format)
  -b, --becquerel  Display radon value in Becquerel (Bq/m^3) unit
  -v, --verbose    Verbose mode
  -s, --silent     Only output radon value (without unit and timestamp)
  -m, --mqtt       Enable send output to MQTT server
  -ms MQTT_SRV     MQTT server URL or IP address
  -mp MQTT_PORT    MQTT server service port (Default: 1883)
  -mu MQTT_USER    MQTT server username
  -mw MQTT_PW      MQTT server password
  -ma              Enable Home Assistant MQTT output (Default: EmonCMS)

radonreader's People

Contributors

ceandre avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

radonreader's Issues

string argument wihout an encoding

I wonder if anyone would happen to know how to solve this issue:

pi@raspberrypi:/h/graham/radon $ python radon_reader.py -v -a F4:9F:38:88:88:6E
Connecting...
Writing...
string argument without an encoding
Failed, trying again (1)...
Connecting...
Failed to connect to peripheral F4:9F:38:88:88:6E, addr type: random
Failed, trying again (2)...
Connecting...
Failed to connect to peripheral F4:9F:38:88:88:6E, addr type: random
Failed, trying again (3)...
Connecting...
Failed to connect to peripheral F4:9F:38:88:88:6E, addr type: random
Failed.
pi@raspberrypi:/h/graham/radon $

Python 3 compatibility

Nice script, thanks a lot. I just received a brand new RD200 and the compatibility with Python 3 can be fixed by changing line 49:

RadonEyeWrite.write(bytes("\x50"))

with:

RadonEyeWrite.write(bytes("\x50", "ascii"))

Unfortunately this wouldn't work with 2.7. But 2.7 has been End of Life for 2 years :-)

Question on Setup

I have been using your script for several months and then it stopped working. It cannot find the RadonEye. Do you have to pair the device first using bluetoothctl or does the script handle it all?

ImportError: cannot import name btle

Hello,

I bought the RadonEye RD200 (GTIN: 4260514360076 ) and am trying to extract the log.
However I get this error:

pi@iobroker-pi:~ $ ./radon_reader.py
Traceback (most recent call last):
  File "./radon_reader.py", line 14, in <module>
    from bluepy import btle
ImportError: cannot import name btle

Anyone know how to solve it?

Raspberry Pi 3 Modell B
Linux iobroker-pi 5.10.103-v7+ #1529 SMP Tue Mar 8 12:21:37 GMT 2022 armv7l GNU/Linux
bluepy 1.3.0

Script does not connect

Hi!
I found the bluetooth mac with the discovery [NEW] Device 44:17:XX:XX:XX:XX FR:RE22111XXXXXXX

now I'm trying to connect to the radoneye device with python2.7 radon_reader.py -b -v -a 44:17:XX:XX:XX:XX

but I only get following output
Connecting...
Failed to connect to peripheral 44:17:XX:XX:XX:XX, addr type: random
Failed, trying again (1)...
Connecting...
Failed to connect to peripheral 44:17:XX:XX:XX:XX, addr type: random
Failed, trying again (2)...
Connecting...
Failed to connect to peripheral 44:17:XX:XX:XX:XX, addr type: random
Failed, trying again (3)...
Connecting...
Failed to connect to peripheral 44:17:XX:XX:XX:XX, addr type: random
Failed.

what I'm doing wrong?

thanks, kr

Python3?

Wondering if this works under Python3?

I'm getting the following error:

rpi4:radonreader:% python3 radon_reader.py -a FB:74:xx:yy:zz:aa -v
Connecting...
Writing...
string argument without an encoding
Failed, trying again (1)...
Connecting...
Failed to connect to peripheral FB:74:xx:yy:zz:aa, addr type: random
Failed, trying again (2)...
Connecting...
Failed to connect to peripheral FB:74:xx:yy:zz:aa, addr type: random
Failed, trying again (3)...
Connecting...
Failed to connect to peripheral FB:74:xx:yy:zz:aa, addr type: random
Failed.

The Bluetooth indicator on the device does turn on during this process.

Any and all ideas appreciated. Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.