renemarc / balena-airthingswave

☢️ Airthings Wave radon detector bridge for single-board computers: a balena and Docker container. 🐳
Apache License 2.0
14 stars 5 forks source link

Bug: Traceback from bluetooth on Pi 3b+ #18

Open scstraus opened 4 years ago

scstraus commented 4 years ago

Bug Report

Hi, is this able to run on a 3b+? That's all I have lying around, but balena only has an image for 3, not specifically 3b+. It seems to be having problems accessing the bluetooth.

Steps to Reproduce (unless obvious)

  1. Install
  2. Configure
  3. Run

Environment Info

Pulled it 2 days ago.

Debug Log (if any)

29.07.20 13:00:01 (+0200)  main  radon/upstairs a1:db:22:28:cf:e4
29.07.20 13:00:03 (+0200)  main  Traceback (most recent call last):
29.07.20 13:00:03 (+0200)  main    File "/usr/local/lib/python2.7/runpy.py", line 174, in _run_module_as_main
29.07.20 13:00:03 (+0200)  main      "__main__", fname, loader, pkg_name)
29.07.20 13:00:03 (+0200)  main    File "/usr/local/lib/python2.7/runpy.py", line 72, in _run_code
29.07.20 13:00:03 (+0200)  main      exec code in run_globals
29.07.20 13:00:03 (+0200)  main    File "/usr/local/lib/python2.7/site-packages/airthingswave-mqtt/__main__.py", line 32, in <module>
29.07.20 13:00:03 (+0200)  main      main()
29.07.20 13:00:03 (+0200)  main    File "/usr/local/lib/python2.7/site-packages/airthingswave-mqtt/__main__.py", line 25, in main
29.07.20 13:00:03 (+0200)  main      r = atw.get_readings(handle)
29.07.20 13:00:03 (+0200)  main    File "/usr/local/lib/python2.7/site-packages/airthingswave-mqtt/airthingswave.py", line 96, in get_readings
29.07.20 13:00:03 (+0200)  main      ch  = p.getCharacteristics(uuid=s.uuid)[0]
29.07.20 13:00:03 (+0200)  main    File "/usr/local/lib/python2.7/site-packages/bluepy/btle.py", line 508, in getCharacteristics
29.07.20 13:00:03 (+0200)  main      rsp = self._getResp('find')
29.07.20 13:00:03 (+0200)  main    File "/usr/local/lib/python2.7/site-packages/bluepy/btle.py", line 407, in _getResp
29.07.20 13:00:03 (+0200)  main      resp = self._waitResp(wantType + ['ntfy', 'ind'], timeout)
29.07.20 13:00:03 (+0200)  main    File "/usr/local/lib/python2.7/site-packages/bluepy/btle.py", line 368, in _waitResp
29.07.20 13:00:03 (+0200)  main      raise BTLEGattError("Bluetooth command failed", resp)
29.07.20 13:00:03 (+0200)  main  bluepy.btle.BTLEGattError: Bluetooth command failed (code: 10, error: No attribute found within the given range)
welcome[bot] commented 4 years ago

🎉 Thanks for opening your first issue here! 😃