Thank you for your reply, I have checked datasheet. Shame on me, that I
didn't this before asking.
Also, I think that json and text outputs are mixed up:
$ wget -qO - http://owhttpd.host/json/12.9D1982000000/PIO.A
PIO.A 1
This is obviously text
$ wget -qO - http://owhttpd.host/text/12.9D1982000000/PIO.A
"true"
And this is should be json.
Maybe it is arm specific, so I can test any patches provided.
Best Regards,
Ivan, PhD
On Tue, Mar 27, 2012 at 5:18 PM, Paul Alfille <[email protected]>wrote:
> 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
>
>
------------------------------------------------------------------------------
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