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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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