This file is indexed.

/usr/share/doc/python-ownet/examples/Readme.txt is in python-ownet 2.8p15-1ubuntu4.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
ownet
=====

ownet is a standalone python module for accessing 1-wire sensors
through an owserver. The ownet module does not use the core ow
libraries. Instead, it impliments the wire protocol for owserver
communication. This means that the ow core libraries do no have to be
installed on all systems, just on the system running owserver. The
ownet module can be installed on any system with Python.


Installation
------------

Via easy_install
++++++++++++++++

If you have installed easy_install
(http://peak.telecommunity.com/DevCenter/EasyInstall) installing is as
simple as:

$ easy_install ownet
Searching for ownet
Reading http://www.python.org/pypi/ownet/
Reading http://www.owfs.org/
Reading http://www.python.org/pypi/ownet/0.2
Best match: ownet 0.2
Downloading http://cheeseshop.python.org/packages/source/o/ownet/ownet-0.2.tar.gz
Processing ownet-0.2.tar.gz
Running ownet-0.2/setup.py -q bdist_egg --dist-dir /tmp/easy_install--lFbng/ownet-0.2/egg-dist-tmp-ed4Ygq
package init file 'examples/__init__.py' not found (or not a regular file)
Creating missing __init__.py for examples
zip_safe flag not set; analyzing archive contents...
Adding ownet 0.2 to easy-install.pth file

Installed /sw/lib/python2.5/site-packages/ownet-0.2-py2.5.egg
Processing dependencies for ownet
$


From CVS
++++++++

Installation of the ownet module follows the standard Python distutils
installation.

$ cd module/ownet/python
$ sudo python setup.py install

There should now be a module called ownet in the site-packages
directory of the python installation.


Examples
--------

There are two sample programs in the examples directory - check_ow.py
and temperatures.py.

The check_ow.py program impliments a Nagios (http://www.nagios.org)
plugin to monitor the value of a sensor field, like the
temperature. Usage is beyond the scope of this document. See the
Nagios documentation for configuring and monitoring via plugins.

The temperatures.py will print out some details of the sensors along
with the temperatures found on any sensor that has a field called
temperature. Running it should print out something like:

$ python ./examples/temperatures.py  kuro2 9999
r: kuro2:9999/ - DS9490
r.entryList(): ['bus.0', 'settings', 'system', 'statistics']
r.sensorList(): [Sensor("/10.B7B64D000800", server="kuro2",
port="9999"), Sensor("/26.AF2E15000000", server="kuro2", port="9999"),
Sensor("/81.A44C23000000", server="kuro2", port="9999")]
kuro2:9999/10.B7B64D000800 - DS18S20      22.4375
kuro2:9999/26.AF2E15000000 - DS2438      21.0938
$

where "kuro2" should be the host name where owserver is running and
"9999" is the port to be used to communicate with the owserver.


$Id: Readme.txt,v 1.2 2006/12/24 14:26:46 peterk Exp $