kopiro / homebridge-tapo-camera

Homebridge plugin for TP-Link TAPO security cameras
ISC License
127 stars 11 forks source link

Logs enable/disable #89

Closed ppapajohn closed 10 months ago

ppapajohn commented 11 months ago

Hello, Would it be possible to add a switch for enabling/disabling logging? Currently, both cameras generate two log entries per second as per the following:

[11/4/2023, 10:54:07 AM] [homebridge-tapo-camera] [IPC01] Motion detected false [11/4/2023, 10:54:11 AM] [homebridge-tapo-camera] [IPC01] Motion detected true [11/4/2023, 10:54:12 AM] [homebridge-tapo-camera] [IPC01] Motion detected false [11/4/2023, 10:54:16 AM] [homebridge-tapo-camera] [IPC01] Motion detected true [11/4/2023, 10:54:17 AM] [homebridge-tapo-camera] [IPC01] Motion detected false [11/4/2023, 10:54:38 AM] [homebridge-tapo-camera] [IPC01] Motion detected true [11/4/2023, 10:54:40 AM] [homebridge-tapo-camera] [IPC01] Motion detected false [11/4/2023, 10:55:06 AM] [homebridge-tapo-camera] [IPC02] Motion detected true [11/4/2023, 10:55:07 AM] [homebridge-tapo-camera] [IPC01] Motion detected true [11/4/2023, 10:55:07 AM] [homebridge-tapo-camera] [IPC02] Motion detected false

I believe that the velocity and volume of data is impacting the SD Card's life (in my case at least where Homebridge is installed on an RPi 4.

In advance, thank you very much for your time and support.

Best Regards, Panos

kopiro commented 10 months ago

Very good report, I'll reduce the verbosity of these