An open API service indexing awesome lists of open source software.

https://github.com/cycoresystems/motion-events

Event handler for GNU Motion
https://github.com/cycoresystems/motion-events

Last synced: 19 days ago
JSON representation

Event handler for GNU Motion

Awesome Lists containing this project

README

          

cam event handler
===

Receives events from GNU `motion` and loads them into Redis.

The Redis schema contains three key patterns:

* `events:enum::`
* Temporary map of camera:motionEventId to event UUID
* This handler will simply override any preexisting key
* A TTL of 1 hour is set for auto-cleanup
* `events:time:`
* Sorted set
* Score is equal to the unix timestamp of the event
* Value is the event UUID
* `events:data:`
* Hash
* Stores all the relevant data of the event
* `Timestamp`: Unix Timestamp of the event
* `Camera`: Camera id (thread number of `motion` config)
* `ImageFile`: Full path of the most significant image
* `VideoFile`: Full path of the video recording