From 7454ecdd65411180432454b5def0d74a55fff3e9 Mon Sep 17 00:00:00 2001 From: NADAL Jean-Baptiste Date: Tue, 10 Apr 2018 22:54:46 +0200 Subject: [PATCH] rename json file. --- .../domo/ovl/usr/local/share/domo/Timers.json | 22 ------------- .../share/domo/{Devices.json => devices.json} | 12 +++---- .../domo/ovl/usr/local/share/domo/timers.json | 33 +++++++++++++++++++ 3 files changed, 39 insertions(+), 28 deletions(-) delete mode 100644 bsp/board/domo/ovl/usr/local/share/domo/Timers.json rename bsp/board/domo/ovl/usr/local/share/domo/{Devices.json => devices.json} (91%) create mode 100644 bsp/board/domo/ovl/usr/local/share/domo/timers.json diff --git a/bsp/board/domo/ovl/usr/local/share/domo/Timers.json b/bsp/board/domo/ovl/usr/local/share/domo/Timers.json deleted file mode 100644 index 2f5c36a6..00000000 --- a/bsp/board/domo/ovl/usr/local/share/domo/Timers.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "timers" : [ - { - "id": 1, - "active":false, - "device_id": "Sprinklers/7", - "start_time": "17:30", - "recurrence": 1, - "duration": 30, - "action": "start" - }, - { - "id": 2, - "active": true, - "device_id": "Sprinklers/7", - "start_time": "21:48", - "recurrence": 0, - "duration": 1, - "action": "stop" - } - ] -} diff --git a/bsp/board/domo/ovl/usr/local/share/domo/Devices.json b/bsp/board/domo/ovl/usr/local/share/domo/devices.json similarity index 91% rename from bsp/board/domo/ovl/usr/local/share/domo/Devices.json rename to bsp/board/domo/ovl/usr/local/share/domo/devices.json index 7532af4a..542ffa72 100644 --- a/bsp/board/domo/ovl/usr/local/share/domo/Devices.json +++ b/bsp/board/domo/ovl/usr/local/share/domo/devices.json @@ -1,7 +1,7 @@ { - "Lights" : { + "lights" : { "speach_name": "lumière", - "data": [ + "devices": [ { "id": 1, "name": "Bureau JB", @@ -31,9 +31,9 @@ } ] }, - "Shutters" : { + "shutters" : { "speach_name": "volet", - "data": [ + "devices": [ { "id": 1, "name": "Chambre de JB", @@ -46,9 +46,9 @@ } ] }, - "Sprinklers" : { + "sprinklers" : { "speach_name": "station", - "data": [ + "devices": [ { "id": 7, "name": "Zone A", diff --git a/bsp/board/domo/ovl/usr/local/share/domo/timers.json b/bsp/board/domo/ovl/usr/local/share/domo/timers.json new file mode 100644 index 00000000..deceb0c8 --- /dev/null +++ b/bsp/board/domo/ovl/usr/local/share/domo/timers.json @@ -0,0 +1,33 @@ +{ + "timers" : [ + { + "id": 1, + "active":true, + "start_time": "17:30", + "recurrence": 1, + "type": "sprinker", + "sequence": [ + { + "device_id": 7, + "duration": 2 + }, + { + "device_id": 8, + "duration": 1 + } + ] + }, + { + "id": 2, + "active": false, + "start_time": "21:48", + "recurrence": 0, + "type": "switch", + "device": { + "device_id": "light/7", + "switch": true, + "duration": 1 + } + } + ] +}