##// END OF EJS Templates
cgs functions have been modificated...
Fiorella Quino -
r220:8c796a5126d7
parent child
Show More
@@ -78,7 +78,7 class CGSConfiguration(Configuration):
78
78
79 route = "http://" + str(ip) + ":" + str(port) + "/status/ad9548"
79 route = "http://" + str(ip) + ":" + str(port) + "/status/ad9548"
80 try:
80 try:
81 r = requests.get(route,timeout=0.5)
81 r = requests.get(route,timeout=0.7)
82 except Exception as e:
82 except Exception as e:
83 self.device.status = 0
83 self.device.status = 0
84 self.device.save()
84 self.device.save()
@@ -97,6 +97,7 class CGSConfiguration(Configuration):
97 # self.device.status = 1
97 # self.device.status = 1
98 #else:
98 #else:
99 self.device.status = 1
99 self.device.status = 1
100 return False
100 elif "okay" in icon:
101 elif "okay" in icon:
101 self.device.status = 3
102 self.device.status = 3
102 else:
103 else:
General Comments 0
You need to be logged in to leave comments. Login now