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
- Host: GitHub
- URL: https://github.com/cycoresystems/motion-events
- Owner: CyCoreSystems
- License: apache-2.0
- Created: 2014-12-26T19:18:54.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2020-09-14T20:01:07.000Z (almost 6 years ago)
- Last Synced: 2026-01-27T14:48:34.127Z (5 months ago)
- Language: JavaScript
- Size: 56.6 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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