forked from miccoli/pyownet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.txt
34 lines (25 loc) · 1.19 KB
/
README.txt
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
pyownet, a pythonic interface to ownet
======================================
pyownet is a pure python package that allows to access an `owserver`_
via the `owserver network protocol`_, in short *ownet*.
owserver is part of the `OWFS 1-Wire File System`_:
OWFS is an easy way to use the powerful 1-wire system of
Dallas/Maxim.
OWFS is a simple and flexible program to monitor and control the
physical environment. You can write scripts to read temperature,
flash lights, write to an LCD, log and graph, ...
The ``pyownet.protocol`` module is a low-level implementation of the
ownet protocol. Interaction with an owserver takes place via a proxy
object whose methods correspond to ownet messages:
::
>>> owproxy = OwnetProxy(host="owserver.example.com", port=4304)
>>> owproxy.ping()
>>> owproxy.dir()
['/10.67C6697351FF/', '/05.4AEC29CDBAAB/']
>>> owproxy.present('/10.67C6697351FF/temperature')
True
>>> owproxy.read('/10.67C6697351FF/temperature')
' 91.6195'
.. _owserver: http://owfs.org/index.php?page=owserver_protocol
.. _owserver network protocol: http://owfs.org/index.php?page=owserver-protocol
.. _OWFS 1-Wire File System: http://owfs.org