mirror of https://github.com/CIRCL/AIL-framework
commit
8460131f24
|
@ -34,7 +34,7 @@ Features
|
|||
Installation
|
||||
------------
|
||||
|
||||
Type these command lines for a fully automated installation and start AIL framework
|
||||
Type these command lines for a fully automated installation and start AIL framework:
|
||||
```bash
|
||||
git clone https://github.com/CIRCL/AIL-framework.git
|
||||
cd AIL-framework
|
||||
|
@ -46,6 +46,7 @@ cd ~/AIL-framework/
|
|||
cd bin/
|
||||
./LAUNCH.sh
|
||||
```
|
||||
|
||||
The default [installing_deps.sh](./installing_deps.sh) is for Debian and Ubuntu based distributions. For Arch
|
||||
linux based distributions, you can replace it with [installing_deps_archlinux.sh](./installing_deps_archlinux.sh).
|
||||
|
||||
|
@ -53,6 +54,7 @@ There is also a [Travis file](.travis.yml) used for automating the installation
|
|||
|
||||
Docker Quick Start (Ubuntu 16.04 LTS)
|
||||
------------
|
||||
|
||||
1. Install Docker
|
||||
```bash
|
||||
sudo su
|
||||
|
|
|
@ -37,11 +37,11 @@ function update_values() {
|
|||
|
||||
// Plot and update the number of processed pastes
|
||||
// BEGIN PROCESSED PASTES
|
||||
var default_minute = (typeof window.default_minute !== "undefined") ? parseInt(window.default_minute) : 10;
|
||||
var totalPoints = 2*parseInt(default_minute); //60s*minute
|
||||
var curr_max = {"global": 0};
|
||||
var default_minute = (typeof window.default_minute !== "undefined") ? parseInt(window.default_minute) : 10;
|
||||
var totalPoints = 2*parseInt(default_minute); //60s*minute
|
||||
var curr_max = {"global": 0};
|
||||
|
||||
function fetch_data(dataset, curr_data, feeder_name) {
|
||||
function fetch_data(dataset, curr_data, feeder_name) {
|
||||
if (curr_data.length > 0){
|
||||
var data_old = curr_data[0];
|
||||
curr_data = curr_data.slice(1);
|
||||
|
@ -60,9 +60,9 @@ function update_values() {
|
|||
}
|
||||
data_for_processed_paste[dataset] = curr_data;
|
||||
return { label: feeder_name, data: res };
|
||||
}
|
||||
}
|
||||
|
||||
function getData(dataset_group, graph_type) {
|
||||
function getData(dataset_group, graph_type) {
|
||||
var curr_data;
|
||||
|
||||
var all_res = [];
|
||||
|
@ -73,7 +73,6 @@ function update_values() {
|
|||
curr_data = data_for_processed_paste["global"];
|
||||
all_res.push(fetch_data("global", curr_data, "global"));
|
||||
} else {
|
||||
|
||||
for(d_i in list_feeder) {
|
||||
if(list_feeder[d_i] == "global") {
|
||||
continue;
|
||||
|
@ -86,13 +85,12 @@ function update_values() {
|
|||
curr_data = data_for_processed_paste[dataset];
|
||||
all_res.push(fetch_data(dataset, curr_data, list_feeder[d_i]));
|
||||
}
|
||||
|
||||
}
|
||||
return all_res;
|
||||
}
|
||||
}
|
||||
|
||||
var updateInterval = 30*1000; //30s = 30*1000ms
|
||||
var options_processed_pastes = {
|
||||
var updateInterval = 30*1000; //30s = 30*1000ms
|
||||
var options_processed_pastes = {
|
||||
series: { shadowSize: 0 ,
|
||||
lines: { fill: true, fillColor: { colors: [ { opacity: 1 }, { opacity: 0.1 } ] }}
|
||||
},
|
||||
|
@ -106,15 +104,15 @@ function update_values() {
|
|||
show: true,
|
||||
position: "nw",
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
function update_processed_pastes(graph, dataset, graph_type) {
|
||||
function update_processed_pastes(graph, dataset, graph_type) {
|
||||
graph.setData(getData(dataset, graph_type));
|
||||
graph.getOptions().yaxes[0].max = curr_max[dataset];
|
||||
graph.setupGrid();
|
||||
graph.draw();
|
||||
setTimeout(function(){ update_processed_pastes(graph, dataset, graph_type); }, updateInterval);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// END PROCESSED PASTES
|
||||
|
|
Loading…
Reference in New Issue