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