Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyownet-0.7.3.tar.gz (6.1 kB view details)

Uploaded Source

File details

Details for the file pyownet-0.7.3.tar.gz.

File metadata

  • Download URL: pyownet-0.7.3.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pyownet-0.7.3.tar.gz
Algorithm Hash digest
SHA256 ceb0644c71cecdc11de53e491e7b92827efe100362db3cc1f69d2b3cdad09fbd
MD5 ba6020657d90a49d10a055f4087baed9
BLAKE2b-256 dca13a4db006087853120614e9a15919786aebf19de45a15d5ce93b5c35cd4db

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page