initialstate / pi-sensor-free-presence-detector

Know Who's at the Office with the Raspberry Pi
MIT License
368 stars 56 forks source link

Big delay #2

Closed yirden closed 7 years ago

yirden commented 7 years ago

Good day. I have done everything according your instructions. As I understand arp-scan works each 30 seconds and terminal sees that device is either online or offline but in my dashboard at initialstate.com those events occur with a big delay (arround hour or sometimes even two). Is there any way to speed this up?

RChloe commented 7 years ago

Do you still have streamer.flush() inside of your script? Sometimes the streamer will buffer events before sending them, so if there aren't many events being sent, you could see a delay. The flush ensures that any logged events are sent immediately.