From fbcc6818c942e3d6c8c7bca4609b3e292ffeabdf Mon Sep 17 00:00:00 2001
From: sfromis <47082390+sfromis@users.noreply.github.com>
Date: Thu, 12 Dec 2024 17:00:49 +0100
Subject: [PATCH] Update Commands.md
WebColor20
---
docs/Commands.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docs/Commands.md b/docs/Commands.md
index 87abb438fc..fa771e989f 100644
--- a/docs/Commands.md
+++ b/docs/Commands.md
@@ -239,7 +239,7 @@ TCPConfig|`` = standard 3 characters m
TCPStart|Requires GPIOs `TCP Tx` and `TCP Rx` and can work with hardware or software serial. Also works with [ModBus Bridge](Modbus-Bridge.md)
`, []` = Start listening to port. If `` is defined only allows connections from the provided IPv4 address
`0` = Shut down TCP server and disconnect any existing connection
Supports 2 parallel TCP connections, which can be useful if you need a terminal + a specific protocol (like XMODEM). The 3rd connection will disconnect a previous connection. The number of parallel connections is a compile-time option.
UrlFetch|``
Download a url (http or https) and store the content in the filesystem
ESP32 only
WebCanvas|Configure Web GUI canvas (background) using using a color, "url" or "gradient" CSS elements. Example: `WebCanvas linear-gradient(#F02 7%,#F93,#FF4,#082,#00F,#708 93%)`
-WebColor|Configure Web GUI colors (x = `1..19`)
`#RRGGBB` = Set color for `WebColor`
`1` = Global text (Black)
`2` = Global background (White)
`3` = Form background (Greyish)
`4` = Input text (Black)
`5` = Input background (White)
`6` = Console text (Black)
`7` = Console background (White)
`8` = Warning text (Red)
`9` = Success text (Green)
`10` = Button text (White)
`11` = Button (Blueish)
`12` = Button hovered over (Darker blue-ish)
`13` = Restart/Reset/Delete button (Red-ish)
`14` = Restart/Reset/Delete button hover (Darker red-ish)
`15` = Save button (Green-ish)
`16` = Save button hover (Darker greenish)
`17` = Config timer tab text (White)
`18` = Config timer tab background (Light grey)
`19` = Module title and FriendlyName text (Whiteish)
[User themes](WebUI#themes)
+WebColor|Configure Web GUI colors (x = `1..19`)
`#RRGGBB` = Set color for `WebColor`
`1` = Global text (Black)
`2` = Global background (White)
`3` = Form background (Greyish)
`4` = Input text (Black)
`5` = Input background (White)
`6` = Console text (Black)
`7` = Console background (White)
`8` = Warning text (Red)
`9` = Success text (Green)
`10` = Button text (White)
`11` = Button (Blueish)
`12` = Button hovered over (Darker blue-ish)
`13` = Restart/Reset/Delete button (Red-ish)
`14` = Restart/Reset/Delete button hover (Darker red-ish)
`15` = Save button (Green-ish)
`16` = Save button hover (Darker greenish)
`17` = Config timer tab text (White)
`18` = Config timer tab background (Light grey)
`19` = Module title and FriendlyName text (Whiteish)
`20` = Button color when off (Darkest blueish)
[User themes](WebUI#themes)
WebPassword|Show current web server password
`0` = disable use of password for web UI
`1` = reset password to firmware default (`WEB_PASSWORD`)
`` = set web UI password (32 char limit) for user `WEB_USERNAME` *(Default WEB_USERNAME = `admin`)*
WebQuery|Send HTTP GET, POST, PUT, and PATCH Requests
` []`
`` = HTTP URL to query
`` = HTTP Request method. Must be `GET`, `POST`, `PUT`, or `PATCH`
`[]` *(optional)* = HTTP Request Headers.
`` *(optional)* = HTTP Request Body. Ignored for GET requests
Examples
`WebQuery http://www.mysite.com/api/status GET`: Simple HTTP GET Request
`WebQuery http://www.mysite.com/api/update POST [Authorization:Bearer xyz|Content-Type:application/json]{"message":"body"}`: Sends POST data with an authorization header and Content-Type
`WebQuery http://www.mysite.com/api/set PUT {"message":"body"}`: Sends PUT request with a body, but no headers
WebRefresh|Web page refresh
`1000..10000` = set refresh time in milliseconds *(default = `2345`)*