Skip to main content

Library to communicate over wifi using Artnet/Artnet-Repl

Project description

DSDM

DMX inspired lighting protocol optimized for modern lighting solutions

DSDM is python REPL like tool to control mutiple micoPython lighting devices with single python REPL input. user can send the commands to the fixture from DMX(rs485), lumenRadio, WDMX, BLE, WiFi(Art-Net, sACN)

  • All are timestamped for NTP synced execution to adjust for wiggle from IP networks.
  • Reply from REPL is only possible via Art-Net or sACN

microDSDM

Micopython 1.18 ESP32 platform implementation of DSDM for sending and recieveing DMX packets to adjust lighting and execute REPL commands lamp has global variables: device_id, tags[] if new command is wished to be exeuted sender must optain que(quid,tags,nr_of_messages) que is granted:

  1. only correct quid lines are red, all others ignored to preven between lines REPL commands recieved_messages<nr_of_messages
  2. if my_labels in labels Then listned only to the quid messages until all messages are recieved. Execute code line by line

DSDMpy

Python3 library to send and recieve REPL commands to DSDM compatible devices. The setup contains 2 lamps (Apollo0001,Apollo0002 and Apollo0003), computer is connected to the same submnet with the lamps

import DSDMpy as DSDM

lamps = DSDM.DSDMpy(ip="broadcast", reply="True")
# Red: 50%, Green: 50%, Blue: 50%, White Balance: 5600K, Fx opacity: 0%
# WB calculated as 1500-10 000K, (5600-1500)/8500*255
lamps.send("renderer.set_color(128,128,128,123,0)", tags=[])
lamps.send("tags.append('ceiling'), tags=['Apollo0001']")
lamps.send("tags.append('ceiling'), tags=['Apollo0002']")
# Red: 50%, Green: 50%, Blue: 50%, White Balance: 5600K, Fx opacity: 0%
# WB calculated as 1500-10 000K, (3200-1500)/8500*255
lamps.send("renderer.set_color(255,255,255,51,100)",tags=['ceiling'])

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

DSDMpy-0.0.2.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

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

DSDMpy-0.0.2-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: DSDMpy-0.0.2.tar.gz
  • Upload date:
  • Size: 10.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.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 DSDMpy-0.0.2.tar.gz
Algorithm Hash digest
SHA256 fc9667d31ddb0ae68e33397593b3f78be4b224dea77e88c021c787915597b530
MD5 5a2d33a46ed657faa581edc7076cc5bc
BLAKE2b-256 1f050cad7af53e6fb8a97c53ceca2adad4d12d2cc44267d47936550e697729ae

See more details on using hashes here.

File details

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

File metadata

  • Download URL: DSDMpy-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 9.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.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 DSDMpy-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 de6eaca7fa397a76db39f0ad97bf1a4776f2d7b6c0f2782964d0f7eef20b5261
MD5 0d5d698f67d2c6ffdac31822109e1955
BLAKE2b-256 2d487f2791db0717d95f879049fe3a3e964b62df17d06d6b7d5d18681d09db49

See more details on using hashes here.

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