File: README.md

package info (click to toggle)
pyhomeworks 1.1.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 144 kB
  • sloc: python: 433; makefile: 7
file content (21 lines) | stat: -rw-r--r-- 509 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# pyhomeworks Package

Package to connect to Lutron Homeworks Series-4 and Series-8 systems.
The controller is connected by an RS232 port to an Ethernet adaptor (NPort).

# Example:

    from time import sleep
    from pyhomeworks import Homeworks
    
    def callback(msg,data):
        print(msg,data)

    hw = Homeworks( 'host.test.com', 4008, callback )
    hw.start()

    # Sleep for 10 seconds waiting for a callback
    sleep(10.)

    # Close the interface and stop the worker thread
    hw.stop()