rpi-vidlooper icon indicating copy to clipboard operation
rpi-vidlooper copied to clipboard

Log when videos are watched

Open cveerkamp opened this issue 2 years ago • 1 comments

Write to a log file when videos are watched. i.e. /var/log/vidlooper

Helpful in my use case where the player is being installed in a remote location, and I would like some minimal kind of analytics.

I have a quick and dirty method added to the code currently on my player, however I am considering contributing more polished code to GitHub.

Example log entry:
2022-07-08T13:55:25.747095 Playing Video /home/pi/vid/1.mp4

Considerations:

  • Command line parameter for specifying custom log file
  • logrotate functionality for handling log file rotation

Creating this issue primarily for tracking purposes.

(PSA: My player IS on network at the remote location, but it is a limited access subnet, and I use a VPN and jumpbox to access it. Never expose devices like this directly to the public internet!)

cveerkamp avatar Jul 08 '22 18:07 cveerkamp