Let me answer to the python part of your question.

To access 1-wire sensors from a python script you have two options:

A) install the owserver daemon and access 1-wire data via the owserver protocol 
(aka ownet), see http://owfs.org/index.php?page=owserver-protocol 
<http://owfs.org/index.php?page=owserver-protocol>
B) directly access the “physical bus” from your script.

Let discuss the two approaches.


A) access via owserver.

The owserver protocol is a TCP network protocol. In python you can use either a 
pure python implementation, or link to an external C library that implements 
the protocol.

As what regards pure python there are two options:

ownet from the official distribution
pyownet, available on pypi https://pypi.python.org/pypi/pyownet 
<https://pypi.python.org/pypi/pyownet> (pip install pyownet) with docs here: 
http://pyownet.readthedocs.org/en/latest/# 
<http://pyownet.readthedocs.org/en/latest/#>

(I wrote pyownet to improve the official implementation, which is not more 
maintained on pipy where it stuck at version 0.2 of 2006-12-15)

Alternatively you can go for a binary library binding, which will introduce a 
run time dependency to libow

ow from the official distribution
pyowfs, available on pypi https://pypi.python.org/pypi/pyowfs 
<https://pypi.python.org/pypi/pyowfs> (pip install pyowfs) with docs here: 
http://priesch.co.at/pyowfs <http://priesch.co.at/pyowfs>


In the case of the owserver protocol I would suggest using one of the two pure 
python implementations: bottleneck is usually the 1-wire bus, so there is no 
need to go to a C implementation of the TCP protocol. Performance is fairly 
good with both ownet and pyownet, with a slight edge on pyownet, with 
implements socket persistence and is actively maintained. (OK, this is the 
developer view.)


B) direct access to the bus.

This is not possible with pure python so you have to go with one of the two C 
API bindings (the official ow or pyowfs). I have no experience with this 
approach (I always install owserver first) so I can’t give informed advice. 
However I would first try pyowfs since it is maintained on pypi.



Bye

Stefano

> On 20 May 2015, at 00:49, DavidJ61 <davejohn...@gmail.com> wrote:
> 
> Further to my above message, I am having a bit of a problem accessing the
> pressure attribute for the EDS environment sensor EDS0066.  I have trawled
> google and am not able to find any documentation on how I can do this. In
> fact, as a whole, I have found this to be the case with owpython and it
> seems I am missing my crystal ball.
> I'd appreciate a bit of help and guidance.  
> 
> 
> 
> --
> View this message in context: 
> http://owfs-developers.1086194.n5.nabble.com/owpython-tp5410p11354.html
> Sent from the OWFS Developers mailing list archive at Nabble.com.
> 
> ------------------------------------------------------------------------------
> One dashboard for servers and applications across Physical-Virtual-Cloud 
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insights
> Deep dive visibility with transaction tracing using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
> _______________________________________________
> Owfs-developers mailing list
> Owfs-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/owfs-developers

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to