Merge branch 'droptimelapseframes' into 'dev'
Droptimelapseframes See merge request Shinobi-Systems/Shinobi!456cycling-live-grid
commit
a9ad989873
|
|
@ -49,7 +49,7 @@ module.exports = function(s,config,lang,app,io){
|
||||||
size: fileStats.size,
|
size: fileStats.size,
|
||||||
time: timeNow
|
time: timeNow
|
||||||
}
|
}
|
||||||
if(config.childNodes.enabled === true && config.childNodes.mode === 'child' && config.childNodes.host){
|
if(config.childNodes.enabled === true && config.childNodes.mode === 'child' && config.childNodes.host && config.dropTimeLapseFrames != true){
|
||||||
var currentDate = s.formattedTime(timeNow,'YYYY-MM-DD')
|
var currentDate = s.formattedTime(timeNow,'YYYY-MM-DD')
|
||||||
const childNodeData = {
|
const childNodeData = {
|
||||||
ke: e.ke,
|
ke: e.ke,
|
||||||
|
|
@ -60,7 +60,7 @@ module.exports = function(s,config,lang,app,io){
|
||||||
queryInfo: queryInfo
|
queryInfo: queryInfo
|
||||||
}
|
}
|
||||||
sendTimelapseFrameToMasterNode(filePath,childNodeData)
|
sendTimelapseFrameToMasterNode(filePath,childNodeData)
|
||||||
}else{
|
}else if (config.dropTimeLapseFrames != true ){
|
||||||
s.insertTimelapseFrameDatabaseRow(e,queryInfo,filePath)
|
s.insertTimelapseFrameDatabaseRow(e,queryInfo,filePath)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue