diff --git a/Ansible/MainTask.retry b/Ansible/MainTask.retry new file mode 100644 index 0000000..067d99a --- /dev/null +++ b/Ansible/MainTask.retry @@ -0,0 +1 @@ +172.26.145.111 diff --git a/Ansible/inventaire.ini b/Ansible/inventaire.ini index 386777b..8d39582 100644 --- a/Ansible/inventaire.ini +++ b/Ansible/inventaire.ini @@ -1,6 +1,6 @@ [Arduino_init] -172.26.145.112 capteur=1 +172.26.145.111 capteur=1 172.26.145.113 capteur=2 [Arduino] -172.26.145.112 capteur=1 \ No newline at end of file +172.26.145.111 capteur=1 diff --git a/Ansible/roles/arduino/tasks/main.yml b/Ansible/roles/arduino/tasks/main.yml index f90803a..d1f1398 100644 --- a/Ansible/roles/arduino/tasks/main.yml +++ b/Ansible/roles/arduino/tasks/main.yml @@ -1,7 +1,7 @@ --- - name: "envoyer du fichier binaire.c" get_url: - url: http://projet-p10.plil.fr/upload/binaire.c + url: http://projet-p10.plil.fr/IMA3_P10/site/upload/binaire.c dest: /home/pi/capteur{{capteur}}/binaire.c mode: '0644' diff --git a/Ansible/roles/arduino_Setup/tasks/main.yml b/Ansible/roles/arduino_Setup/tasks/main.yml index 0384137..38bcd98 100644 --- a/Ansible/roles/arduino_Setup/tasks/main.yml +++ b/Ansible/roles/arduino_Setup/tasks/main.yml @@ -1,7 +1,7 @@ --- - name: "First Install" include: Install.yml - when: capteur==1 + when: setup == 1 - name: "Creation des dossiers pour le capteur" file: diff --git a/site/graphe.php b/site/graphe.php new file mode 100644 index 0000000..b5e30cc --- /dev/null +++ b/site/graphe.php @@ -0,0 +1,58 @@ +SetScale("textlin"); + +$theme_class=new UniversalTheme; + +$graph->SetTheme($theme_class); +$graph->img->SetAntiAliasing(false); +$graph->title->Set('Filled Y-grid'); +$graph->SetBox(false); + +$graph->SetMargin(40,20,36,63); + +$graph->img->SetAntiAliasing(); + +$graph->yaxis->HideZeroLabel(); +$graph->yaxis->HideLine(false); +$graph->yaxis->HideTicks(false,false); + +$graph->xgrid->Show(); +$graph->xgrid->SetLineStyle("solid"); +$graph->xaxis->SetTickLabels(array('A','B','C','D')); +$graph->xgrid->SetColor('#E3E3E3'); + +// Create the first line +$p1 = new LinePlot($datay1); +$graph->Add($p1); +$p1->SetColor("#6495ED"); +$p1->SetLegend('Line 1'); + +// Create the second line +$p2 = new LinePlot($datay2); +$graph->Add($p2); +$p2->SetColor("#B22222"); +$p2->SetLegend('Line 2'); + +// Create the third line +$p3 = new LinePlot($datay3); +$graph->Add($p3); +$p3->SetColor("#FF1493"); +$p3->SetLegend('Line 3'); + +$graph->legend->SetFrameWeight(1); + +// Output line +$graph->Stroke(); + +?> + + -- libgit2 0.21.2