Files
dougal-software/lib/www/server/events/handlers/index.js
D. Berge 992205da4a Add event handler for midnight shot detection.
This event handler checks if there is an UTC date jump between
consecutive shots. If a jump is detected, it sends to new entries
to the event log, for the last shot and first shot of the previous
and current dates, respectively.

Fixes #223.
2022-05-15 14:06:18 +02:00

14 lines
186 B
JavaScript

const Handlers = [
require('./detect-soleol'),
require('./detect-fdsp')
];
function init () {
return Handlers.map(Handler => new Handler());
}
module.exports = {
Handlers,
init
}