Completed weather and local time plugin

This commit is contained in:
JayWll
2020-05-16 14:49:59 -06:00
parent 8aeceee0eb
commit 48a9226a81
8 changed files with 68 additions and 5 deletions

View File

@@ -0,0 +1,12 @@
$(() => {
const oneMinute = 1 * 60 * 1000
const requestUpdate = () => {
$.request('CurrentInfo::onUpdateRequested', {
update: { '@result': '#currentinfo' }
})
console.log('Weather and time info updated')
}
setInterval(requestUpdate, oneMinute)
requestUpdate()
})