autoBuildTimelapseVideosDaily run once on start if enabled
parent
ec2e5eae9d
commit
26af745348
|
@ -330,10 +330,7 @@ module.exports = function(s,config,lang,app,io){
|
|||
})
|
||||
},res,req);
|
||||
});
|
||||
|
||||
// Auto Build Timelapse Videos
|
||||
if(config.autoBuildTimelapseVideosDaily === true){
|
||||
setInterval(function(){
|
||||
var buildTimelapseVideos = function(){
|
||||
var dateNow = new Date()
|
||||
var hoursNow = dateNow.getHours()
|
||||
if(hoursNow === 1){
|
||||
|
@ -360,6 +357,10 @@ module.exports = function(s,config,lang,app,io){
|
|||
})
|
||||
})
|
||||
}
|
||||
},1000 * 60 * 60 * 0.75)//every 45 minutes
|
||||
}
|
||||
// Auto Build Timelapse Videos
|
||||
if(config.autoBuildTimelapseVideosDaily === true){
|
||||
setInterval(buildTimelapseVideos,1000 * 60 * 60 * 0.75)//every 45 minutes
|
||||
buildTimelapseVideos()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue