Re: [Owfs-developers] spaces before temperature

2011-03-18 Thread Roberto Spadim
maybe in future a json to owhttp could be nice... a ajax just with owhttp and a javascript html page 2011/3/18 Roberto Spadim : > i think not, it's just a doubt why fixed string and not variable > length string, in my opnion > at script/language side if you want use it, you must convert to double

Re: [Owfs-developers] spaces before temperature

2011-03-18 Thread Roberto Spadim
i think not, it's just a doubt why fixed string and not variable length string, in my opnion at script/language side if you want use it, you must convert to double or decimal or integer... i don't see problems with variable or fixed length, just trim it before atoi() or atol() atoXX (double)($var)

Re: [Owfs-developers] spaces before temperature

2011-03-18 Thread Paul Alfille
Right, it's a fixed 12 character field, I think. Does it create problems? On Fri, Mar 18, 2011 at 9:36 AM, Roberto Spadim wrote: > printf format? maybe a 'trim' like could help > > 2011/3/18 p4trykx : >> Hello >> I was wondering why there are spaces before the reading in temperature >> file. >> I

Re: [Owfs-developers] spaces before temperature

2011-03-18 Thread Roberto Spadim
printf format? maybe a 'trim' like could help 2011/3/18 p4trykx : > Hello > I was wondering why there are spaces before the reading in temperature > file. > I know it's easy to delete them bash script. > Here are some readings. I added _ to show where it starts and ends. > _        4.25_ > _      

[Owfs-developers] spaces before temperature

2011-03-18 Thread p4trykx
Hello I was wondering why there are spaces before the reading in temperature file. I know it's easy to delete them bash script. Here are some readings. I added _ to show where it starts and ends. _4.25_ _20.5_ -- p4trykx -