From 982cc9f7e69a8ae2d27361df60add8a71ba16aa8 Mon Sep 17 00:00:00 2001 From: Aircoookie Date: Sat, 14 Dec 2019 22:32:23 +0100 Subject: [PATCH] Updated HTTP request API (markdown) --- HTTP-request-API.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/HTTP-request-API.md b/HTTP-request-API.md index 86d71e8..4abd285 100644 --- a/HTTP-request-API.md +++ b/HTTP-request-API.md @@ -3,7 +3,7 @@ WLED's HTTP API allows you to set many properties of your lights, even more than The basic URL scheme is: `[ipadress]/win`. This will return an XML file with some current values (see bottom of page). Parameters can be added to control some of the variables. - Example (AP): `192.168.4.1/win&A=255` sets the brightness to maximum -- Example (mdns): `led.local/win&A=128&FX=0` sets the brightness to half and the effect to SOLID +- Example (mdns): `led.local/win&A=128&FX=0` sets the brightness to half and the effect to Solid In conjunction with a [router port forwarding](https://github.com/Aircoookie/WLED/wiki/Remote-Access-and-IFTTT) this can be used to automate WLED, for example via IFTTT. @@ -15,7 +15,7 @@ Add one or multiple of the following parameters after the base URL/IP to change Parameter | Value Range | Description | Since Version | --- | --- | --- | --- | &A= | 0 to 255 | Master brightness | 0.2 -&T= | 0, 1, or 2 | Master On/Off/Toggle | 0.3 +&T= | 0, 1, or 2 | Master Off/On/Toggle | 0.3 &R= | 0 to 255 | Primary Red value | 0.2 &G= | 0 to 255 | Primary Green value | 0.2 &B= | 0 to 255 | Primary Blue value | 0.2 @@ -61,11 +61,11 @@ Parameter | Value Range | Description | Since Version Parameter | Value Range | Description | Since Version | --- | --- | --- | --- | -&PS= | 1 to 25 | Saves current setup to preset | 0.4 -&PL= | 0 to 25 | Applies entire preset | 0.4 -&PA= | 1 to 25 | Applies brightness from preset | 0.4 -&PC= | 1 to 25 | Applies colors from preset | 0.4 -&PX= | 1 to 25 | Applies effects from preset | 0.4 +&PS= | 1 to 16 | Saves current setup to preset | 0.4 +&PL= | 0 to 16 | Applies entire preset | 0.4 +&PA= | 1 to 16 | Applies brightness from preset | 0.4 +&PC= | 1 to 16 | Applies colors from preset | 0.4 +&PX= | 1 to 16 | Applies effects from preset | 0.4 &CY= | 0 or 1 | Toggle Preset cycle | 0.6.3 &PA= | 0 or 1 | Cycle applies brightness | 0.7.0 &PC= | 0 or 1 | Cycle applies color | 0.7.0