使用udmx控制dmx的python 3模块。具有夹具配置文件,内置效果和网络控制面板。

PyDMXControl的Python项目详细描述


PYDMXcontrol< >

一个python 3模块,使用udmx控制dmx,具有夹具配置文件、内置效果和web控制面板。

PYPI versionlicensepython versions代码大小patreonslack

审查程序代码质量构建状态Codacy代码质量

PydmxControl图标

安装

通过PIP安装(推荐)

pip install -U PyDMXControl

通过带音频支持的PIP安装

pip install -U PyDMXControl[audio]

通过Github安装(开发版本,带音频)

pip install -U git+https://github.com/MattIPv4/PyDMXControl#egg=PyDMXControl[audio]

功能

  • 每个制造商的夹具配置文件(请参阅所有包含的配置文件

    • 包括通用调光装置,单通道
    • 内置虚拟调光器的RGB(3通道)固定装置
  • 效果模块/库支持(查看所有打包的效果

    • 提供强度暗槽,提供可配置速度和偏移量
    • 包括固定装置颜色跟踪效果,支持无限数量的颜色
    • 效果可以应用于单个设备或多个设备作为一个组
    • 演示:tests/effects.py
  • UDMX可以开箱即用

    • 在UDMX系统上开发并广泛测试的软件包
  • 内部票据器支持自定义回调

    • 在特定时间使用回拨标记器使操作自行进行
  • 线程化以允许连续运行

    • 在pydmxcontrol继续输出数据的同时运行自己的阻塞脚本
  • 内置网站控制面板

    • 通过滑块进行全局和单个夹具强度控制
    • 快速访问全局和每个fixture的回调函数
    • 用于单个设备和特定通道控制的颜色选择器
    • 演示:tests/web.py
  • json fixture配置

    • 将fixture配置从json文件加载到控制器中
    • 将当前设备集保存到json文件中,以备以后使用
    • 演示:tests/json-config.py
  • 支持可选音频播放

    • 播放音频曲目,同时PydmxControl继续运行照明控制
    • 使用PyGame获得最佳的跨平台和音频格式支持
    • 演示:tests/audio.py

示例用法

如何让一个调光器使用PydmxControl的示例, 启动后提供Web控制面板和控制台调试系统。

# Import the uDMX controller from PyDMXControl,#  this will be how the data is outputted.fromPyDMXControl.controllersimportuDMXController# Import the fixture profile we will use,#  the simple Dimmer in this example.fromPyDMXControl.profiles.GenericimportDimmer# Create an instance of the uDMX controller, #  this holds all the fixture information and outputs it.# This will start outputting data immediately.dmx=uDMXController()# Add a new Dimmer fixture to our controller#  and save it to a variable so we can access it.# We give it a name so it's easier to identify in the debug control options.fixture=dmx.add_fixture(Dimmer,name="My_First_Dimmer")# Next, dim the intensity of the fixture from it's initial value of zero#  to full, which is represented as 255 in DMX.# This is done over 5000 milliseconds, or 5 seconds.fixture.dim(255,5000)# We can now start the web control panel built into PyDMXControl.# This will output the web address in console, but should be http://0.0.0.0:8080# This runs in the background and so we can continue to do other things still.dmx.web_control()# The console debug mode can also be started if required,#  this provides basic control options in the console of the program.# This is blocking however and so the script will not continue past here until#  the debug control is exited. This won't stop DMX output.dmx.debug_control()# Once the console debug mode is exited the script will continue, to stop it#  exiting and stopping DMX output when can use a built-in sleep function.# This sleep function will wait until enter is pressed in the console before continuing.dmx.sleep_till_enter()# With everything done, you can terminate the DMX output and the program by calling#  the close method of the controller.# This will cleanly close any threads in use and stop DMX output.dmx.close()
< Buff行情>

对于"现实生活"示例,请查看我在办公室使用的设置tests/home.py

测试文件夹中浏览测试,查看正在测试的库中其他功能的示例。

这有什么意义?

只是用python来控制/发送dmx。
支持fixture profiling;默认为标准fixture和需要虚拟调光器的fixture。
通用夹具(单调光器、RGB LED、CU)的预建外形stom(设置您自己的频道数)。

有一个调试shell,允许控制fixture通道值和访问常规回调。此外,还提供 一个高级的web控制面板,可以访问全局回调、fixture助手、fixture颜色和控制 单个夹具通道。

当前仅支持通过UDMX的实际输出。
还包括一个打印控制器,它以它应该输出的相同速率将dmx帧打印到控制台 连接到数据线(这也会导致打印其他内容时出现问题)。

如果有人想给我买一个enttec usb dmx pro,那么我也会尽量让它工作。

感谢dave hocker,pyudmx的作者 通过电子邮件提供建议,帮助您解决某些问题,使此库在UDMX中正常运行。

贡献

欢迎大家参与这个项目!< BR> 请查看此存储库中的任何现有问题,寻找有助于为项目做出贡献的起始位置,或者只需创建您自己对项目的新贡献。

请确保遵循项目中的现有标准,如代码样式、命名约定和注释/文档。

当你准备好了,只需为你的贡献创建一个pull请求,我会随时查看它!

捐赠

你也可以通过捐助PayPal或在我的PATReon页面上每月支持我来帮助我和项目。

帕特伦 IMG ALT ="PayPal" src="https://warehouse-camo.cmh1.psfhosted.org/e8CBA6B6B6D542CCE7EA51BA452AFF85D35D3B974E3342/687474747474747474747073322222222222F696D6272E73686965656C6473636363636366762676767652F167676267672F167676C2D676767676767676C22302849494950342925333636363636363636363636363636C6676762626262626262626262626262626262626262626267676762626262626267676762676767672F67676767F436F6C6F723D30303435373267374796c653d706f706f75742d737175617265" />

讨论、支持和问题

是否需要此项目的支持、是否发现问题或是否要与其他人讨论是否参与此项目?

< Buff行情>

请先查看项目的问题页以获取支持和错误!

找不到你需要的东西?

  • 如果您有问题,请在这里创建一个github问题来报告情况,包括尽可能多的细节!
  • 或者,您可以加入我们的Slack工作区,讨论任何问题,获得项目支持,或者与贡献者和我本人聊天:
松弛

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
Java Selenium测试无符号扩展   Java JDBC DB2“CLI0129E无更多句柄”   java无法使SeleniumWebDriver单击复选框   wordpress Http请求帖子只有在通过Java应用程序发送时才起作用   java在while循环中构建Flux对象   java如何使用EL从地图中检索所有值   java在ImagePanel上绘制形状   java为同一服务器上的多个应用程序提供相同的JMX Mbean类   java如何基于s显示文本字段:选择struts 2   单个Java变量可以接受原语或对象数组吗?   java如何在文件中找到最大字节?   java Springboot可执行文件JAR错误:由于缺少EmbeddedServletContainerFactory bean,无法启动EmbeddedWebApplicationContext   JavaSpringJMX级联/联合   eclipse外部的命令行JUnit测试   java设置放大gral plot会导致空plot   java Android小部件   java如何在不同片段中更改具有不同样式的动作栏标题?