You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rcn-frontserver/res/scripts/data.js

9 lines
239 B
JavaScript

function draw() {
$.getJSON('cpu.json', data =>{
let c = document.querySelector('.graph');
drawGraph(c, data['100temp'], {yMax: 50, yMin: "0", xUnit: "s", yUnit: "°C"});
});
}
draw();
registerInterval(draw, 1000);