[jsscripting] Upgrade openhab-js to 4.7.3 (#16112)
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
This commit is contained in:
parent
2fd46961fc
commit
222c40bdff
|
@ -231,7 +231,7 @@ var myVar = 'Hello world!';
|
||||||
// Schedule a timer that expires in ten seconds
|
// Schedule a timer that expires in ten seconds
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
console.info(`Timer expired with variable value = "${myVar}"`);
|
console.info(`Timer expired with variable value = "${myVar}"`);
|
||||||
}, 1000);
|
}, 10000);
|
||||||
|
|
||||||
myVar = 'Hello mutation!'; // When the timer runs, it will log "Hello mutation!" instead of "Hello world!"
|
myVar = 'Hello mutation!'; // When the timer runs, it will log "Hello mutation!" instead of "Hello world!"
|
||||||
```
|
```
|
||||||
|
@ -245,7 +245,7 @@ var myVar = 'Hello world!';
|
||||||
// Schedule a timer that expires in ten seconds
|
// Schedule a timer that expires in ten seconds
|
||||||
setTimeout((myVariable) => {
|
setTimeout((myVariable) => {
|
||||||
console.info(`Timer expired with variable value = "${myVariable}"`);
|
console.info(`Timer expired with variable value = "${myVariable}"`);
|
||||||
}, 1000, myVar); // Pass one or more variables as parameters here. They are passed through to the callback function.
|
}, 10000, myVar); // Pass one or more variables as parameters here. They are passed through to the callback function.
|
||||||
|
|
||||||
myVar = 'Hello mutation!'; // When the timer runs, it will log "Hello world!"
|
myVar = 'Hello mutation!'; // When the timer runs, it will log "Hello world!"
|
||||||
```
|
```
|
||||||
|
@ -496,12 +496,12 @@ The Things namespace allows to interact with openHAB Things.
|
||||||
See [openhab-js : things](https://openhab.github.io/openhab-js/things.html) for full API documentation.
|
See [openhab-js : things](https://openhab.github.io/openhab-js/things.html) for full API documentation.
|
||||||
|
|
||||||
- things : <code>object</code>
|
- things : <code>object</code>
|
||||||
- .getThing(uid, nullIfMissing) ⇒ <code>Thing</code>
|
- .getThing(uid) ⇒ <code>Thing|null</code>
|
||||||
- .getThings() ⇒ <code>Array.<Thing></code>
|
- .getThings() ⇒ <code>Array[Thing]</code>
|
||||||
|
|
||||||
#### `getThing(uid, nullIfMissing)`
|
#### `getThing(uid, nullIfMissing)`
|
||||||
|
|
||||||
Calling `getThing(...)` returns a `Thing` object with the following properties:
|
Calling `getThing(uid)` returns a `Thing` object with the following properties:
|
||||||
|
|
||||||
- Thing : <code>object</code>
|
- Thing : <code>object</code>
|
||||||
- .bridgeUID ⇒ <code>String</code>
|
- .bridgeUID ⇒ <code>String</code>
|
||||||
|
@ -1094,7 +1094,7 @@ Operations and conditions can also optionally take functions:
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
rules.when().item("F1_light").changed().then(event => {
|
rules.when().item("F1_light").changed().then(event => {
|
||||||
console.log(event);
|
console.log(event);
|
||||||
}).build("Test Rule", "My Test Rule");
|
}).build("Test Rule", "My Test Rule");
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
</bnd.importpackage>
|
</bnd.importpackage>
|
||||||
<graal.version>22.0.0.2</graal.version> <!-- DO NOT UPGRADE: 22.0.0.2 is the latest version working on armv7l / OpenJDK 11.0.16 & armv7l / Zulu 17.0.5+8 -->
|
<graal.version>22.0.0.2</graal.version> <!-- DO NOT UPGRADE: 22.0.0.2 is the latest version working on armv7l / OpenJDK 11.0.16 & armv7l / Zulu 17.0.5+8 -->
|
||||||
<oh.version>${project.version}</oh.version>
|
<oh.version>${project.version}</oh.version>
|
||||||
<ohjs.version>openhab@4.7.2</ohjs.version>
|
<ohjs.version>openhab@4.7.3</ohjs.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
|
|
Loading…
Reference in New Issue