【文件属性】:
文件名称:xpl-radio:xPL无线电网关
文件大小:139KB
文件格式:ZIP
更新时间:2021-06-06 13:10:31
JavaScript
xpl-radio
Node JS层通过xPL执行mplayer
安装
$ git clone https://github.com/wiseflat/xpl-radio.git
$ npm update
用法
您需要先安装 xPL_Hub: :
发送 xpl-cmnd 获取模块的配置
$ xpl-send -m cmnd -c radio.request
发送 xpl-cmnd 以添加/更新配置
$ xpl-send -m cmnd -c radio.config file=file1.mp3 enable=true
发送 xpl-cmnd 来执行你的脚本
$ xpl-send -m cmnd -c radio.basic url=file1.mp3 command=play|stop|loop|timeLimit|stopTimeLimit
【文件预览】:
xpl-radio-master
----radio.basic.json(2KB)
----index.js(1KB)
----radio.config.json(35B)
----package.json(555B)
----systemd()
--------xpl-radio.service(223B)
----install()
--------post(51B)
--------pre(45B)
----LICENSE(18KB)
----lib()
--------xpl-radio.js(4KB)
--------resources()
--------player.js(3KB)
----README.md(581B)