Updated Timers (markdown)

blakadder 2019-10-27 22:56:09 +01:00
parent 91857c445c
commit 7426e04595
1 changed files with 3 additions and 4 deletions

@ -1,4 +1,4 @@
To control a device locally 16 timers are programmable. They can be configured with the Timer\<x\> 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<x>` 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 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} Timer1 {"Arm":1,"Mode":2,"Time":"-2:23","Window":0,"Days":"11TW11S","Repeat":1,"Output":1,"Action":1}
``` ```
Command|Parameters
<a id="tb-timers">Command|Parameters
:---|:--- :---|:---
Latitude<a id="Latitude"></a>|**5.13.1**<BR>`<value>` = set latitude Latitude<a id="Latitude"></a>|**5.13.1**<BR>`<value>` = set latitude
Longitude<a id="Longitude"></a>|**5.13.1**<BR>`<value>` = set longitude Longitude<a id="Longitude"></a>|**5.13.1**<BR>`<value>` = set longitude
Timers<a id="Timers"></a>|**5.13.0**<BR>Timers control<BR>&emsp; » v6.2.0<BR>`0` = disable all timers<BR>`1` = enable all timers<BR>`2` = toggle all timers<BR> Timers<a id="Timers"></a>|**5.13.0**<BR>Timers control<BR>&emsp; » v6.2.0<BR>`0` = disable all timers<BR>`1` = enable all timers<BR>`2` = toggle all timers<BR>
Timer\<x\><a id="Timer"></a>|**5.13.0**<BR>Parameters for Timer\<x\> where x = `1..16`<BR>&emsp; » v6.2.0<BR>`0` = clear parameters for Timer\<x\><BR>`1..16` = copy Timer\<y\> parameters to Timer\<x\><BR>`{ "name":value ; .. }` = set all or individual parameters using [JSON payload](#timerJSON) with names and values of data pairs from the [table below](#timerJSON) Timer\<x\><a id="Timer"></a>|**5.13.0**<BR>Parameters for Timer\<x\> where x = `1..16`<BR>&emsp; » v6.2.0<BR>`0` = clear parameters for Timer\<x\><BR>`1..16` = copy Timer\<y\> parameters to Timer\<x\><BR>`{ "name":value ; .. }` = set all or individual parameters using [JSON payload](#timerJSON) with names and values of data pairs from the [table below](#timerJSON)
<a id="timerJSON"></a>JSON Name|JSON Value JSON Name|JSON Value
:---|:--- :---|:---
Arm|`0` = disarm or disable timer<BR>`1` = arm or enable timer Arm|`0` = disarm or disable timer<BR>`1` = arm or enable timer
Mode|`0` = use clock time<BR>`1` = Use local sunrise time using `Longitude`, `Latitude` and `Time` offset<BR>`2` = use local sunset time using `Longitude`, `Latitude` and `Time` offset Mode|`0` = use clock time<BR>`1` = Use local sunrise time using `Longitude`, `Latitude` and `Time` offset<BR>`2` = use local sunset time using `Longitude`, `Latitude` and `Time` offset