From 7426e045958ea94d5b4822044421cf25e57d7299 Mon Sep 17 00:00:00 2001 From: blakadder Date: Sun, 27 Oct 2019 22:56:09 +0100 Subject: [PATCH] Updated Timers (markdown) --- Timers.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Timers.md b/Timers.md index 014b17dc..4a407486 100644 --- a/Timers.md +++ b/Timers.md @@ -1,4 +1,4 @@ -To control a device locally 16 timers are programmable. They can be configured with the Timer\ command following by a JSON payload with optional parameters. For example: +To control a device locally 16 timers are programmable. They can be configured with the `Timer` command followed by a JSON payload with optional parameters. For example: Timer 1 will ENABLE output of POWER1 at exactly 2:23 every Tue/Wed and Sat ``` @@ -15,15 +15,14 @@ When `Mode 1` or `Mode 2` is used, `Latitude` and `Longitude` become available. Timer1 {"Arm":1,"Mode":2,"Time":"-2:23","Window":0,"Days":"11TW11S","Repeat":1,"Output":1,"Action":1} ``` - -Command|Parameters +Command|Parameters :---|:--- Latitude|**5.13.1**
`` = set latitude Longitude|**5.13.1**
`` = set longitude Timers|**5.13.0**
Timers control
  » v6.2.0
`0` = disable all timers
`1` = enable all timers
`2` = toggle all timers
Timer\|**5.13.0**
Parameters for Timer\ where x = `1..16`
  » v6.2.0
`0` = clear parameters for Timer\
`1..16` = copy Timer\ parameters to Timer\
`{ "name":value ; .. }` = set all or individual parameters using [JSON payload](#timerJSON) with names and values of data pairs from the [table below](#timerJSON) -JSON Name|JSON Value +JSON Name|JSON Value :---|:--- Arm|`0` = disarm or disable timer
`1` = arm or enable timer Mode|`0` = use clock time
`1` = Use local sunrise time using `Longitude`, `Latitude` and `Time` offset
`2` = use local sunset time using `Longitude`, `Latitude` and `Time` offset