<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.kitz.co.uk/index.php?action=history&amp;feed=atom&amp;title=BetterTemps</id>
		<title>BetterTemps - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.kitz.co.uk/index.php?action=history&amp;feed=atom&amp;title=BetterTemps"/>
		<link rel="alternate" type="text/html" href="https://wiki.kitz.co.uk/index.php?title=BetterTemps&amp;action=history"/>
		<updated>2026-09-27T21:44:05Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.29.0</generator>

	<entry>
		<id>https://wiki.kitz.co.uk/index.php?title=BetterTemps&amp;diff=874&amp;oldid=prev</id>
		<title>Chrysalis: adjust text format</title>
		<link rel="alternate" type="text/html" href="https://wiki.kitz.co.uk/index.php?title=BetterTemps&amp;diff=874&amp;oldid=prev"/>
				<updated>2024-06-16T14:25:43Z</updated>
		
		<summary type="html">&lt;p&gt;adjust text format&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='en'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 14:25, 16 June 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;When the temperatures are polled to plot the temperature graph in 'status monitoring' on hardware that utilises hardware p-states (speed shift) the clock speeds are so sensitive that this can add a significant amount of temperature for a brief moment during the polling period, which will cause elevated temperatures to be recorded on the graph that don't accurately represent the average temperature of the unit.&amp;#160; This patch will make it fetch a cached value from a previous poll instead, the actual poll will need to be added to the cron.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;When the temperatures are polled to plot the temperature graph in 'status monitoring' on hardware that utilises hardware p-states (speed shift) the clock speeds are so sensitive that this can add a significant amount of temperature for a brief moment during the polling period, which will cause elevated temperatures to be recorded on the graph that don't accurately represent the average temperature of the unit.&amp;#160; This patch will make it fetch a cached value from a previous poll instead, the actual poll will need to be added to the cron.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;First check if you see the 'Cron' item on the 'Services' menu.&amp;#160; If it is missing then go to the 'System' menu and select 'Package Manager', from there select 'Available Packages' and then install the 'Cron' Package.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;First check if you see the 'Cron' item on the 'Services' menu.&amp;#160; If it is missing then go to the 'System' menu and select 'Package Manager', from there select 'Available Packages' and then install the 'Cron' Package.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Go to the 'Services' menu, select 'Cron', then click on the green '+Add' button.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Go to the 'Services' menu, select 'Cron', then click on the green '+Add' button.&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;br&amp;gt; &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;For the top 5 boxes which are Minute, Hour, Day of the month, Month of the Year, and Day of the week, populate the box with the asterisk symbol '*'.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;For the top 5 boxes which are Minute, Hour, Day of the month, Month of the Year, and Day of the week, populate the box with the asterisk symbol '*'.&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;br&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;For the user box enter 'root'&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;For the user box enter 'root'&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;.&amp;lt;br&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;For the command box add the following.&amp;#160; All pasted in as one line.&amp;#160; ''/sbin/sysctl -q hw.acpi.thermal dev.cpu dev.t5nex dev.armada_thermal dev.cordbuc dev.pchtherm | /usr/bin/grep temperature &amp;gt; /tmp/rrd.temps''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;For the command box add the following.&amp;#160; All pasted in as one line.&amp;#160; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;'''&lt;/ins&gt;''/sbin/sysctl -q hw.acpi.thermal dev.cpu dev.t5nex dev.armada_thermal dev.cordbuc dev.pchtherm | /usr/bin/grep temperature &amp;gt; /tmp/rrd.temps''&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;'''.&amp;lt;br&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Finally click the blue 'Save' Button&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Finally click the blue 'Save' Button&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Next add and apply the the patch as below.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Next add and apply the the patch as below.&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;br&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;----&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;----&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Paste the below code into the ''Patch Contents'' box.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Paste the below code into the ''Patch Contents'' box.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Chrysalis</name></author>	</entry>

	<entry>
		<id>https://wiki.kitz.co.uk/index.php?title=BetterTemps&amp;diff=873&amp;oldid=prev</id>
		<title>Chrysalis: better temps patch</title>
		<link rel="alternate" type="text/html" href="https://wiki.kitz.co.uk/index.php?title=BetterTemps&amp;diff=873&amp;oldid=prev"/>
				<updated>2024-06-16T14:21:50Z</updated>
		
		<summary type="html">&lt;p&gt;better temps patch&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;When the temperatures are polled to plot the temperature graph in 'status monitoring' on hardware that utilises hardware p-states (speed shift) the clock speeds are so sensitive that this can add a significant amount of temperature for a brief moment during the polling period, which will cause elevated temperatures to be recorded on the graph that don't accurately represent the average temperature of the unit.  This patch will make it fetch a cached value from a previous poll instead, the actual poll will need to be added to the cron.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
First check if you see the 'Cron' item on the 'Services' menu.  If it is missing then go to the 'System' menu and select 'Package Manager', from there select 'Available Packages' and then install the 'Cron' Package.&lt;br /&gt;
&lt;br /&gt;
Go to the 'Services' menu, select 'Cron', then click on the green '+Add' button.&lt;br /&gt;
For the top 5 boxes which are Minute, Hour, Day of the month, Month of the Year, and Day of the week, populate the box with the asterisk symbol '*'.&lt;br /&gt;
For the user box enter 'root'&lt;br /&gt;
For the command box add the following.  All pasted in as one line.  ''/sbin/sysctl -q hw.acpi.thermal dev.cpu dev.t5nex dev.armada_thermal dev.cordbuc dev.pchtherm | /usr/bin/grep temperature &amp;gt; /tmp/rrd.temps''&lt;br /&gt;
Finally click the blue 'Save' Button&lt;br /&gt;
&lt;br /&gt;
Next add and apply the the patch as below.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Paste the below code into the ''Patch Contents'' box.&lt;br /&gt;
&lt;br /&gt;
Add a description such as 'better cpu temp monitoring, requires sysctl temp cron' in the ''Description'' box.&lt;br /&gt;
&lt;br /&gt;
Set ''Path Strip Count'' to '0'.&lt;br /&gt;
&lt;br /&gt;
''Base Directory'' to '/etc/inc/'.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;--- rrd.inc  2024-06-13 10:40:51.931237000 +0100&lt;br /&gt;
+++ rrd.inc     2024-06-13 11:03:17.066678000 +0100&lt;br /&gt;
@@ -744,7 +744,7 @@&lt;br /&gt;
                $unknown = &amp;quot;&amp;quot;;&lt;br /&gt;
                $rrdupdateds = &amp;quot;&amp;quot;;&lt;br /&gt;
                $rrdsensors = &amp;quot;&amp;quot;;&lt;br /&gt;
-               $_gb = exec(&amp;quot;/sbin/sysctl -q hw.acpi.thermal dev.cpu dev.t5nex dev.armada_thermal dev.cordbuc dev.pchtherm | /usr/bin/grep temperature | /usr/bin/cut -d':' -f1&amp;quot;, $sensors_array);&lt;br /&gt;
+               $_gb = exec(&amp;quot;cat /tmp/rrd.temps | /usr/bin/cut -d':' -f1&amp;quot;, $sensors_array);&lt;br /&gt;
 &lt;br /&gt;
                if (!empty($sensors_array)) {&lt;br /&gt;
                        foreach ($sensors_array as $sensor) {&lt;br /&gt;
@@ -753,7 +753,7 @@&lt;br /&gt;
                                $rrdcreateds .= &amp;quot;DS:$sensor_name:GAUGE:$sensorsvalid:0:100 &amp;quot;;&lt;br /&gt;
                                $unknown .= &amp;quot;:U&amp;quot;;&lt;br /&gt;
                                $rrddsname = strtoupper($sensor_name);&lt;br /&gt;
-                               $rrdupdateds .= &amp;quot;$rrddsname=`$sysctl -qn $sensor | $sed 's/C//'`\n&amp;quot;;&lt;br /&gt;
+                               $rrdupdateds .= &amp;quot;$rrddsname=`/usr/bin/grep $sensor /tmp/rrd.temps | /usr/bin/cut -d' ' -f2 | $sed 's/C//'`\n&amp;quot;;&lt;br /&gt;
                                $rrdsensors .= &amp;quot;:\${$rrddsname}&amp;quot;;&lt;br /&gt;
                        }&lt;br /&gt;
                        if (!file_exists(&amp;quot;$rrddbpath$ifname$sensors&amp;quot;)) {&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Pfsense Patches]]&lt;/div&gt;</summary>
		<author><name>Chrysalis</name></author>	</entry>

	</feed>