Commit 65577c6e7c4671648a0ad8f2f85074e668b5afbb
1 parent
838d55c3
MAJ
Showing
6 changed files
with
7 additions
and
5 deletions
Show diff stats
Ansible/MainTask.retry deleted
@@ -1 +0,0 @@ | @@ -1 +0,0 @@ | ||
1 | -172.26.145.111 |
Ansible/ansible.cfg
Ansible/roles/arduino_Setup/tasks/main.yml
@@ -15,4 +15,4 @@ | @@ -15,4 +15,4 @@ | ||
15 | mode: "0755" | 15 | mode: "0755" |
16 | 16 | ||
17 | - name: "execution du script de gestion des ports" | 17 | - name: "execution du script de gestion des ports" |
18 | - shell: /home/pi/capteur{{capteur}}/port.sh | ||
19 | \ No newline at end of file | 18 | \ No newline at end of file |
19 | + shell: /home/pi/capteur{{capteur}}/port.sh |
site/add.php
@@ -40,11 +40,15 @@ session_start(); | @@ -40,11 +40,15 @@ session_start(); | ||
40 | { | 40 | { |
41 | $ini = $nucleo; | 41 | $ini = $nucleo; |
42 | } | 42 | } |
43 | + | ||
43 | $numero = getNumero($_POST['nom']); | 44 | $numero = getNumero($_POST['nom']); |
44 | $ini = $ini.$_POST['raspberry']." capteur=".$numero."-".$_POST['version']." setup=".$setup."\n"; | 45 | $ini = $ini.$_POST['raspberry']." capteur=".$numero."-".$_POST['version']." setup=".$setup."\n"; |
45 | file_put_contents('upload/inventaire.ini', $ini); | 46 | file_put_contents('upload/inventaire.ini', $ini); |
46 | setup($_POST['raspberry']); | 47 | setup($_POST['raspberry']); |
47 | - exec("super cmd.sh"); | 48 | + |
49 | + $temps = getTime($_POST['type']); | ||
50 | + | ||
51 | + exec("super cmd.sh"); | ||
48 | ?> | 52 | ?> |
49 | <div class="alert alert-success" role="alert"> | 53 | <div class="alert alert-success" role="alert"> |
50 | Le capteur a bien été ajouté ! | 54 | Le capteur a bien été ajouté ! |
No preview for this file type
site/upload/inventaire.ini