|
|
@ -70,11 +70,11 @@ def ControlPanelRenderDict(inGSettings):
|
|
|
|
}"""
|
|
|
|
}"""
|
|
|
|
# START :: Create activities :: START #
|
|
|
|
# START :: Create activities :: START #
|
|
|
|
## Robot START (create RDP session, send CMD to start process)
|
|
|
|
## Robot START (create RDP session, send CMD to start process)
|
|
|
|
lActivityROBOTStartEscaped = f"mGlobal.Processor.ServerValueSet({json.dumps(['RobotRDPActive','ActivityList'])},{json.dumps(gActivityROBOTStartList)});".replace("\"","\'")
|
|
|
|
lActivityROBOTStartEscaped = f"mGlobal.Processor.ServerValueOperatorPlus({json.dumps(['RobotRDPActive','ActivityList'])},{json.dumps(gActivityROBOTStartList)});".replace("\"","\'")
|
|
|
|
## Robot SAFE STOP (SAFE STOP COMMAND (FROM ROBOT RULES), Logoff must do robot when safe turn off)
|
|
|
|
## Robot SAFE STOP (SAFE STOP COMMAND (FROM ROBOT RULES), Logoff must do robot when safe turn off)
|
|
|
|
lActivityROBOTSafeStopEscaped = f"mGlobal.Processor.ServerValueSet({json.dumps(gOrchestratorToRobotResetSafeStopKeyList)},true);".replace("\"","\'")
|
|
|
|
lActivityROBOTSafeStopEscaped = f"mGlobal.Processor.ServerValueOperatorPlus({json.dumps(gOrchestratorToRobotResetSafeStopKeyList)},true);".replace("\"","\'")
|
|
|
|
## Robot FORCE STOP (send CMD to stop process, logoff)
|
|
|
|
## Robot FORCE STOP (send CMD to stop process, logoff)
|
|
|
|
lActivityROBOTStopEscaped = f"mGlobal.Processor.ServerValueSet({json.dumps(['RobotRDPActive','ActivityList'])},{json.dumps(gActivityROBOTStopList)});".replace("\"","\'")
|
|
|
|
lActivityROBOTStopEscaped = f"mGlobal.Processor.ServerValueOperatorPlus({json.dumps(['RobotRDPActive','ActivityList'])},{json.dumps(gActivityROBOTStopList)});".replace("\"","\'")
|
|
|
|
# END :: Create activities :: END #
|
|
|
|
# END :: Create activities :: END #
|
|
|
|
# START :: Init result dict template :: START #
|
|
|
|
# START :: Init result dict template :: START #
|
|
|
|
# lBodyKeyValue_r3_start=f'<a onclick="{lActivityROBOTStartEscaped}" style=\"color:green\">Start</a>'
|
|
|
|
# lBodyKeyValue_r3_start=f'<a onclick="{lActivityROBOTStartEscaped}" style=\"color:green\">Start</a>'
|
|
|
@ -133,7 +133,7 @@ lActivityTimeItemRobotStart = {
|
|
|
|
"TimeHH:MM": gActivityROBOTStartTimeHH_MMStr, #Time [HH:MM] to trigger activity
|
|
|
|
"TimeHH:MM": gActivityROBOTStartTimeHH_MMStr, #Time [HH:MM] to trigger activity
|
|
|
|
"WeekdayList": gActivityROBOTStartWeekdayList, #List of the weekday index when activity is applicable, Default [1,2,3,4,5,6,7]
|
|
|
|
"WeekdayList": gActivityROBOTStartWeekdayList, #List of the weekday index when activity is applicable, Default [1,2,3,4,5,6,7]
|
|
|
|
"Activity":{
|
|
|
|
"Activity":{
|
|
|
|
"Type": "GlobalDictKeyListValueSet", #Activity type
|
|
|
|
"Type": "GlobalDictKeyListValueOperator+", #Activity type
|
|
|
|
"KeyList": ['RobotRDPActive','ActivityList'], # RobotRDP Active ActivityList
|
|
|
|
"KeyList": ['RobotRDPActive','ActivityList'], # RobotRDP Active ActivityList
|
|
|
|
"Value": gActivityROBOTStartList # ActivityList - see upper
|
|
|
|
"Value": gActivityROBOTStartList # ActivityList - see upper
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -143,7 +143,7 @@ lActivityTimeItemRobotStop = {
|
|
|
|
"TimeHH:MM": gActivityROBOTStopTimeHH_MMStr, #Time [HH:MM] to trigger activity
|
|
|
|
"TimeHH:MM": gActivityROBOTStopTimeHH_MMStr, #Time [HH:MM] to trigger activity
|
|
|
|
"WeekdayList": gActivityROBOTStopWeekdayList, #List of the weekday index when activity is applicable, Default [1,2,3,4,5,6,7]
|
|
|
|
"WeekdayList": gActivityROBOTStopWeekdayList, #List of the weekday index when activity is applicable, Default [1,2,3,4,5,6,7]
|
|
|
|
"Activity":{
|
|
|
|
"Activity":{
|
|
|
|
"Type": "GlobalDictKeyListValueSet", #Activity type
|
|
|
|
"Type": "GlobalDictKeyListValueOperator+", #Activity type
|
|
|
|
"KeyList": ['RobotRDPActive','ActivityList'], # RobotRDP Active ActivityList
|
|
|
|
"KeyList": ['RobotRDPActive','ActivityList'], # RobotRDP Active ActivityList
|
|
|
|
"Value": gActivityROBOTStopList # ActivityList - see upper
|
|
|
|
"Value": gActivityROBOTStopList # ActivityList - see upper
|
|
|
|
}
|
|
|
|
}
|
|
|
|