Thank you for the bug report.

I'll check the code. The temperature alarm values should be handled as type
"temperature" internally, and thus subject to conversion of temperature
scale.

As to float -- the temperature limits on the chip are only 1 byte long
each, and have a resolution of 1 degree celsius. Any number will have to
rounded to this resolution and range.

See page 4 of the datasheet:
http://datasheets.maxim-ic.com/en/ds/DS18B20.pdf

Paul Alfille

On Tue, Mar 27, 2012 at 3:37 AM, Ivan Lisenkov <[email protected]> wrote:

> Hello,
>
> I'm running owhttpd vesion 2.8p14. There is a bug, so it is not possible
> to set negative alarm values for DS18B20 sensors.
>
> $wget -qO - --no-proxy
> http://owhttpd.host/json/28.1E9257030000/templow?templow=5
> templow            5
>
> ok, no problem!
>
> $wget -qO - --no-proxy
> http://owhttpd.host/json/28.1E9257030000/templow?templow=-5
> templow            0
>
> BUG!
>
> $wget -qO - --no-proxy
> http://owhttpd.host/json/28.1E9257030000/templow?templow=251
> templow           -5
>
> That is what I really need, but setting in some unexpected way. I have
> checked, it works, alarming if temperature is below -5. (Hopefully, Moscow
> weather permits it :) )
>
> Also, is it hardware possible to be alarm values type of float, not only
> integer?
>
> My OS is:
> uname -a
> linux linaro-nano 3.0.0-1007-linaro-omap #11~ppa~natty-Ubuntu SMP PREEMPT
> Tue Sep 27 20:33:26 UTC 2011 armv7l armv7l armv7l GNU/Linux
>
>
>
>
> Best Regards,
>
> Ivan, PhD
>
>
>
>
> ------------------------------------------------------------------------------
> This SF email is sponsosred by:
> Try Windows Azure free for 90 days Click Here
> http://p.sf.net/sfu/sfd2d-msazure
> _______________________________________________
> Owfs-developers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/owfs-developers
>
>
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to