Matt a écrit :
Hi,

I have a 1-Wire Weather Instrument Kit V3.0, and rather than using a windows
weather package, I thought I'd use an old laptop to collect the data for me.

I have Debian running and OWFS (fantastic btw) is running fine.
Ultimately I want to collect the data and produce graphs, maybe render the
data with pov in some way, who knows.

All the various 1wire devices can be seen and I can look at their data.
DS2450
DS18S20
DS2423

The temperature is straight forward enough, but I'm not entirely sure how I
use the data for the other sensors.

Has anyone got any scripts I can look at for inspiration ?

Have a look at the "maison" package on SF (http://sourceforge.net/project/showfiles.php?group_id=85502). This is Perl code and little stuff to :
* read temperatures and store them in RRD files
* read a counter for power comsumption (of the house) and store it in a RRD file
* show graphs in a CGI interface
* display status on an LCD display connected to the 1-wire
* adds start/stop init scripts
* uses cron jobs to do some things (change heaters status)
* integrates well in Debian (@reboot cron job to start it all, etc.)
* everything is based on symlinks, to allow easy tuning of devices to read/write

Your use will be obvious :
* use the temploggerd as-is : it will read and store temperatures, and draw graphs * use the delesteurd to read/store you counter state, and modify a bit it calculations to convert counts into wind speed instead of currently converting count of "1 pulse per Wh" into Watts (let RRD calculate for you : just change the ratios) (delesteurd is badly named for the moment : it is not only meant to read power consumption, but also power off some heaters when the power is higher than a level. Still on my todo) * you're alone for wind direction, but you can still use the Perl scripts there and tweak them (just get the right formulaes on the Maxim web site or someone on this list).

Specifically

Why does the wind speed have two counters ?
Can I just use one ?

The chip has two counters by design. Only one can be wired (that's the case in power meter).

Do I just note the system time, take reading, wait, note time, take reading
and calculate the rotational speed that way ?

Yes. "Take the time" is a task that is automatically done by RRD, when you insert a new data. It also calculate a "rate" from your consecutive readings. So this is trivial.

With the wind direction, there seems to be 4 analogue volt readings, I'm
really not sure how this translates into direction.

Open the box, analyse the wiring, think... and ask the mailing-list ;-)

Any help would be appriecated.

Thanks

--
NH


-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to