13 lines
198 B
JavaScript
13 lines
198 B
JavaScript
|
import * as mpd from "./mpd.js";
|
||
|
|
||
|
const DELAY = 2000;
|
||
|
|
||
|
async function tick() {
|
||
|
let data = await mpd.getStatus();
|
||
|
console.log(data);
|
||
|
setTimeout(tick, DELAY);
|
||
|
}
|
||
|
|
||
|
export function init() {
|
||
|
tick();
|
||
|
}
|