Hi everyone,

I've been using owfs for over three years now to log atmospheric
information and pestering you with questions. During that time I have
been building some software around it that some of you may be
interested in. Time to give something back.

saal is an abstraction layer around sensors and actuators. Right now
it supports reading values from any owserver and reading and actuating
DIN mounted relays from digital loggers[1]. Adding new types of
sensors and actuators should be pretty easy (e.g., 1wire relays),
these just happened to be the ones I needed. Given a configuration of
sensors and actuators it can then periodically log them to a MySQL
database as well as produce pretty graphs.

See http://www.corujas.net/ for an example of saal in action. This is
the installation I built the code for and have been extracting a
reusable framework from. The charting stuff was the last bit that I
have finally made fully configurable so there is nothing in the code
that is particular to my installation. The code and documentation is
at https://github.com/pedrocr/saal and is written in ruby. It has been
packaged and released as a gem so doing "gem install saal" should
fetch it if you have a Ruby installation.

I am also the original author of the Ruby client library for owserver.
Because there is no actual dependency on owfs, after talking to Paul I
moved my development to github account and released it as a ruby gem.
That way the normal ruby package management (e.g. gem install ownet)
can be used for this. See https://github.com/pedrocr/ownet for the
code and some simple instructions. I've reduced the interface to a
single class that provides just the basic dir, read and write
operations.

Both saal and ownet have extensive unit tests that cover the large
majority of the code[2], including tests that run owserver in fake
mode to test it against the real server. I've also been running this
for more than three years and have ironed out a lot of quirks in this
kind of installation. As an example saal includes code to weed out
outlier reads from sensors. All in all the installation has been
running pretty well software-wise. Were hardware to be as consistent.

I've tried to make all this as generic as possible so it can be used
in other installations. I'd love to know of any problems you have or
suggestions for features.

Cheers,

Pedro

[1] http://www.digital-loggers.com/din.html
[2] For saal coverage is almost 100% and for ownet 80% because it is
hard to test the write support with owserver in fake mode

------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Discover what all the cheering's about.
Get your free trial download today. 
http://p.sf.net/sfu/quest-dev2dev2 
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to