Replace oudated domain with release version.
Signed-off-by: Jerome Luckenbach <github@luckenba.ch>pull/1355/head
parent
858701a7f2
commit
a2feff9130
|
@ -135,7 +135,7 @@ module.exports = [
|
||||||
'developer/governance',
|
'developer/governance',
|
||||||
{
|
{
|
||||||
title: 'Javadoc',
|
title: 'Javadoc',
|
||||||
path: 'https://next.openhab.org/javadoc/latest/'
|
path: 'https://openhab.org/javadoc/latest/'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
This repository contains the documentation for openHAB 3.x.
|
This repository contains the documentation for openHAB 3.x.
|
||||||
|
|
||||||
The result is available at [https://next.openhab.org/docs/](https://www.openhab.org/docs/) and [https://next.openhab.org/addons/](https://www.openhab.org/addons/).
|
The result is available at [https://openhab.org/docs/](https://www.openhab.org/docs/) and [https://openhab.org/addons/](https://www.openhab.org/addons/).
|
||||||
|
|
||||||
## How it works
|
## How it works
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ We will read about them later.
|
||||||
Correct, this is done in the original repository of the add-on.
|
Correct, this is done in the original repository of the add-on.
|
||||||
You may want to know how to find the right file in all of those repos?
|
You may want to know how to find the right file in all of those repos?
|
||||||
This is fairly easy:
|
This is fairly easy:
|
||||||
on most of the documentation pages on https://next.openhab.org/,
|
on most of the documentation pages on https://openhab.org/,
|
||||||
you will find the following link at the bottom, which will point you directly to the file you want to improve.
|
you will find the following link at the bottom, which will point you directly to the file you want to improve.
|
||||||
|
|
||||||

|

|
||||||
|
|
|
@ -9,7 +9,7 @@ title: Multimedia
|
||||||
|
|
||||||
## Volume
|
## Volume
|
||||||
|
|
||||||
The framework supports some base [functions](https://next.openhab.org/javadoc/latest/org/openhab/core/model/script/actions/audio#method.summary) to control the audio sinks' volume.
|
The framework supports some base [functions](https://openhab.org/javadoc/latest/org/openhab/core/model/script/actions/audio#method.summary) to control the audio sinks' volume.
|
||||||
|
|
||||||
### Actions
|
### Actions
|
||||||
|
|
||||||
|
@ -58,7 +58,7 @@ openhab> openhab:audio stream example.com
|
||||||
|
|
||||||
### Actions
|
### Actions
|
||||||
|
|
||||||
Alternatively the [`playSound()`](https://next.openhab.org/javadoc/latest/org/openhab/core/model/script/actions/audio#playSound(java.lang.String)) or [`playStream()`](https://next.openhab.org/javadoc/latest/org/openhab/core/model/script/actions/audio#playStream(java.lang.String)) functions can be used in DSL rules:
|
Alternatively the [`playSound()`](https://openhab.org/javadoc/latest/org/openhab/core/model/script/actions/audio#playSound(java.lang.String)) or [`playStream()`](https://openhab.org/javadoc/latest/org/openhab/core/model/script/actions/audio#playStream(java.lang.String)) functions can be used in DSL rules:
|
||||||
|
|
||||||
- `playSound(String filename)` : plays a sound from the sounds folder to the default sink
|
- `playSound(String filename)` : plays a sound from the sounds folder to the default sink
|
||||||
- `playSound(String filename, PercentType volume)` : plays a sound with the given volume from the sounds folder to the default sink
|
- `playSound(String filename, PercentType volume)` : plays a sound with the given volume from the sounds folder to the default sink
|
||||||
|
@ -109,7 +109,7 @@ openhab> openhab:voice say Hello world!
|
||||||
|
|
||||||
### Actions
|
### Actions
|
||||||
|
|
||||||
Alternatively you can execute such commands within DSL rules by using the [`say()`](https://next.openhab.org/javadoc/latest/org/openhab/core/voice/voicemanager#say(java.lang.String)) function:
|
Alternatively you can execute such commands within DSL rules by using the [`say()`](https://openhab.org/javadoc/latest/org/openhab/core/voice/voicemanager#say(java.lang.String)) function:
|
||||||
|
|
||||||
```java
|
```java
|
||||||
say("Hello world!")
|
say("Hello world!")
|
||||||
|
@ -151,7 +151,7 @@ openhab> openhab:voice interpret turn on the light
|
||||||
The default human language interpreter will be used.
|
The default human language interpreter will be used.
|
||||||
In case of interpretation error, the error message will be said using the default voice and default audio sink.
|
In case of interpretation error, the error message will be said using the default voice and default audio sink.
|
||||||
|
|
||||||
Again, such a command can also be entered within DSL rules (using the [`interpret()`](https://next.openhab.org/javadoc/latest/org/openhab/core/voice/voicemanager#interpret(java.lang.String)) function)
|
Again, such a command can also be entered within DSL rules (using the [`interpret()`](https://openhab.org/javadoc/latest/org/openhab/core/voice/voicemanager#interpret(java.lang.String)) function)
|
||||||
|
|
||||||
```java
|
```java
|
||||||
interpret("turn on the light")
|
interpret("turn on the light")
|
||||||
|
|
|
@ -395,7 +395,7 @@ There are two ways to discover these methods:
|
||||||
|
|
||||||
- Use the [openHAB VS Code Extension](/docs/configuration/editors.html#editors.html#openhab-vs-code-extension) and the `<ctrl><space>` key combo to list all the available methods
|
- Use the [openHAB VS Code Extension](/docs/configuration/editors.html#editors.html#openhab-vs-code-extension) and the `<ctrl><space>` key combo to list all the available methods
|
||||||
- Look at the JavaDocs for the given type.
|
- Look at the JavaDocs for the given type.
|
||||||
For example, the [JavaDoc for HSBType](https://next.openhab.org/javadoc/latest/org/openhab/core/library/types/hsbtype) shows getRed, getBlue, and getGreen methods.
|
For example, the [JavaDoc for HSBType](https://openhab.org/javadoc/latest/org/openhab/core/library/types/hsbtype) shows getRed, getBlue, and getGreen methods.
|
||||||
These methods can be called in Rules-DSL without the "get" part in name as in `(MyColorItem.state as HSBType).red)`.
|
These methods can be called in Rules-DSL without the "get" part in name as in `(MyColorItem.state as HSBType).red)`.
|
||||||
They retrieve the state of MyColorItem and then casts it as HSBType to be able to use the methods associated with the HSBType.
|
They retrieve the state of MyColorItem and then casts it as HSBType to be able to use the methods associated with the HSBType.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue