flow_control: more documentation

This commit is contained in:
Markus Rosenstihl 2016-02-18 17:20:56 +00:00
parent 50b6bf6622
commit 488624bfce

View File

@ -187,6 +187,9 @@ class Flow:
if __name__ == "__main__":
"""
This is the command line program to control the red-y flow control series.
"""
conf = os.path.expanduser('~/.flow')
if os.path.exists(conf):
dev = open(conf).readlines()[0].strip()
@ -201,6 +204,7 @@ if __name__ == "__main__":
print "Current Temperature: %6.2f C" % (redy.get_var("temperature"))
print "Alarm: %8i" % (redy.get_var("alarm"))
print "HW Error: %8i" % (redy.get_var("hwerror"))
if len(sys.argv) > 1:
try:
float(sys.argv[1])