leiweibau / Pi.Alert

Scan the devices connected to your WIFI / LAN and alert you the connection of unknown devices. It also warns if a "always connected" device disconnects. In addition, it is possible to check web services for availability. For this purpose HTTP status codes and the response time of the service are evaluated.
https://leiweibau.net
GNU General Public License v3.0
334 stars 25 forks source link

Presence is missing until device "down" #323

Closed 4Arthur2 closed 2 weeks ago

4Arthur2 commented 2 weeks ago

Hello, for some time now, I can no longer see the presence of about 80% of the online devices. If I disconnect a device from the network and leave it disconnected until the next scan is running, the device is displayed with DOWN. Now I can see the presence bar.

You've an Idea ? Best regards Daniel

leiweibau commented 2 weeks ago

This is most likely due to the DAYS_TO_KEEP_EVENTS parameter in pialert.conf. It is set to 90 by default, but can also be set higher (currently 250 in my case). Especially with devices that are permanently on, it can happen that the "session start" is older than 90 days and is then deleted.

4Arthur2 commented 2 weeks ago

Thanks for the answer, Ok, but the Mobile Wifi devices (Smartphone, Notebooks Tablets ..... ) will disappear after 90/250 days and never again visible in "Presence" because the "session start" is no more in the Database. Is it possible to set this after 90/250. I like PI Alert very much and I will keep it longer than 250 Days :-)

Cu Daniel

leiweibau commented 2 weeks ago

You can enter any value. If the database becomes too large or Pi.Alert becomes too slow, you must adjust the value again

leiweibau commented 2 weeks ago

The next update will address this behavior.