flow_control: more documentation
This commit is contained in:
parent
50b6bf6622
commit
488624bfce
@ -187,6 +187,9 @@ class Flow:
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
"""
|
||||||
|
This is the command line program to control the red-y flow control series.
|
||||||
|
"""
|
||||||
conf = os.path.expanduser('~/.flow')
|
conf = os.path.expanduser('~/.flow')
|
||||||
if os.path.exists(conf):
|
if os.path.exists(conf):
|
||||||
dev = open(conf).readlines()[0].strip()
|
dev = open(conf).readlines()[0].strip()
|
||||||
@ -201,6 +204,7 @@ if __name__ == "__main__":
|
|||||||
print "Current Temperature: %6.2f C" % (redy.get_var("temperature"))
|
print "Current Temperature: %6.2f C" % (redy.get_var("temperature"))
|
||||||
print "Alarm: %8i" % (redy.get_var("alarm"))
|
print "Alarm: %8i" % (redy.get_var("alarm"))
|
||||||
print "HW Error: %8i" % (redy.get_var("hwerror"))
|
print "HW Error: %8i" % (redy.get_var("hwerror"))
|
||||||
|
|
||||||
if len(sys.argv) > 1:
|
if len(sys.argv) > 1:
|
||||||
try:
|
try:
|
||||||
float(sys.argv[1])
|
float(sys.argv[1])
|
||||||
|
Loading…
Reference in New Issue
Block a user