A basic API implementation for Trimlight Select systems.
Project description
TrimPy
A basic API implementation for Trimlight Select systems.
Install:
$ python3 -m pip install --upgrade TrimPy
Usage:
$ python3 -m TrimPy
Usage: TrimPy [options]
Options:
-h, --help show this help message and exit
-i IP, --ip=IP IP address to connect to (required)
-m MODE, --mode=MODE set trimlight to mode: timer, or manual
-p PATTERN, --pattern=PATTERN
set trimlight to pattern: NEW_YEAR, ST_VALENTINE,
ST_PATRICK, MOTHERS_DAY, INDEPENDENCE_DAY, DEFAULT,
HALLOWEEN, THANKSGIVING, CHRISTMAS (also accepts
custom values in the form of integers representing the
pattern number)
-n NAME, --set-name=NAME
set trimlight device name (< 25 characters)
-d N, --dot-count=N set trimlight device dot count to N (< 4096 dots)
-q N, --query-pattern=N
query trimlight for information about pattern number N
-D N, --delete-pattern=N
delete pattern number N
-v, --verbose make lots of noise [default: False]
-V, --version print version and exit
Create/Update/Preview Pattern:
create/update/preview a trimlight pattern to match your liking
--preview-pattern preview a pattern specified by the options below, will
not update pattern if using '--source-pattern'
--source-pattern=N source values from pattern number N
--dest-pattern=N write updated values to pattern number N
--name=PATNAME set pattern name (< 25 characters)
--animation=ANIMATION
set animation style: STATIC, CHASE_FORWARD,
CHASE_BACKWARD, MIDDLE_TO_OUT, OUT_TO_MIDDLE, STROBE,
FADE, COMET_FORWARD, COMET_BACKWARD, WAVE_FORWARD,
WAVE_BACKWARD, SOLID_FADE
--speed=SPEED set animation speed [0-255]
--brightness=BRIGHTNESS
set brightness [0-255]
--color-one=R G B set 'R G B' integer values for color index one
--color-two=R G B set 'R G B' integer values for color index two
--color-three=R G B
set 'R G B' integer values for color index three
--color-four=R G B set 'R G B' integer values for for color index four
--color-five=R G B set 'R G B' integer values for color index five
--color-six=R G B set 'R G B' integer values for color index six
--color-seven=R G B
set 'R G B' integer values for color index seven
--count-one=N set color index one to repeat N times [0-30]
--count-two=N set color index two to repeat N times [0-30]
--count-three=N set color index three to repeat N times [0-30]
--count-four=N set color index four to repeat N times [0-30]
--count-five=N set color index five to repeat N times [0-30]
--count-six=N set color index six to repeat N times [0-30]
--count-seven=N set color index seven to repeat N times [0-30]
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
TrimPy-1.0.1.tar.gz
(19.8 kB
view details)
Built Distribution
TrimPy-1.0.1-py3-none-any.whl
(24.4 kB
view details)
File details
Details for the file TrimPy-1.0.1.tar.gz
.
File metadata
- Download URL: TrimPy-1.0.1.tar.gz
- Upload date:
- Size: 19.8 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | c464f42b75c15f51d75e7c35c479dc70a93116581721e7649cbb70b5302c1826 |
|
MD5 | e22054b19446246116de41927d11e3c6 |
|
BLAKE2b-256 | 0969a569e28ea328c47ac62e529b129b2159527afbc800590ca4d0fbe9cceb12 |
File details
Details for the file TrimPy-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: TrimPy-1.0.1-py3-none-any.whl
- Upload date:
- Size: 24.4 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71efbe340348a69cb9b7f9efa1bf074421480c307921ccec05e939cb5a8b86c0 |
|
MD5 | 2f04c482d7ecab640be02184869f63d3 |
|
BLAKE2b-256 | 0b806d45e95ab8ada59168561c4a3bacfcbd66e6ab2843aff7f3ff72f1574c36 |