Skip to content
Snippets Groups Projects
Commit 7436dfcc authored by Tibo's avatar Tibo
Browse files

show graphic

parent 4b5a0d54
No related branches found
No related tags found
No related merge requests found
...@@ -40,13 +40,13 @@ window.monitorIfconfigChart = function(element) { ...@@ -40,13 +40,13 @@ window.monitorIfconfigChart = function(element) {
if (typeof window.monitorURL === 'undefined') { if (typeof window.monitorURL === 'undefined') {
window.monitorURL = "https://monitor.web-d.be"; window.monitorURL = "https://monitor.web-d.be";
} }
var meminfo_url = window.monitorURL + "/api/sensor/" var api_url = window.monitorURL + "/api/sensor/"
+ window.monitorServerID + "/" + window.monitorServerToken + window.monitorServerID + "/" + window.monitorServerToken
+ "/ifconfig"; + "/ifconfig";
$.getJSON(meminfo_url, function( data ) { $.getJSON(api_url, function(data) {
console.log(data); console.log(data);
Array.from(data).each(function(dataset){ data.each(function(dataset){
var new_dataset = { var new_dataset = {
label: dataset.name, label: dataset.name,
backgroundColor: window.chartColors.green, backgroundColor: window.chartColors.green,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment