Is sensord supposed to work on the Pi?

Do you have a question? Post it now! No Registration Necessary

Translate This Thread From English to

Threaded View
Is sensord supposed to work on a Pi?  (If it matters, I've just
started playing with a 2 B.)  I installed the package, ran
sensors-detect, patched one line of it [1], & ended up with "Sorry, no
sensors were detected."

Is the sensord package supposed to work on the Pi, or is it just in
the repository because it comes from upstream & compiles?



[1] this, but on a slightly different line number:
<https://bugzilla.redhat.com/attachment.cgi?id57%3101&action=diff



--  
Master Foo said: "A man who mistakes secrets for knowledge is like
a man who, seeking light, hugs a candle so closely that he smothers
We've slightly trimmed the long signature. Click to see the full one.
Re: Is sensord supposed to work on the Pi?
On 10/06/15 21:07, Adam Funk wrote:
Quoted text here. Click to load it

No it doesn't work; the Pi doesn't have any of the sensor chips used on  
PC motherboards which sensors-detect is looking for.

Below is something very similar using RRD. Put the following in a script  
file and get cron to run it every 5 minutes. You can then use the  
graphing tools with RRD in the same way as sensord does.
-----
#!/bin/sh

rrd="/run/temp.rrd"
if [ ! -e "$rrd" ]
then
  echo 'recreating rrd file!'
   rrdtool create $rrd DS:temp:GAUGE:600:0:120000 RRA:AVERAGE:0.5:1:288  
RRA:AVERAGE:0.5:7:288
fi

t1=`cat /sys/devices/virtual/thermal/thermal_zone0/temp`
upper84%000
lower=0
if [ "$t1" -lt "$upper" -a "$t1" -gt "$lower" ]
then
  t2=`cat /sys/devices/virtual/thermal/thermal_zone0/temp`
  if [ "$t2" -lt "$upper" -a "$t2" -gt "$lower" ]
  then
   tmp=$(($t1+$t2))
   tmp=$(($tmp/2))
   rrdtool update $rrd N:$tmp
#  echo "t1 = $t1, t2 = $t2, temp = $tmp"
  fi
fi
-----

Dave

Re: Is sensord supposed to work on the Pi?
On 2015-06-11, dave wrote:

Quoted text here. Click to load it

OK, I guess it's just in the repository as a "left-over" from Debian.

Quoted text here. Click to load it

Actually, it looks like all I need for now is this line:

Quoted text here. Click to load it

which I'll combine with a syslog command, since I'm just used to
finding that sort of thing in the syslog.  But the database/graphing
stuff looks interesting in the long run.

I guess the number that comes out is degrees C * 1000?


Thanks!


--  
Our scientific power has outrun our spiritual power. We have guided
missiles and misguided men.             --- Martin Luther King, Jr.

Re: Is sensord supposed to work on the Pi?
On 11/06/15 15:41, Adam Funk wrote:
Quoted text here. Click to load it

An alternative command in Raspbian is vcgencmd measure_temp, like this:

pi@raspi2 ~ $ vcgencmd measure_temp
temp42%.2'C





Re: Is sensord supposed to work on the Pi?
On 2015-06-11, Dom wrote:

Quoted text here. Click to load it

I see that command is well documented in the system:  ;-)

$ man vcgencmd
No manual entry for vcgencmd
See 'man 7 undocumented' for help when manual pages are not available.
$ vcgencmd --help
error=1 error_msg="Command not registered"
$ vcgencmd help
error=1 error_msg="Command not registered"

Curiously, I get varying results from that while the
thermal_zone0/temp file doesn't change:

$ cat /sys/devices/virtual/thermal/thermal_zone0/temp ; vcgencmd measure_temp
39007
temp39%.0'C
$ cat /sys/devices/virtual/thermal/thermal_zone0/temp ; vcgencmd measure_temp
39007
temp39%.5'C
$ cat /sys/devices/virtual/thermal/thermal_zone0/temp ; vcgencmd measure_temp
39007
temp39%.0'C
$ cat /sys/devices/virtual/thermal/thermal_zone0/temp ; vcgencmd measure_temp
39007
temp39%.0'C
$ cat /sys/devices/virtual/thermal/thermal_zone0/temp ; vcgencmd measure_temp
39007
temp38%.5'C
$ cat /sys/devices/virtual/thermal/thermal_zone0/temp ; vcgencmd measure_temp
39007
temp39%.0'C
$ cat /sys/devices/virtual/thermal/thermal_zone0/temp ; vcgencmd measure_temp
39007
temp40%.1'C

Why is that?



--  
'...and Tom [Snyder] turns to him and says, "so Alice [Cooper], is it
true you kill chickens on stage?"  That was the opening question, and
We've slightly trimmed the long signature. Click to see the full one.
Re: Is sensord supposed to work on the Pi?
On 12/06/15 09:34, Adam Funk wrote:
Quoted text here. Click to load it

I suspect it's just 'noise' on the sensor output. That's why my script  
takes two measurements and averages them. Occasionally I've seen  
completely wild figures, so the script rejects any nonsensical values.
--  
Dave


Re: Is sensord supposed to work on the Pi?
On 2015-06-12, dave wrote:

Quoted text here. Click to load it

Interesting, thanks.


--  
Cats don't have friends.  They have co-conspirators.
         http://www.gocomics.com/getfuzzy/2015/05/31

Re: Is sensord supposed to work on the Pi?
On Fri, 12 Jun 2015, dave wrote:
Quoted text here. Click to load it
At the three mile island nuclear power plant the operators ingnored  
``nonsensical'' temperature values...

   Ron

Re: Is sensord supposed to work on the Pi?
On 12/06/15 18:05, colonel snipped-for-privacy@yahoo.com wrote:
Quoted text here. Click to load it
More people died at Chappaquiddick..

--  
New Socialism consists essentially in being seen to have your heart in  
the right place whilst your head is in the clouds and your hand is in  
We've slightly trimmed the long signature. Click to see the full one.
Re: Is sensord supposed to work on the Pi?
On 6/12/2015 1:17 PM, The Natural Philosopher wrote:
Quoted text here. Click to load it

But no one got cancer.

--  

Rick

Re: Is sensord supposed to work on the Pi?
the following:

Quoted text here. Click to load it

    But Chernobyl ensured the silence of the "Russian Woodpecker" (The
Kenwood R-5000 actually had a second noise blanker function designed just
for the woodpecker...)

--  
    Wulfraed                 Dennis Lee Bieber         AF6VN
     snipped-for-privacy@ix.netcom.com    HTTP://wlfraed.home.netcom.com/

Re: Is sensord supposed to work on the Pi?
On 12/06/15 21:00, rickman wrote:
Quoted text here. Click to load it
No pone got cancer at 3MI either.


--  
New Socialism consists essentially in being seen to have your heart in  
the right place whilst your head is in the clouds and your hand is in  
We've slightly trimmed the long signature. Click to see the full one.
[OT nuclear] Re: Is sensord supposed to work on the Pi?
My comment was meant to be somewhat hyperbolic about ignoring
``nonsensical'' temperatures. I should have realized that some people get
political at the mention of nuclear and I apologize for thoughtlessly
polluting the group.

Please. Any further discussion to e-mail or an appropriate group.

   Ron

Re: Is sensord supposed to work on the Pi?
On 2015-06-12, colonel snipped-for-privacy@yahoo.com wrote:

Quoted text here. Click to load it

YMMV, but nuclear power is way outside the scope of anything I'm
planning to use the Pi for.


--  
The love of money as a possession ... will be recognised for what it
is, a somewhat disgusting morbidity, one of those semi-criminal,
We've slightly trimmed the long signature. Click to see the full one.

Site Timeline