Skip to main content

A basic API implementation for Trimlight Select systems.

Project description

TrimPy

GitHub CodeQL Lint

A basic API implementation for Trimlight Select systems.

Install:

python3 -m pip install --upgrade TrimPy

Usage:

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


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.1.0.tar.gz (20.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

TrimPy-1.1.0-py3-none-any.whl (24.7 kB view details)

Uploaded Python 3

File details

Details for the file trimpy-1.1.0.tar.gz.

File metadata

  • Download URL: trimpy-1.1.0.tar.gz
  • Upload date:
  • Size: 20.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for trimpy-1.1.0.tar.gz
Algorithm Hash digest
SHA256 0c7480582688dc3815080bb03628461202d436e353acdaaf4d2f726b67a5bde3
MD5 541f1e12bb6c2a76c45061ee9f4f5eb3
BLAKE2b-256 c03fe2e9949826a517b401d5e15c4c169e53643d12c4ab26d93f6376545d975e

See more details on using hashes here.

Provenance

The following attestation bundles were made for trimpy-1.1.0.tar.gz:

Publisher: publish.yml on ecdye/TrimPy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file TrimPy-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: TrimPy-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 24.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for TrimPy-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 25a7b4de7ccd89e4b6f0c0c0a372432a7efacd2d23f80e8fc2c2dd6d457b4e3a
MD5 b650c9cb0e2afda2f7571f36ee3e69bd
BLAKE2b-256 7d4bab2c27cce77ef96e91467f3aa967fe5a804019721d8ed793b4a078b803b2

See more details on using hashes here.

Provenance

The following attestation bundles were made for TrimPy-1.1.0-py3-none-any.whl:

Publisher: publish.yml on ecdye/TrimPy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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