|
|
|
@ -70,11 +70,11 @@ def ControlPanelRenderDict(inGSettings):
|
|
|
|
|
}"""
|
|
|
|
|
# START :: Create activities :: START #
|
|
|
|
|
## 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)
|
|
|
|
|
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)
|
|
|
|
|
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 #
|
|
|
|
|
# START :: Init result dict template :: START #
|
|
|
|
|
# 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
|
|
|
|
|
"WeekdayList": gActivityROBOTStartWeekdayList, #List of the weekday index when activity is applicable, Default [1,2,3,4,5,6,7]
|
|
|
|
|
"Activity":{
|
|
|
|
|
"Type": "GlobalDictKeyListValueSet", #Activity type
|
|
|
|
|
"Type": "GlobalDictKeyListValueOperator+", #Activity type
|
|
|
|
|
"KeyList": ['RobotRDPActive','ActivityList'], # RobotRDP Active ActivityList
|
|
|
|
|
"Value": gActivityROBOTStartList # ActivityList - see upper
|
|
|
|
|
}
|
|
|
|
@ -143,7 +143,7 @@ lActivityTimeItemRobotStop = {
|
|
|
|
|
"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]
|
|
|
|
|
"Activity":{
|
|
|
|
|
"Type": "GlobalDictKeyListValueSet", #Activity type
|
|
|
|
|
"Type": "GlobalDictKeyListValueOperator+", #Activity type
|
|
|
|
|
"KeyList": ['RobotRDPActive','ActivityList'], # RobotRDP Active ActivityList
|
|
|
|
|
"Value": gActivityROBOTStopList # ActivityList - see upper
|
|
|
|
|
}
|
|
|
|
|