[Git][NTPsec/ntpsec][master] NEWS: get ready for 0.9.7. Mention ntplogtemp.

Gary E. Miller gitlab at mg.gitlab.com
Tue Mar 21 16:45:17 UTC 2017


Gary E. Miller pushed to branch master at NTPsec / ntpsec


Commits:
9805fbcb by Gary E. Miller at 2017-03-21T09:44:45-07:00
NEWS: get ready for 0.9.7.  Mention ntplogtemp.

- - - - -


2 changed files:

- NEWS
- contrib/ntpheatusb


Changes:

=====================================
NEWS
=====================================
--- a/NEWS
+++ b/NEWS
@@ -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.
 


=====================================
contrib/ntpheatusb
=====================================
--- a/contrib/ntpheatusb
+++ b/contrib/ntpheatusb
@@ -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:



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/9805fbcb0047432c4a0c83054d1bc0bead8c5afa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20170321/7de405b4/attachment.html>


More information about the vc mailing list