Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log camera device events #5

Open
joseph-reynolds opened this issue Sep 4, 2017 · 0 comments
Open

Log camera device events #5

joseph-reynolds opened this issue Sep 4, 2017 · 0 comments

Comments

@joseph-reynolds
Copy link
Owner

This issue to to create a usable set of logs for each camera device.

Each camera device should keep its own log accessible from journalctl ("sudo journalctl _SYSTEMD_UNIT=snapaway-cam.service"). This is already partly working. We need to log more events, and have a way to format the events for viewing. Events are:

  • camera on (started monitoring for motion)
  • camera taking picture (perhaps also "why", for example, if we ever have an external motion sensor)
  • camera off (turned off manually; we may not get this if we unexpectedly lose power)
  • perhaps an "i am alive" log every hour
  • updated settings (e.g., motion sensitivity, rotation)
  • local web app server online/offline (probably don't need to log when pictures are accessed)

Log rotation is handled by the operating system.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant