ja.son-williams.ca/www/plugins/jasonwilliams/calgaryconditions/assets/javascript/currentinfo.js

13 lines
292 B
JavaScript
Raw Normal View History

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