Go to advanced search

by masonc
Sun Oct 27, 2019 1:47 pm
Forum: Beginners
Topic: Remote control and monitoring of a diesel generator
Replies: 10
Views: 1907

Re: Remote control and monitoring of a diesel generator

I would also like to get some ideas on monitoring a generator, but in this case I do not want to monitor the sensors. The generators have control panels with all that work done for you. I will program the control panel to output an alarm when there is a problem, and switch an output high when the ge...
by masonc
Thu Dec 11, 2014 2:03 pm
Forum: Python
Topic: Python question: urllib2.urlopen xml parsing crashes
Replies: 0
Views: 1570

Python question: urllib2.urlopen xml parsing crashes

I am capturing an XML dataset over http, parsing the XML and returning a value. I am doing it in an infinite loop so as to control a relay. fp = urllib2.urlopen(URL1, timeout = 60 ) doc = etree.parse(fp) fp.close() After some time of working properly, it crashes, possibly due to an internet outage. ...

Go to advanced search