Skip to content

Commit

Permalink
Update Scripting-Language.md related to USE_FEXTRACT
Browse files Browse the repository at this point in the history
Update doc after check in tasmota_xdrv_driver/xdrv_10_scripter.ino
  • Loading branch information
LngWork committed Jun 16, 2023
1 parent 7cd2784 commit 7e2f0dc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docs/Scripting-Language.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
LARGE_ARRAYS | enables arrays of up to 1000 entries instead of max 127
SCRIPT_LARGE_VNBUFF | enables to use 4096 in stead of 256 bytes buffer for variable names
USE_GOOGLE_CHARTS | enables definition of google charts within web section
USE_FEXTRACT | enables array extraction from database fxt(...)
USE_FEXTRACT | enables array extraction from database fxt(...), fxto() and tso(), tsn(), cts(), s2t() functions
USE_SCRIPT_SPI | enables support for SPI interface
USE_DSIPLAY_DUMP | enables to show epaper screen as BMP image in >w section
TS_FLOAT | may be define as double to use double precision numbers (uses double RAM memory and is slower)
Expand Down Expand Up @@ -948,11 +948,15 @@ The script itself is also stored on the file system with a default size of 8192
`fwb(byte fr)` write byte to file
`frb(fr)` read byte from file
`frw(fr url)` read file from web url
`fxt(fr ts_from ts_to col_offs accum array1 array2 ... arrayn)` read arrays from csv file from timestamp to timestamp with column offset and accumulate values into arrays1 .. N, assumes csv file with timestamp in 1. column and data values in columns 2 to n.(#define USE_FEXTRACT)

**Other commands** (+?? flash)
`#define USE_FEXTRACT`
`fxt(fr ts_from ts_to col_offs accum array1 array2 ... arrayn)` read arrays from csv file from timestamp to timestamp with column offset and accumulate values into arrays1 .. N, assumes csv file with timestamp in 1. column and data values in columns 2 to n.
`fxto(...` same as above with time optimized access
`cts(tstamp flg)` convert timestamp to German locale format back and forth flg=0 to webformat, 1 to German format
`tso(tstamp day flag)` add time offset in days to timestamp optional flg = char 0 zo zero time HH:MM:SS
`tsn(tstamp)` convert timestamp to seconds
`s2t(seconds)` convert seconds to Tasmota timestamp

**Extended commands** (+0,9k flash)
`#define USE_SCRIPT_FATFS_EXT`
Expand Down

0 comments on commit 7e2f0dc

Please sign in to comment.