You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
438 B
23 lines
438 B
const moment = require('moment')
|
|
|
|
module.exports = function (app, opts) {
|
|
const cameraOnlinePush = app.fs.scheduleInit(
|
|
{
|
|
// interval: '* * 4 * * *',
|
|
interval: '*/15 * * * *',
|
|
immediate: false,
|
|
},
|
|
async () => {
|
|
try {
|
|
|
|
console.log('cameraOnlinePush')
|
|
} catch (error) {
|
|
|
|
}
|
|
}
|
|
)
|
|
|
|
return {
|
|
cameraOnlinePush,
|
|
}
|
|
}
|