openhab / openhab-webui

Web UIs of openHAB
Eclipse Public License 2.0
213 stars 233 forks source link

[blockly] Add timer context #2575

Closed stefan-hoehn closed 2 weeks ago

stefan-hoehn commented 2 weeks ago

Adds the possibility to provide any information to the timer's statement block that can be used when this block is eventually executed. This has become possible with the awesome addition in the jsscripting lib that @florian-h05 has provided to the createTimer-function.

Here are some examples how this can be used:

image

pinging @rkoshak as you might be interested to notice that.

relativeci[bot] commented 2 weeks ago

#1959 Bundle Size — 10.6MiB (~+0.01%).

735dbcb(current) vs 5282f44 main#1955(baseline)

[!WARNING] Bundle contains 2 duplicate packages – View duplicate packages

Bundle metrics  no changes
                 Current
#1959
     Baseline
#1955
No change  Initial JS 1.86MiB 1.86MiB
No change  Initial CSS 607.87KiB 607.87KiB
No change  Cache Invalidation 18.16% 18.16%
No change  Chunks 223 223
No change  Assets 246 246
No change  Modules 2876 2876
No change  Duplicate Modules 149 149
No change  Duplicate Code 1.86% 1.86%
No change  Packages 95 95
No change  Duplicate Packages 2 2

Bundle size by type  Change 1 change Regression 1 regression
|            |       Current
[#1959](https://app.relative-ci.com/projects/ZNG5hy4VeSJQVQcq1Kvu/jobs/1959-ScBuncB9dwbv4bz3L98x?utm_source=github&utm_medium=pr-report "View bundle analysis report") |      Baseline
[#1955](https://app.relative-ci.com/projects/ZNG5hy4VeSJQVQcq1Kvu/jobs/1955-ky202amTHU8C3r9eN0Jo?utm_source=github&utm_medium=pr-report "View baseline bundle analysis report") | |:--|--:|--:| | Regression  [JS](https://app.relative-ci.com/projects/ZNG5hy4VeSJQVQcq1Kvu/jobs/1959-ScBuncB9dwbv4bz3L98x/assets?ba=%7B%22filters%22%3A%22ft.CSS-0_ft.JS-1_ft.IMG-0_ft.MEDIA-0_ft.FONT-0_ft.HTML-0_ft.OTHER-0%22%7D "View JS assets") | `8.79MiB` (`+0.01%`) | `8.79MiB` | | No change  [CSS](https://app.relative-ci.com/projects/ZNG5hy4VeSJQVQcq1Kvu/jobs/1959-ScBuncB9dwbv4bz3L98x/assets?ba=%7B%22filters%22%3A%22ft.CSS-1_ft.JS-0_ft.IMG-0_ft.MEDIA-0_ft.FONT-0_ft.HTML-0_ft.OTHER-0%22%7D "View CSS assets") | `890.75KiB` | `890.75KiB` | | No change  [Fonts](https://app.relative-ci.com/projects/ZNG5hy4VeSJQVQcq1Kvu/jobs/1959-ScBuncB9dwbv4bz3L98x/assets?ba=%7B%22filters%22%3A%22ft.CSS-0_ft.JS-0_ft.IMG-0_ft.MEDIA-0_ft.FONT-1_ft.HTML-0_ft.OTHER-0%22%7D "View Fonts assets") | `526.1KiB` | `526.1KiB` | | No change  [Media](https://app.relative-ci.com/projects/ZNG5hy4VeSJQVQcq1Kvu/jobs/1959-ScBuncB9dwbv4bz3L98x/assets?ba=%7B%22filters%22%3A%22ft.CSS-0_ft.JS-0_ft.IMG-0_ft.MEDIA-1_ft.FONT-0_ft.HTML-0_ft.OTHER-0%22%7D "View Media assets") | `295.6KiB` | `295.6KiB` | | No change  [IMG](https://app.relative-ci.com/projects/ZNG5hy4VeSJQVQcq1Kvu/jobs/1959-ScBuncB9dwbv4bz3L98x/assets?ba=%7B%22filters%22%3A%22ft.CSS-0_ft.JS-0_ft.IMG-1_ft.MEDIA-0_ft.FONT-0_ft.HTML-0_ft.OTHER-0%22%7D "View IMG assets") | `140.74KiB` | `140.74KiB` | | No change  [HTML](https://app.relative-ci.com/projects/ZNG5hy4VeSJQVQcq1Kvu/jobs/1959-ScBuncB9dwbv4bz3L98x/assets?ba=%7B%22filters%22%3A%22ft.CSS-0_ft.JS-0_ft.IMG-0_ft.MEDIA-0_ft.FONT-0_ft.HTML-1_ft.OTHER-0%22%7D "View HTML assets") | `1.24KiB` | `1.24KiB` | | No change  [Other](https://app.relative-ci.com/projects/ZNG5hy4VeSJQVQcq1Kvu/jobs/1959-ScBuncB9dwbv4bz3L98x/assets?ba=%7B%22filters%22%3A%22ft.CSS-0_ft.JS-0_ft.IMG-0_ft.MEDIA-0_ft.FONT-0_ft.HTML-0_ft.OTHER-1%22%7D "View Other assets") | `871B` | `871B` |

Bundle analysis reportBranch stefan-hoehn:blockly_timer_usingProject dashboard