Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
root authored and root committed Feb 24, 2012
1 parent 443622b commit f1ebe18
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 35 deletions.
18 changes: 1 addition & 17 deletions etc/actuators.xml
@@ -1,22 +1,6 @@
<actuators>
<actuator id="1"> <!-- Température dans la chambre 1 -->
<actuator id="1"> <!-- Chauffage dans la chambre 1 -->
<metric>1</metric>
<room>3</room>
</actuator>
<actuator id="2"> <!-- Ouverture fenêtre dans le salon -->
<metric>4</metric>
<room>1</room>
</actuator>
<actuator id="3"> <!-- Ouverture fenêtre dans la chambre 1 -->
<metric>4</metric>
<room>3</room>
</actuator>
<actuator id="4"> <!-- Interrupteur salon -->
<metric>5</metric>
<room>1</room>
</actuator>
<actuator id="5"> <!-- Luminosité salon -->
<metric>2</metric>
<room>1</room>
</actuator>
</actuators>
12 changes: 1 addition & 11 deletions etc/home.xml
Expand Up @@ -8,20 +8,10 @@
<name>Cuisine</name>
</room>
<room id="3">
<name>Chambre 1</name>
<name>Chambre </name>
</room>
<room id="4">
<name>Chambre 2</name>
</room>
<room id="5">
<name>Salle de bains</name>
</room>
<room id="6">
<name>Porte d'entrée</name>
</room>
</rooms>

<users>
<user username="admin" password="admin" />
</users>
</home>
4 changes: 0 additions & 4 deletions etc/metrics.xml
Expand Up @@ -34,10 +34,6 @@
</metric>
<metric id="5">
<name>Interrupteur</name>
<actuator>
<validator type="nullOrInteger" min="1" max="4" />
<formatter type="nullOrString" format="Activer bouton {{ value }}" no="Couper le courant" />
</actuator>
<sensor>
<formatter type="nullOrString" format="Bouton {{ value }} actif" no="Boutons inactifs" />
</sensor>
Expand Down
10 changes: 9 additions & 1 deletion etc/rules.xml
Expand Up @@ -8,4 +8,12 @@
<metric id="2">1</metric>
</then>
</rule>
</rules>
<rule>
<if>
<metric id="4" cond="eq">1</metric>
</if>
<then>
<metric id="1">1</metric>
</then>
</rule>
</rules>
4 changes: 2 additions & 2 deletions etc/sensors.xml
@@ -1,13 +1,13 @@
<sensors>
<sensor id="1"> <!-- Température dans la chambre 1 -->
<sensor id="1"> <!-- Température dans la chambre -->
<metric>1</metric>
<room>3</room>
</sensor>
<sensor id="2"> <!-- Ouverture fenêtre dans le salon -->
<metric>4</metric>
<room>1</room>
</sensor>
<sensor id="3"> <!-- Ouverture fenêtre dans la chambre 1 -->
<sensor id="3"> <!-- Ouverture fenêtre dans la chambre -->
<metric>4</metric>
<room>3</room>
</sensor>
Expand Down

0 comments on commit f1ebe18

Please sign in to comment.