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.
|
function draw() {
|
|
$.getJSON('cpu.json', data =>{
|
|
let c = document.querySelector('.graph');
|
|
drawGraph(c, data['100temp'], {yMax: 50, yMin: "0", xUnit: "s", yUnit: "°C"});
|
|
});
|
|
}
|
|
|
|
draw();
|
|
let refreshInterval = setInterval(draw, 1000); |