Sorry. It's located in owshell package.
# ipkg install owshell
/Christian
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Rob
Conway
Sent: den 13 mars 2007 21:12
To: [email protected]
Subject: Re: [Owfs-developers] Reading 1 wire data every minutewith
anNSLU2(SLUG)
Christian
I cannot find where on my slug owread and owwrite are located.....I assumed
they would of been in a bin directly
cheers
rob
----- Original Message -----
From: Christian Magnusson <mailto:[EMAIL PROTECTED]>
To: [email protected]
Sent: Tuesday, March 13, 2007 10:16 PM
Subject: Re: [Owfs-developers] Reading 1 wire data every minutewith
anNSLU2(SLUG)
There have been one fix which effects the USB adapter on the NSLU2 too..
(HAVE_INTERRUPT_READ wasn't detected correctly).
I have recompiled owfs and created new ipk-packages which you can upgrade
too from sourceforge. (2.6p2-3). I'm not 100% sure about Paul's latest
changes in the cvs if they are stable right now, but it seems to work for
me.
It might also be some problem with fuse+owfs which you have found. You can
try the shell-commands and not use fuse at all.
Try re-write the scripts like this and see if that works better.
# cat cgi-script.sh
#!/bin/bash
etime=$(/bin/date)
OWSERVER="-s 3002"
### Read 1wire data and convert into engineering units #ph was 2.6667##
PH=$(owread $OWSERVER 20.B71F05000000/volt.A | /opt/bin/awk '{printf
"%4.2f\n",((($0-1)/1.6)+5.5)}')
US=$(owread $OWSERVER 20.B71F05000000/volt.B | /opt/bin/awk '{printf
"%5.1f\n",($0*100)}')
TempAqua=$(owread $OWSERVER 20.B71F05000000/volt.C | /opt/bin/awk '{printf
"%3.1f\n",((($0-1)*5)+20)}')
LITRES=$(owread $OWSERVER 20.952A05000000/volt.D | /opt/bin/awk '{printf
"%3.1f\n",(($0-2.900)*60)}')
TempOut=$(owread $OWSERVER 28.11BF97000000/temperature | /opt/bin/awk
'{printf "%3.1f\n",($0)}')
TempAmb=$(owread $OWSERVER 28.D70598000000/temperature | /opt/bin/awk
'{printf "%3.1f\n",($0)}')
TempRes=$(owread $OWSERVER 28.A6EE97000000/temperature | /opt/bin/awk
'{printf "%3.1f\n",($0)}')
set -f
echo Content-type: text/plain
echo
echo " DEMAND REPORT"
echo -------------------------------------------
echo Report Date $etime
echo
echo
echo Aquaium Data
echo " pH =" $PH
echo " Conductivity =" $US uS
echo " Aquarium = "$TempAqua " DegC"
echo " Reservoir Temperature = "$TempRes DegC
echo " Litres Available = "$LITRES L
echo
echo Weather Data
echo " Outside Temperature =" $TempOut DegC
echo " House Temperature =" $TempAmb DegC
echo
echo --------------------------------------------
echo " Page 1/1"
###############################################################
# cat cron-script.sh
#!/bin/bash
### Force Simultaneous 1wire conversion ###
OWSERVER="-s 3002"
owwrite $OWSERVER simultaneous/voltage 1
owwrite $OWSERVER simultaneous/temperature 1
### Read 1wire data and convert into engineering units ##
PH=$(owread $OWSERVER 20.B71F05000000/volt.A | /opt/bin/awk '{printf
"%4.2f\n",((($0-1)/1.6)+5.5)}')
US=$(owread $OWSERVER 20.B71F05000000/volt.B | /opt/bin/awk '{printf
"%5.1f\n",($0*100)}')
TempAqua=$(owread $OWSERVER 20.B71F05000000/volt.C | /opt/bin/awk '{printf
"%3.1f\n",((($0-1)*5)+20)}')
LITRES=$(owread $OWSERVER 20.952A05000000/volt.D | /opt/bin/awk '{printf
"%3.1f\n",(($0-2.900)*60)}')
TempOut=$(owread $OWSERVER 28.11BF97000000/temperature | /opt/bin/awk
'{printf "%3.1f\n",($0)}')
TempAmb=$(owread $OWSERVER 28.D70598000000/temperature | /opt/bin/awk
'{printf "%3.1f\n",($0)}')
TempRes=$(owread $OWSERVER 28.A6EE97000000/temperature | /opt/bin/awk
'{printf "%3.1f\n",($0)}')
Accum_flow=$(owread $OWSERVER uncached/1D.EBEF0900000034/counters.A |
/opt/bin/awk '{printf "%d\n",($0/4100)}')
### Calculations based upon Data ###
C12=$(/opt/bin/awk -v PH="$PH" '{printf "%3.1f\n",((3*$0)*(10^(7-PH)))}'
/public/kh_value)
Todayflow=$(/opt/bin/awk -v AF="$Accum_flow" '{printf "%d\n",(AF-$0)}'
/public/lastflow.txt)
Weekflow=$(/opt/bin/awk -v AF="$Accum_flow" '{printf "%d\n",(AF-$0)}'
/public/weekflow.txt)
_____
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_____
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers