html5-infobeamer-dhcp/assets/js/custom/nodes/speaker-info-hall1.js

43 lines
640 B
JavaScript
Raw Normal View History

2024-01-08 21:32:04 +01:00
'use strict';
import * as fe from "../core/fetcher.js";
import * as ti from "../core/time.js";
import * as sc from "../core/screen.js";
// Import services
import * as serv from "../services/service.js";
// Import views
import * as dom from "../dom/speaker-info.js";
// Empty JSON lists for data
let storage = {
scheduleData: undefined
};
let cfg = {
2024-10-30 20:00:01 +01:00
"roomName": "A002"
2024-01-08 21:32:04 +01:00
};
let do_fetch = fe.configure({}, serv);
do_fetch(storage);
// Main Loop
let screen_update = sc.configure(serv, dom);
// Just do it
function main_loop() {
screen_update(storage, ti, cfg);
setTimeout(main_loop, 1 * 1000);
};
main_loop();