added temp fake data to the app for it to send to the JS side.

This commit is contained in:
UpstreamData
2022-03-30 08:42:21 -06:00
parent a0311e3ce3
commit eaaf137b9b
3 changed files with 327 additions and 15 deletions

View File

@@ -1,4 +1,3 @@
import { sio } from "./sio.js"
import { generate_graphs } from "./generate_graphs.js"
@@ -42,13 +41,13 @@ function checkLight(ip, checkbox) {
}
}
export function generate_layout(data_graph) {
export function generate_layout(miners) {
// get the container for all the charts and data
var container_all = document.getElementById('chart_container');
// empty the container out
container_all.innerHTML = ""
data_graph.miners.forEach(function(miner) {
miners.forEach(function(miner) {
// create main div column for all data to sit inside
var column = document.createElement('div');
@@ -258,4 +257,4 @@ export function generate_layout(data_graph) {
generate_graphs(miner, hr_canvas, temp_canvas, fan_1_canvas, fan_2_canvas);
}
});
}
}