diff --git a/apps/hourstrike/app.js b/apps/hourstrike/app.js index 037e57341..8203e6f10 100644 --- a/apps/hourstrike/app.js +++ b/apps/hourstrike/app.js @@ -7,7 +7,7 @@ function updateSettings() { function resetSettings() { settings = { - interval: 3600, + interval: 60, start: 9, end: 21, }; diff --git a/apps/hourstrike/boot.js b/apps/hourstrike/boot.js index a67e9a6d2..ea8fd36a8 100644 --- a/apps/hourstrike/boot.js +++ b/apps/hourstrike/boot.js @@ -3,5 +3,6 @@ var cur = new Date(); var cur_sec = cur.getMinutes()*60+cur.getSeconds(); var notify_sec = setting.interval>0?setting.interval-setting.interval%cur_sec:-1; + console.log(notify_sec); if (notify_sec>0) setTimeout(load('hourstrike.js'), notify_sec*1000); })(); diff --git a/apps/hourstrike/hourstrike.js b/apps/hourstrike/hourstrike.js index 4d3650d58..9f18513da 100644 --- a/apps/hourstrike/hourstrike.js +++ b/apps/hourstrike/hourstrike.js @@ -15,6 +15,8 @@ if (cur_hour new Promise(resolve => setTimeout(resolve,200)))