Python3 / Asyncio only BLE scanning library

Hi,

So… I wrote this little library. You can start a BLE scan and get a dump of the advertised info coming.
You do not need any external tool, only python and asyncio

It can decode Eddystone beacon and extract the info

It can detect the Ruuvi Weather Station application and provide the relevant info (trame type 2, 3 and 4)

You need Python 3.5 or up.

It’s on Pypi, to install do

 pip3 install aioblescan

To run the default/sample application do

  python3 -m aioblescan

This will dump info about the advertised packets

To check Eddystone Beacons, try

 python3 -m aioblescan -e

For Ruuvi weather info

python3 -m aioblescan -r

Very early development, but it seems to work. Let me know what you think.

Cheers,
François

2 Likes

I forgot to mention, it is on github

 https://github.com/frawau/aioblescan

Also, it expects your BT adapter to be hci0… and it needs BT 4.0 or better… that goes without saying.