Skip to main content

USR-R16 / USR-R16-T controller

Project description

USR-R16 / USR-R16-T

Simpe USR-R16 / USR-R16-T boards controller class

Example

from usrr16 import UsrR16

r16 = UsrR16(host='192.168.0.99', port=8899, password='admin')
r16.turn_off_all()

r16.invert(relay=1)
r16.turn_on(relay=2)
r16.turn_off(relay=2)

r16.turn_on(3)
print(r16.state(3)) # True

r16.turn_off(3)
print(r16.state(3)) # False

Installation

pip install usrr16

Contributors: @v1a0, @horga83

Based on @wowks/USR-R16 and xtodx/php-USR-R16

Thank you!

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

usrr16-0.0.2.tar.gz (15.1 kB view details)

Uploaded Source

Built Distribution

usrr16-0.0.2-py3-none-any.whl (15.3 kB view details)

Uploaded Python 3

File details

Details for the file usrr16-0.0.2.tar.gz.

File metadata

  • Download URL: usrr16-0.0.2.tar.gz
  • Upload date:
  • Size: 15.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for usrr16-0.0.2.tar.gz
Algorithm Hash digest
SHA256 ec76f2c89ef7c8961c2b66f565e2b78fefc732d7fed7c340f5972151756fdcd2
MD5 55701677e6565af07736c4289f4995c3
BLAKE2b-256 e7567ffd21dbd443973ff057ea170aec02394decf0b73003a6a49350ed240100

See more details on using hashes here.

File details

Details for the file usrr16-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: usrr16-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 15.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for usrr16-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5e88568545b882c375ae9fd6d66e5fd3541c55af249c9a4c7c34c3db1e667ad2
MD5 4091a39a6bace12473f9ed2acfb2c802
BLAKE2b-256 f06e663a709e06739948f72be9ae81aea22107baa9cc199de9575603c0fd666b

See more details on using hashes here.

Supported by

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