RuuviTags aren't recognized by Edge device

I’m using an OnLogic CL210G-10 Ultra Small Edge Device. I’ve installed all the requirements as far as I know, but the python test script:

from ruuvitag_sensor.ruuvi import RuuviTagSensor
import ruuvitag_sensor.log

ruuvitag_sensor.log.enable_console()


RuuviTagSensor.find_ruuvitags()

is producing the following output:

Finding RuuviTags. Stop with Ctrl+C.
Start receiving broadcasts (device hci0)
FYI: Calling a process with sudo!
FYI: Spawning 2 processes with sudo!
End Of File (EOF). Exception style platform.
Stop receiving broadcasts

and I don’t really know what to make of it.

Using

 hcitool lescan

or

 bluetoothctl
 scan on

all the RuuviTags are found

Hello,

Are you running your script with sudo? What does hcitool dev return?

Have you checked these issues? https://github.com/ttu/ruuvitag-sensor/issues/65
https://github.com/ttu/ruuvitag-sensor/issues/39

$ hcitool dev

returns

Devices:
hci0 B8:B7:F1:C0:4A:06

$ sudo python3 ./usr/local/lib/python3.6/dist-packages/ruuvitag_sensor -f

returns

Finding RuuviTags. Stop with Ctrl+C.
Start receiving broadcasts (device hci0)
FYI: Calling a process with sudo!
FYI: Spawning 2 processes with sudo!
End Of File (EOF). Exception style platform.
Stop receiving broadcasts

I tried to follow the guide provided here: https://github.com/ttu/ruuvitag-sensor/blob/master/install_guide_pi.md

and did have success. The script is now receiving the ruuvi data.
Thanks!

1 Like