… just received my first three brand new RuuviTags!
Great library (!) - everything’s working fine so far except that I am wondering how to check if a certain RuuviTag is present. I tried something like this:
from ruuvitag_sensor.ruuvitag import RuuviTag
sensor = RuuviTag('F3:61:D0:6E:2B:9C')
state = sensor.update()
if not state is None:
print('Temp = {0:0.1f}*C'.format(state["temperature"]))
If the RuuviTag is up and running everything is fine but if the device is switched off (or out of reach) the script does not terminate (seems that there is no timeout).
Sorry for this simple questions - I am pretty sure I have overseen something. I am using Python 3.6.0 on a Raspberry Pi Zero W.
Greetings from Aachen, Germany