On 11/20/07, Piotr Popik <[EMAIL PROTECTED]> wrote:
>
> Good day,
>
> What would be the simplest way to check the vis (Vsens) current
> periodically (every 5 min) and place this value into a file (say, text
> file). I've build the solar sensor and I am trying to add its data into
> existing weather stations that uses digitemp... I could not find that info
> searching google. I am using Fedora 4 and owfs 2.7p0
>

Basically you need a loop that reads the value and writes it to the file
every 5 minutes.

There are any number of ways:
1. Shell script::
  Run owserver
  run a script that reads the value (owread) and echos the data:
e.g.
owserver -u
while :
  echo `owread 99.001122334455/vis` >> datafile
  sleep 5
done

(this takes advantage of the implicit default port of 4304)

2. Run a program (e.g. in perl)

3.Use the flle system (owfs)
  read and write using a bash script, or any language you prefer

4. Use owhttpd and wget (possible, but not an especially elegant solution)

5. Use owftpd and ftp or lftp or whatever

So the big considerations are:
1. Do you want to do the data collection on the same machine or remotely
   (Remotely suggests a technique that runs owserver)

2. Do you mind configuring fuse for the filesystem?

3. Is this part of a bigger data collection/control loop?

Paul Alfille
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to