13 lines
292 B
JavaScript
13 lines
292 B
JavaScript
$(() => {
|
|
const oneMinute = 1 * 60 * 1000
|
|
const requestUpdate = () => {
|
|
$.request('CurrentInfo::onUpdateRequested', {
|
|
update: { '@result': '#currentinfo' }
|
|
})
|
|
console.log('Weather and time info updated')
|
|
}
|
|
|
|
setInterval(requestUpdate, oneMinute)
|
|
requestUpdate()
|
|
})
|