Files
x07ma/script/PGM_Check.py
2017-02-08 14:03:07 +01:00

11 lines
283 B
Python

if get_context().getRunningScriptName()=="EnergyScan":
try:
c = Channel("MSG")
c.close()
except:
show_message("PGM Server unavailable", title = "Error", blocking = True)
get_context().abort()
time.sleep(30.0)