I try to start working with my ruuvitag.
I tried it with Raspberry Pi 3, somewhat following the instructions from ruuvitag-sensor/install_guide_pi.md at master · ttu/ruuvitag-sensor · GitHub but when running this script:
from ruuvitag_sensor.ruuvitag import RuuviTag
sensor = RuuviTag(‘AA:2C:6A:1E:59:3D’)
state = sensor.update()
state = sensor.state
print(state)
the result is:
{}
Any idea what I should do to diagnose the problem? I did read this: Ruuvitag_sensor doesn't find devices on raspberry pi 3 but it didn’t help me.
I actually tried it with a Windows computer also, and then the result was this:
{‘temperature’: 24.0, ‘humidity’: 30.0, ‘pressure’: 995.0, ‘identifier’: None}
However, these values are incorrect and don’t update. I am not seriously planning to use it with Windows, but I am just curious. Does anybody know why the result is what it is?