Skip to content

Commit c4fd0e9

Browse files
authored
Merge pull request #4985 from tonhuisman/feature/Docs-and-easycolorcode-updates-feb-2024
[Docs] Documentation and EasyColorCode updates and fixes, Feb 2024
2 parents 9b8b0f0 + 01ce6ff commit c4fd0e9

File tree

4 files changed

+26
-19
lines changed

4 files changed

+26
-19
lines changed

docs/source/Plugin/AdaGFX_commands.repl

+2-2
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
Some display types may limit or extend the maximum accepted size.
8282
"
8383
"
84-
``<trigger>,txtfull,<x>,<y>,<size=1>,<foreColor=current>,<backColor=foreColor>, <textPrintMode=current>,<maxTextWidthPixels=0>,<text>``
84+
``<trigger>,txtfull,<x>,<y>,<size=1>,<foreColor=current>,<backColor=foreColor>,`` ``<textPrintMode=current>,<maxTextWidthPixels=0>,<text>``
8585
","
8686
Write text at position X/Y with all options. Depending on the setting **Text Coordinates in col/row**, these coordinates are pixels (default) or column/rows.
8787

@@ -252,7 +252,7 @@
252252
The file will be read from SD-card, when available, and the bmp file is not found on the internal file storage.
253253
"
254254
"
255-
``<trigger>,btn,<state>,<mode>,<x>,<y>,<w>,<h>,<id>,<type>,<ONcolor=blue>,<OFFcolor=red>, <CaptionColor=white>,<fontsize>,<ONcaption>,<OFFcaption>,<BorderColor=white>, <DisabledColor=0x9410>,<DisabledCaptionColor=0x5A69>,<TaskIndex>,<Group>, <SelectGroup>,<objectname>``
255+
``<trigger>,btn,<state>,<mode>,<x>,<y>,<w>,<h>,<id>,<type>,<ONcolor=blue>,<OFFcolor=red>,`` ``<CaptionColor=white>,<fontsize>,<ONcaption>,<OFFcaption>,<BorderColor=white>,`` ``<DisabledColor=0x9410>,<DisabledCaptionColor=0x5A69>,<TaskIndex>,<Group>,`` ``<SelectGroup>,<objectname>``
256256
","
257257
As a companion to the ESPEasy_TouchHelper, the AdafruitGFX_helper takes care of drawing button objects via this subcommand.
258258

docs/source/Plugin/P164.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ The plugin provides the ``TVOC`` and ``eCO2`` values. A formula can be set to re
103103

104104
In selected builds, per Value is a **Stats** checkbox available, that when checked, gathers the data and presents recent data in a graph, as described here: :ref:`Task Value Statistics: <Task Value Statistics>`
105105

106-
Currently the extra features offered by the sensore are not configurable in this plugin.
106+
Currently the extra features offered by the sensor are not configurable in this plugin.
107107
These may be added later.
108108

109109
Change log

static/espeasy.js

+22-15
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@ var commonAtoms = ["And", "Or"];
66
var commonKeywords = ["If", "Else", "Elseif", "Endif"];
77
var commonCommands = ["AccessInfo", "Background", "Build", "ClearAccessBlock", "ClearRTCam", "Config", "ControllerDisable",
88
"ControllerEnable", "DateTime", "Debug", "Dec", "DeepSleep", "DisablePriorityTask", "DNS", "DST", "EraseSDKWiFi", "ExecuteRules", "Gateway", "I2Cscanner", "Inc",
9-
"IP", "Let", "Load", "LogEntry", "LogPortStatus", "LoopTimerSet", "LoopTimerSet_ms", "MemInfo", "MemInfoDetail", "Name", "Password", "PostToHTTP", "Publish",
9+
"IP", "Let", "Load", "LogEntry", "LogPortStatus", "LoopTimerSet", "LoopTimerSet_ms", "MemInfo", "MemInfoDetail", "Name", "Password", "PostToHTTP", "Publish", "PublishR",
1010
"Reboot", "Reset", "Save", "SendTo", "SendToHTTP", "SendToUDP", "Settings", "Subnet", "Subscribe", "TaskClear", "TaskClearAll",
11-
"TaskDisable", "TaskEnable", "TaskRun", "TaskValueSet", "TaskValueSetAndRun", "ThingspeakReply", "TimerPause", "TimerResume", "TimerSet", "TimerSet_ms", "TimeZone",
12-
"UdpPort", "UdpTest", "Unit", "UseNTP", "WdConfig", "WdRead", "WiFi", "WiFiAPkey", "WiFiAllowAP", "WiFiAPMode", "WiFiConnect", "WiFiDisconnect", "WiFiKey",
13-
"WiFiKey2", "WiFiScan", "WiFiSSID", "WiFiSSID2", "WiFiSTAMode", "WiFi#Disconnected",
11+
"TaskDisable", "TaskEnable", "TaskRun", "TaskValueSet", "TaskValueSetAndRun", "TimerPause", "TimerResume", "TimerSet", "TimerSet_ms", "TimeZone",
12+
"UdpPort", "UdpTest", "Unit", "UseNTP", "WdConfig", "WdRead", "WiFi", "WiFiAllowAP", "WiFiAPMode", "WiFiConnect", "WiFiDisconnect", "WiFiKey",
13+
"WiFiKey2", "WiFiMode", "WiFiScan", "WiFiSSID", "WiFiSSID2", "WiFiSTAMode",
1414
"Event", "AsyncEvent",
1515
"GPIO", "GPIOToggle", "LongPulse", "LongPulse_mS", "Monitor", "Pulse", "PWM", "Servo", "Status", "Tone", "RTTTL", "UnMonitor",];
16-
var commonString2 = ["Clock#Time", "Login#Failed", "MQTT#Connected", "MQTT#Disconnected", "MQTTimport#Connected", "MQTTimport#Disconnected", "Rules#Timer", "System#Boot",
17-
"System#BootMode", "System#Sleep", "System#Wake", "TaskExit#", "TaskInit#", "Time#Initialized", "Time#Set", "WiFi#APmodeDisabled", "WiFi#APmodeEnabled",
18-
"WiFi#ChangedAccesspoint", "WiFi#ChangedWiFichannel", "WiFi#Connected"];
16+
var commonEvents = ["Clock#Time", "Login#Failed", "MQTT#Connected", "MQTT#Disconnected", "MQTTimport#Connected", "MQTTimport#Disconnected", "Rules#Timer", "System#Boot",
17+
"System#BootMode", "System#Sleep", "System#Wake", "TaskExit#", "TaskInit#", "ThingspeakReply", "Time#Initialized", "Time#Set", "WiFi#APmodeDisabled", "WiFi#APmodeEnabled",
18+
"WiFi#ChangedAccesspoint", "WiFi#ChangedWiFichannel", "WiFi#Connected", "WiFi#Disconnected"];
1919
var commonPlugins = [
2020
//P003
2121
"ResetPulseCounter", "SetPulseCounterTotal", "LogPulseStatistic",
@@ -55,6 +55,8 @@ var commonPlugins = [
5555
"7dn", "7dst", "7dsd", "7dtext", "7ddt", "7dt", "7dtfont", "7dtbin", "7don", "7doff", "7output",
5656
//P076
5757
"HLWCalibrate", "HLWReset",
58+
//P077
59+
"csecalibrate", "cseclearpulses", "csereset",
5860
//P079
5961
"WemosMotorShieldCMD", "LolinMotorShieldCMD",
6062
//P082
@@ -106,6 +108,8 @@ var commonPlugins = [
106108
"sht4x", "sht4x,startup",
107109
//P159
108110
"ld2410", "ld2410,factoryreset", "ld2410,logall",
111+
//P166
112+
"gp8403", "gp8403,volt,", "gp8403,mvolt,", "gp8403,range,", "gp8403,preset,", "gp8403,init,",
109113
];
110114
var pluginDispKind = [
111115
//P095
@@ -122,7 +126,8 @@ var pluginDispKind = [
122126
var pluginDispCmd = [
123127
"cmd,on", "cmd,off", "cmd,clear", "cmd,backlight", "cmd,bright", "cmd,deepsleep", "cmd,seq_start", "cmd,seq_end", "cmd,inv", "cmd,rot",
124128
",clear", ",rot", ",tpm", ",txt", ",txp", ",txz", ",txc", ",txs", ",txtfull", ",asciitable", ",font",
125-
",l", ",lh", ",lv", ",lm", ",lmr", ",r", ",rf", ",c", ",cf", ",rf", ",t", ",tf", ",rr", ",rrf", ",px", ",pxh", ",pxv", ",bmp", ",btn"
129+
",l", ",lh", ",lv", ",lm", ",lmr", ",r", ",rf", ",c", ",cf", ",rf", ",t", ",tf", ",rr", ",rrf", ",px", ",pxh", ",pxv", ",bmp", ",btn",
130+
",win", ",defwin", ",delwin",
126131
];
127132
var commonTag = ["On", "Do", "Endon"];
128133
var commonNumber = ["toBin", "toHex", "Constrain", "XOR", "AND:", "OR:", "Ord", "bitRead", "bitSet", "bitClear", "bitWrite", "urlencode"];
@@ -142,9 +147,11 @@ var AnythingElse = [
142147
"%lcltime%", "%sunrise%", "%s_sunrise%", "%m_sunrise%", "%sunset%", "%s_sunset%", "%m_sunset%", "%lcltime_am%",
143148
"%syshour%", "%syshour_0%", "%sysmin%", "%sysmin_0%", "%syssec%", "%syssec_0%", "%sysday%", "%sysday_0%", "%sysmonth%",
144149
"%sysmonth_0%", "%sysyear%", "%sysyear_0%", "%sysyears%", "%sysweekday%", "%sysweekday_s%", "%unixtime%", "%uptime%", "%uptime_ms%",
145-
"%rssi%", "%ip%", "%unit%", "%ssid%", "%bssid%", "%wi_ch%", "%iswifi%", "%vcc%", "%mac%", "%mac_int%", "%isntp%", "%ismqtt%",
150+
"%rssi%", "%ip%", "%unit%", "%unit_0%", "%ssid%", "%bssid%", "%wi_ch%", "%iswifi%", "%vcc%", "%mac%", "%mac_int%", "%isntp%", "%ismqtt%",
146151
"%dns%", "%dns1%", "%dns2%", "%flash_freq%", "%flash_size%", "%flash_chip_vendor%", "%flash_chip_model%", "%fs_free%", "%fs_size%",
147-
"%cpu_id%", "%cpu_freq%", "%cpu_model%", "%cpu_rev%", "%cpu_cores%", "%board_name%",
152+
"%cpu_id%", "%cpu_freq%", "%cpu_model%", "%cpu_rev%", "%cpu_cores%", "%board_name%", "%inttemp%",
153+
//Ethernet
154+
"%ethwifimode%", "%ethconnected%", "%ethduplex%", "%ethspeed%", "%ethstate%", "%ethspeedstate%",
148155
//Standard Conversions
149156
"%c_w_dir%", "%c_c2f%", "%c_ms2Bft%", "%c_dew_th%", "%c_alt_pres_sea%", "%c_sea_pres_alt%", "%c_cm2imp%", "%c_mm2imp%",
150157
"%c_m2day%", "%c_m2dh%", "%c_m2dhm%", "%c_s2dhms%", "%c_2hex%", "%c_u2ip%",
@@ -163,7 +170,7 @@ for (const element2 of pluginDispKind) {
163170
}
164171
}
165172

166-
var EXTRAWORDS = commonAtoms.concat(commonPlugins, commonKeywords, commonCommands, commonString2, commonTag, commonNumber, commonMath, commonWarning, taskSpecifics, AnythingElse);
173+
var EXTRAWORDS = commonAtoms.concat(commonPlugins, commonKeywords, commonCommands, commonEvents, commonTag, commonNumber, commonMath, commonWarning, taskSpecifics, AnythingElse);
167174

168175
var rEdit;
169176
function initCM() {
@@ -219,8 +226,8 @@ function initCM() {
219226
var lCcommonCommands = commonCommands.map(name => name.toLowerCase());
220227
commonCommands = commonCommands.concat(lCcommonCommands);
221228

222-
var lCcommonString2 = commonString2.map(name => name.toLowerCase());
223-
commonString2 = commonString2.concat(lCcommonString2);
229+
var lCcommonString2 = commonEvents.map(name => name.toLowerCase());
230+
commonEvents = commonEvents.concat(lCcommonString2);
224231

225232
var lCcommonPlugins = commonPlugins.map(name => name.toLowerCase());
226233
commonPlugins = commonPlugins.concat(lCcommonPlugins);
@@ -249,7 +256,7 @@ function initCM() {
249256
define('atom', commonAtoms);
250257
define('keyword', commonKeywords);
251258
define('builtin', commonCommands);
252-
define('string-2', commonString2);
259+
define('events', commonEvents);
253260
define('def', commonPlugins);
254261
define('tag', commonTag);
255262
define('number', commonNumber);
@@ -350,7 +357,7 @@ function initCM() {
350357
if (/\w/.test(ch)) {
351358
if (stream.match("#")) {
352359
stream.eatWhile(/[\w.#]/);
353-
return 'string-2';
360+
return 'events';
354361
}
355362
}
356363

0 commit comments

Comments
 (0)