【文件属性】:
文件名称:node-pianocontrol:与钢琴条互动的节点界面
文件大小:16KB
文件格式:ZIP
更新时间:2021-05-22 09:25:39
JavaScript
节点钢琴控制
与钢琴条互动的节点界面
正在安装
安装很简单,但是假定您已经安装了钢琴架。
一个简单的git clone https://github.com/NathanBland/node-pianocontrol.git将帮助您入门。
接下来,您将需要在项目文件夹中进行npm install 。
之后,您需要配置ianobar以使用broadcast.py脚本。
为此,请导航至您的pianobar配置文件。
默认位置是~/.config/pianobar/config
还应该说您需要在此文件中配置用户名和密码。
要将broadcast.py设置为起作用,请将event_command = /path/to/project/broadcast.py附加到您的配置文件中。
完成此操作后,您只需运行node server.js ,然后将浏览器指向“ localhost:133
【文件预览】:
node-pianocontrol-master
----config.js(168B)
----package.json(863B)
----server.js(2KB)
----routes()
--------auth.js(597B)
--------index.js(269B)
--------routes.js(305B)
--------api.js(4KB)
----broadcast.py(429B)
----LICENSE(1KB)
----views()
--------controls.html(648B)
--------index.html(1KB)
--------layout.html(878B)
----.gitignore(526B)
----public()
--------css()
--------js()
--------views()
----README.md(1KB)