JustAwait
This commit is contained in:
6
repo/js/JustAwait/main.js
Normal file
6
repo/js/JustAwait/main.js
Normal file
@@ -0,0 +1,6 @@
|
||||
(async function () {
|
||||
// settings 的对象内容来自于 settings.json 文件生成的动态配置页面
|
||||
log.info('等待{time}秒', settings.t)
|
||||
timeset=1000*settings.t
|
||||
await sleep(timeset);
|
||||
})();
|
||||
13
repo/js/JustAwait/manifest.json
Normal file
13
repo/js/JustAwait/manifest.json
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"manifest_version": 1,
|
||||
"name": "只是等待一下",
|
||||
"version": "1.0",
|
||||
"description": "只用于等待,方便在调度器为不同性能的设备配置等待",
|
||||
"authors": [
|
||||
{
|
||||
"name": "HZYgrandma",
|
||||
}
|
||||
],
|
||||
"settings_ui": "settings.json",
|
||||
"main": "main.js"
|
||||
}
|
||||
7
repo/js/JustAwait/settings.json
Normal file
7
repo/js/JustAwait/settings.json
Normal file
@@ -0,0 +1,7 @@
|
||||
[
|
||||
{
|
||||
"name": "t",
|
||||
"type": "input-text",
|
||||
"label": "等待时间(单位:秒)"
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user