Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Scripting-Language.md #1425

Merged
merged 1 commit into from
Oct 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 24 additions & 3 deletions docs/Scripting-Language.md
Original file line number Diff line number Diff line change
Expand Up @@ -696,8 +696,8 @@ SEL:
`eres` = result of >E section set this var to 1 in section >E to tell Tasmota event is handled (prevents MQTT)

The following variables are cleared after reading true:
`chg[var]` = true if a variables value was changed (numeric vars only)
`diff[var]` = difference since last variable update
`chg[var]` = true if a variables value was changed (numeric vars only)
`diff[var]` = difference since last variable update
`upd[var]` = true if a variable was updated
`boot` = true on BOOT
`tinit` = true on time init
Expand Down Expand Up @@ -928,7 +928,7 @@ Instead of passing the `msg` as a string constant, the body of the e-mail messag
&arrayname specifies an array attachment (as tab delimited text, no file system needed)
$N attach a webcam picture from rambuffer number N (usually 1)

See [Scripting Cookbook Example].(#send-e-mail)
See [Scripting Cookbook Example](#send-e-mail)

**Subscribe, Unsubscribe**
`#define SUPPORT_MQTT_EVENT`
Expand Down Expand Up @@ -1035,6 +1035,27 @@ sel = 50 => get obj nr from caller in callback >lvb or >lvs
sel = 51 => get event nr from caller in callback >lvb or >lvs
sel = 52 => get slider value from caller in callback >lvs



**minimal LVGL support**
`#define USE_LVGL`
to test LVGL a few functions are implemented:
`lvgl(sel ...)` general lvgl call
each object gets a concurrent number 1 ... N with which you can reference the object
sel = 0 => initialize LVGL with current display
sel = 1 => clear screen
sel = 2 xp yp xs ys text => create a button. the button press is reported in section >lvb
sel = 3 xp yp xs ys => create a slider. the slider move is reported in section >lvs
sel = 4 xp yp xs ys min max => create a gauge.
set = 5 objnr value => set gauge value.
sel = 6 xp yp xs ys text => create a label.
sel = 7 objnr text => set label text
sel = 8 create a keyboard, just get a look and feel

sel = 50 => get obj nr from caller in callback >lvb or >lvs
sel = 51 => get event nr from caller in callback >lvb or >lvs
sel = 52 => get slider value from caller in callback >lvs

**ESP32 Webcam support**
`#define USE_WEBCAM`
Template for AI THINKER CAM :
Expand Down
Loading