python ownet client library
Project description
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'
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file pyownet-0.7.0.tar.gz.
File metadata
- Download URL: pyownet-0.7.0.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b3f1cac624dffdb244e4b91355fb46e2dbd114c0eda21cb89517e875a5ef314e
|
|
| MD5 |
1c63d9b4b98066142350a4a0642c1204
|
|
| BLAKE2b-256 |
47c70994e23ee38c36b67d3104b85909cb694d2d5178299f3262f35694f87bf1
|