cyberman54 / ESP32-Paxcounter

Wifi & BLE driven passenger flow metering with cheap ESP32 boards
https://cyberman54.github.io/ESP32-Paxcounter/
Other
1.73k stars 405 forks source link

Remove known devices from the statistics #825

Closed hbjorgo closed 3 years ago

hbjorgo commented 3 years ago

It would be nice to be able to trigger a function that will scan for a predefined amount of time and exclude those devices from the statistics. I'm counting devices passing by the sensor, but static devices nearby add to these statistics.

There could be two functions - one for clearing the list of "known" devices, and another to scan and add new devices.

That way one can trigger this scan and add function at an interval and add new, static devices. This could be a scheduled job in the program itself at a specific time of day (with little or no traffic), or sent over the air. Clearing the list can also be done at a (slower) interval to reset this list.

cyberman54 commented 3 years ago

I won't implement such a function, since i don't see how we could get it in compliance with privacy rules, i.e. GDPR.

If you see certain amount of static devices, it should be easy to subtract this on server / application side as a baseline from current counts.

hbjorgo commented 3 years ago

I understand. One issue with subtracting the baseline on the application side is that not all static devices are present at all times. That will cause the application to subtract more devices than it should at some points.