3
# Initalize the indicated serial port and continuously read the temperatures
4
# and graph them in a window. Show the discovered sensors and allow the user
5
# to select the color associated with it.
6
# Also allow them to control the refresh rate.
8
""" DigiTemp PyGTK Graph display """
10
import string, os, sys, time, gtk
15
# Initalize the 1-wire network, print out whatever it says
17
cmd = "digitemp -i -q -o\"T %R %N %.2C\" -O\"C %R %N %n %C\""
18
for outline in os.popen(cmd).readlines()
19
outline = outline[:-1];
22
# Ought to be able to check return code for success/failure
25
# Read all attached sensors
27
cmd = "digitemp -a -q -o1"
28
for outline in os.popen(cmd).readlines():
29
outline = outline[:-1]
30
S = string.split( outline, " " )
33
# Add the temperature reading to a dictionary
37
# Add the counter reading to a dictionary
b'\\ No newline at end of file'