Ajout redirection des logs sur websocket et page /logs/view
This commit is contained in:
@@ -31,20 +31,23 @@ const getRequestToDo = async function (msn) {
|
||||
|
||||
///// Programs
|
||||
if (device.programs != undefined) {
|
||||
if (child.programmingTimestamp < device.programs.timestamp) { todo.programs = 1 }
|
||||
else if (child.programmingTimestamp > device.programs.timestamp) { todo.programs = 2 }
|
||||
timestamp = child.programmingTimestamp || -1
|
||||
if (timestamp < device.programs.timestamp) { todo.programs = 1 }
|
||||
else if (timestamp > device.programs.timestamp) { todo.programs = 2 }
|
||||
}
|
||||
|
||||
///// Configuration
|
||||
if (device.configuration != undefined) {
|
||||
if (child.configurationTimestamp < device.configuration.timestamp) { todo.configuration = 1 }
|
||||
else if (child.configurationTimestamp > device.configuration.timestamp) { todo.configuration = 2 }
|
||||
timestamp = child.configurationTimestamp || child.relayConfigurationTimestamp || -1
|
||||
if (timestamp < device.configuration.timestamp) { todo.configuration = 1 }
|
||||
else if (timestamp > device.configuration.timestamp) { todo.configuration = 2 }
|
||||
}
|
||||
|
||||
///// Slots
|
||||
if (device.slots != undefined) {
|
||||
if (child.programmingTimestamp < device.slots.timestamp) { todo.slots = 1 }
|
||||
else if (child.programmingTimestamp > device.slots.timestamp) { todo.slots = 2 }
|
||||
timestamp = child.programmingTimestamp || -1
|
||||
if (timestamp < device.slots.timestamp) { todo.slots = 1 }
|
||||
else if (timestamp > device.slots.timestamp) { todo.slots = 2 }
|
||||
}
|
||||
|
||||
///// Status
|
||||
|
||||
Reference in New Issue
Block a user