xmlscripting-en
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
xmlscripting-en [2023/08/11 07:34] – [Commands] rjversluis | xmlscripting-en [2024/02/15 10:43] (current) – [Commands] rjversluis | ||
---|---|---|---|
Line 8: | Line 8: | ||
* [[: | * [[: | ||
- | \\ | + | |
- | ^ NOT FOR NOVICE USERS !!! ^ | + | | [[: |
- | \\ | + | |
{{: | {{: | ||
- | \\ | + | ^ NOT FOR NOVICE USERS !!! ^ |
=====Warning===== | =====Warning===== | ||
- Do not replace standard Rocrail functions with XMLScript. | - Do not replace standard Rocrail functions with XMLScript. | ||
Line 323: | Line 323: | ||
\\ | \\ | ||
====break==== | ====break==== | ||
- | Ends a foreach loop with or without condition. The cmt=" | + | Ends a foreach |
This statement has no effect if its not within a foreach loop.\\ | This statement has no effect if its not within a foreach loop.\\ | ||
<code xml> | <code xml> | ||
Line 534: | Line 534: | ||
| Sensor | fb | All, on, off, flip | | | | Sensor | fb | All, on, off, flip | | | ||
| Route | st | go, lock, free, classset, classadd, classdel | open, closed | The lock and free command needs the extra attribute **locid**=" | | Route | st | go, lock, free, classset, classadd, classdel | open, closed | The lock and free command needs the extra attribute **locid**=" | ||
- | | Text | tx | showon, showoff | | Update event by format attribute. \\ The optional **bkid** and **lcid** may be used in the command also. | %%<tx id=" | + | | Text | tx | showon, showoff, blink, on, off, click | | Update event by format attribute. \\ The optional **bkid** and **lcid** may be used in the command also. | %%<tx id=" |
| Variable | vr | random, start, stop \\ start, length (for substring) | | Set by attribute: %%value=" | | Variable | vr | random, start, stop \\ start, length (for substring) | | Set by attribute: %%value=" | ||
| Action control | actionctrl | | | The id in the actionctrl is a reference to an existing action. Condition child nodes may be added. | | | Action control | actionctrl | | | The id in the actionctrl is a reference to an existing action. Condition child nodes may be added. | | ||
Line 547: | Line 547: | ||
| Turntable | tt | All https:// | | Turntable | tt | All https:// | ||
| External | ext | All https:// | | External | ext | All https:// | ||
- | | Weather | weather | setweather, weathertheme | | | + | | Weather | weather | setweather, weathertheme, go, stop | | |
| Light | light | flip, enable, disable | | Enable a light from LightControl. | | | Light | light | flip, enable, disable | | Enable a light from LightControl. | | ||
| LightControl | lightctrl | go, stop | | Enable / disable LightControl. | %%< | | LightControl | lightctrl | go, stop | | Enable / disable LightControl. | %%< | ||
| Model | model | All https:// | | Model | model | All https:// | ||
+ | | MVTrack | mv | reset, sets1, sets2, setdistance, | ||
====Attribute values==== | ====Attribute values==== | ||
Line 613: | Line 614: | ||
=====Variables defined as " | =====Variables defined as " | ||
- | As long as a variable does not need to store any values | + | In order to store a variable |
====Example==== | ====Example==== | ||
<code xml> | <code xml> | ||
< | < | ||
- | <vr id=" | + | <vr id=" |
- | <vr id=" | + | <vr id=" |
</ | </ | ||
</ | </ |
xmlscripting-en.1691732041.txt.gz · Last modified: 2023/08/11 07:34 by rjversluis