Commit 9805fbcb authored by Gary E. Miller's avatar Gary E. Miller

NEWS: get ready for 0.9.7. Mention ntplogtemp.

parent cfc6c377
......@@ -9,6 +9,13 @@ on user-visible changes.
== Repository Head ==
== 2017-03-21: 0.9.7 ==
Four contrib programs: cpu-temp-log; smartctl-temp-log, temper-temp-log,
and zone-temp-log; have been combined into the new ntplogtemp. The new
program allows for easy logging os system temperaturesand is installed
by default.
The SHM refclock no longer limits the value of SHM time by default.
This allows SHM to work on systems with no RTC by default.
......
......@@ -115,6 +115,10 @@ parser.add_argument('-p', '--pid',
action="store_true",
dest='pid',
help="Use PID controller instead of simple P controller.")
parser.add_argument('-s', '--step',
action="store_true",
dest='step',
help="Step up 1C every hour for 10 hours, then back down.")
parser.add_argument('-t', '--temp',
default=[45.0],
dest='target_temp',
......@@ -140,6 +144,7 @@ zone0 = '/sys/class/thermal/thermal_zone0/temp'
cnt = 0
temp_gate = args.target_temp[0]
start_temp_gate = temp_gate
period = float(args.wait[0])
# you will need to personalize these to your relay ID:
......@@ -158,8 +163,27 @@ usbrelay_off = ['usbrelay', '959BI_1=0']
#
pid = PID(setpoint=temp_gate, P=35.0, I=10.0, D=5.0)
start_time = gmtime()
step_time = start_time
step = 0
try:
while True:
if args.step:
now = gmtime()
if 3600 < (now - step_time):
# time to step
step_time = now
step += 1
if 0 <= step:
# step up
temp_gate += 1.0
else:
# step down
temp_gate -= 1.0
if 9 < step:
step = 10-
# grab the needed output
output = run_binary(["temper-poll", "-c"])
try:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment