Re: USB temperature sensors

2013-06-20 Thread Stuart Henderson
On 2013-06-19, rafaello konfekte peleekaiskardina...@gmail.com wrote:
 Hello,

 Thanks Barry, this was exactly what I was looking for. Been using it now
 for a couple of days with TEMPer sensor on both 5.3 stable and current by
 using this patch written by SASANO Takayoshi:
   http://www2192ue.sakura.ne.jp/~uaa/gomitext/2013/20130331/20130331.diff

 Any ideas when this could go into source tree?



 http://marc.info/?l=openbsd-techm=136472023131435w=2
 http://marc.info/?l=openbsd-techm=136762807930749w=2



There is a newer version here,
http://www.uaa.org.uk/gomitext/2013/20130513/20130513.diff

mpi found a few more issues to fix, I have an additional diff to
go over the top of the above which fixes some but not all of these:
http://junkpile.org/ugold-20130513-patches.diff

Though even with the issues it is still more reliable than uthum.



Re: USB temperature sensors

2013-06-19 Thread rafaello konfekte
Hello,

Thanks Barry, this was exactly what I was looking for. Been using it now
for a couple of days with TEMPer sensor on both 5.3 stable and current by
using this patch written by SASANO Takayoshi:
  http://www2192ue.sakura.ne.jp/~uaa/gomitext/2013/20130331/20130331.diff

Any ideas when this could go into source tree?



 http://marc.info/?l=openbsd-techm=136472023131435w=2
 http://marc.info/?l=openbsd-techm=136762807930749w=2



Re: USB temperature sensors

2013-05-13 Thread Stuart Henderson
On 2013-05-10, Christian Weisgerber na...@mips.inka.de wrote:
 Stuart Henderson s...@spacehopper.org wrote:

 TemperNTC (http://www.pcsensor.com/index.php?_a=productproduct_id=7)
 uses uthum(4) but has a problem where the sensor drops out occasionally;
 diff I posted to tech@ improves (but doesn't totally fix) this.
 This seems specific to TemperNTC, I don't have any other uthum(4)
 devices myself but it seems e.g. TemperHUM is more reliable.

 My TEMPerHUM also drops out occasionally.

 As far as the readings are concerned, the temperature it reports
 is consistently some 1.5 .. 2.0 degC higher than what an alcohol
 thermometer in the same room shows, i.e., the measurements are
 reproducible if somewhat miscalibrated.  I doubt that the humidity
 readings are any good, but I haven't checked.


I've just got a ugold to play with locally (rather than my other one which
is in a remote server room), all three of these are in pretty much the same
location next to my laptop:

hw.sensors.ugold1.temp0=22.75 degC (inner)
hw.sensors.uthum1.temp0=19.00 degC (inner)
hw.sensors.uthum1.temp1=22.99 degC (outer/ntc)

I don't have an alcohol/Hg thermometer to compare with though.
Maybe I'll try the NTC in a cup of iced water to see how that looks
(the ugold and uthum's inner sensors are somewhat harder to check in
that way :)



Re: USB temperature sensors

2013-05-10 Thread Christian Weisgerber
Stuart Henderson s...@spacehopper.org wrote:

 TemperNTC (http://www.pcsensor.com/index.php?_a=productproduct_id=7)
 uses uthum(4) but has a problem where the sensor drops out occasionally;
 diff I posted to tech@ improves (but doesn't totally fix) this.
 This seems specific to TemperNTC, I don't have any other uthum(4)
 devices myself but it seems e.g. TemperHUM is more reliable.

My TEMPerHUM also drops out occasionally.

As far as the readings are concerned, the temperature it reports
is consistently some 1.5 .. 2.0 degC higher than what an alcohol
thermometer in the same room shows, i.e., the measurements are
reproducible if somewhat miscalibrated.  I doubt that the humidity
readings are any good, but I haven't checked.

-- 
Christian naddy Weisgerber  na...@mips.inka.de



USB temperature sensors

2013-05-09 Thread rafaello konfekte
Hello,

Could you share your experience with USB temperature sensors? I'm looking
for something cheap for my server room. Only one temperature sensor would
be fine, but internal + external temperature sensor and maybe even humidity
sensor would be even better. I'm looking for something that is supported by
OpenBSD sensors framework as that would be most convenient.

Thanks!



Re: USB temperature sensors

2013-05-09 Thread Michel Blais
I never tryed on OpenBSD but mFi from Ubnt is cheap and the software is
compatible with Unix.

Michel

  *De: *rafaello konfekte
*Envoyé: *jeudi 9 mai 2013 07 h 30 min 18 s EDT
*À: *misc@openbsd.org
*Répondre à: *rafaello konfekte
*Objet: *USB temperature sensors

Hello,

Could you share your experience with USB temperature sensors? I'm looking
for something cheap for my server room. Only one temperature sensor would
be fine, but internal + external temperature sensor and maybe even humidity
sensor would be even better. I'm looking for something that is supported by
OpenBSD sensors framework as that would be most convenient.

Thanks!



Re: USB temperature sensors

2013-05-09 Thread noah pugsley
On Thu, May 9, 2013 at 4:19 AM, rafaello konfekte 
peleekaiskardina...@gmail.com wrote:

 Hello,

 Could you share your experience with USB temperature sensors? I'm looking
 for something cheap for my server room. Only one temperature sensor would
 be fine, but internal + external temperature sensor and maybe even humidity
 sensor would be even better. I'm looking for something that is supported by
 OpenBSD sensors framework as that would be most convenient.

 Thanks!


man 4 onewire



Re: USB temperature sensors

2013-05-09 Thread Barry Grumbine
If you're willing/able to test some new code, you may be interested in two
recent threads on tech@
http://marc.info/?l=openbsd-techm=136472023131435w=2
http://marc.info/?l=openbsd-techm=136762807930749w=2



On Thu, May 9, 2013 at 4:19 AM, rafaello konfekte 
peleekaiskardina...@gmail.com wrote:

 Hello,

 Could you share your experience with USB temperature sensors? I'm looking
 for something cheap for my server room. Only one temperature sensor would
 be fine, but internal + external temperature sensor and maybe even humidity
 sensor would be even better. I'm looking for something that is supported by
 OpenBSD sensors framework as that would be most convenient.

 Thanks!



Re: USB temperature sensors

2013-05-09 Thread Stuart Henderson
On 2013-05-09, rafaello konfekte peleekaiskardina...@gmail.com wrote:
 Hello,

 Could you share your experience with USB temperature sensors? I'm looking
 for something cheap for my server room. Only one temperature sensor would
 be fine, but internal + external temperature sensor and maybe even humidity
 sensor would be even better. I'm looking for something that is supported by
 OpenBSD sensors framework as that would be most convenient.

 Thanks!




man -k sensor will show you various options.

man -k sensor | grep ^u for the directly USB-connected ones.
The Toradex uoak* ones are now an open hardware design and Toradex
no longer produce them themselves.

1-Wire sensors can also be connected to USB via uow(4), these may
be a better bet if you want a larger number of sensors.


At the moment most of the ebay vendors that I'm seeing have either
ugold(4) or the TemperNTC version of uthum(4) devices.

TemperNTC (http://www.pcsensor.com/index.php?_a=productproduct_id=7)
uses uthum(4) but has a problem where the sensor drops out occasionally;
diff I posted to tech@ improves (but doesn't totally fix) this.
This seems specific to TemperNTC, I don't have any other uthum(4)
devices myself but it seems e.g. TemperHUM is more reliable.

ugold(4) has not been committed yet, see recent tech@ posts.
(http://www.pcsensor.com/index.php?_a=productproduct_id=41)
There are some possible races in the driver though in practice
it seems to work well (better than the above TemperNTC).


If you have something running, there are various ways to get graphs etc
(snmpd in base exports sensor data; symon is another option), or for
simple alerting you can just run sensorsd - I have it log to a separate
file in syslog.conf:

!sensorsd
*.* /var/log/sensors

and tell newsyslog to rotate the file without log turned over
markers, and to send alerts:

/var/log/sensors644  7 *168   ZMB root

and uncomment the send log file notifications in root's crontab.