You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ We will read about them later.
18
18
Correct, this is done in the original repository of the add-on.
19
19
You may want to know how to find the right file in all of those repos?
20
20
This is fairly easy:
21
-
on most of the documentation pages on https://openhab.org/,
21
+
on most of the documentation pages on <https://openhab.org/>,
22
22
you will find the following link at the bottom, which will point you directly to the file you want to improve.
23
23
24
24

@@ -96,4 +96,4 @@ In short, the following has to be considered:
96
96
- Versions like "2.1.0" are marked by git tags.
97
97
- Based on tags branches like "2.1-patch" are created, to include later discovered changes (like fixed links).
98
98
99
-
When a version is tagged (or updated), a static version of the website has to be generated and copied into the correct sub-folder, this is currently a manual operation described succinctly here: https://github.com/openhab/website/issues/72
99
+
When a version is tagged (or updated), a static version of the website has to be generated and copied into the correct sub-folder, this is currently a manual operation described succinctly here: <https://github.com/openhab/website/issues/72>
Copy file name to clipboardexpand all lines: addons/actions.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -59,8 +59,8 @@ One can configure whether specific log entries are logged out and where they get
59
59
60
60
You have different options to execute a command through an action.
61
61
62
-
-`executeCommandLine(String commandLine)`: Executes a command on the command line without waiting for the command to complete
63
-
For example you could run `executeCommandLine("path/to/my/script.sh")` which then would be executed and the rule would continue processing.
62
+
-`executeCommandLine(String commandLine)`: Executes a command on the command line without waiting for the command to complete.
63
+
For example you could run `executeCommandLine("path/to/my/script.sh")` which then would be executed and the rule would continue processing.
64
64
65
65
-`executeCommandLine(Duration.ofSeconds(timeout), String commandLine)`: Executes a command on the command and waits `timeout` seconds for the command to complete, returning the output from the command as a String
66
66
For example you could run `var ScriptResponse = executeCommandLine(Duration.ofSeconds(60), "path/to/my/script.sh");` would get executed and wait 1 minute for the output to be responded back and write it into the `ScriptResponse` variable.
Copy file name to clipboardexpand all lines: administration/console.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ The method used to access the console depends on how openHAB was started.
19
19
20
20
- When started in interactive mode using the provided command line scripts (e.g. `start.sh` or `start.bat`), openHAB naturally transitions directly to the console prompt.
21
21
- When started as a service (i.e. when openHAB is running as a background process), access to the console is given by running the `$OPENHAB_RUNTIME/bin/client` (`client.bat` for Windows) script or by [connecting via SSH](#connecting-via-ssh).
22
-
Linux package based installations can also use the command `openhab-cli console`.
22
+
Linux package based installations can also use the command `openhab-cli console`.
23
23
24
24
The default username/password is **openhab:habopen**, so enter `habopen` at the password prompt.
Copy file name to clipboardexpand all lines: configuration/habpanel.md
+4-3
Original file line number
Diff line number
Diff line change
@@ -276,9 +276,10 @@ Upon clicking on a custom widget definition, the widget designer opens. It conta
276
276
-**Code:** This tab is an editor for the template's code. You can use the Ctrl-S (or Cmd-S) keyboard shortcut to save the widget while editing the code;
277
277
278
278
-**Settings:** This tab hosts the widget's general settings and configuration settings structure to be defined.
279
-
Click on the **Add setting** to add a new configuration setting. Each configuration setting must have a type, a technical ID, and other optional attributes. Each type of setting determines the UI element presented in the dashboard designer when configuring instances of the custom widget.
280
-
Use the arrow buttons to move configuration settings up or down, and the trash bin icon to remove them.
281
-
When instantiated, the value of configuration settings are set in the template's scope as `config.<setting_id>` (except those of type Icon which define an additional value, the iconset name, as `config.<setting_id>_iconset`);
279
+
Click on the **Add setting** to add a new configuration setting. Each configuration setting must have a type, a technical ID, and other optional attributes.
280
+
Each type of setting determines the UI element presented in the dashboard designer when configuring instances of the custom widget.
281
+
Use the arrow buttons to move configuration settings up or down, and the trash bin icon to remove them.
282
+
When instantiated, the value of configuration settings are set in the template's scope as `config.<setting_id>` (except those of type Icon which define an additional value, the iconset name, as `config.<setting_id>_iconset`);
282
283
283
284
-**Preview:** Upon switching to this tab, a test instance of the widget is rendered in an otherwise blank testbed dashboard. Use the sliders to resize the widget in order to preview it at different sizes. If it defines configuration settings, they must likely be set for this preview using the gears icon: this will bring up the widget instance's configuration dialog as it would appear in the dashboard designer.
Copy file name to clipboardexpand all lines: configuration/migration/index.md
+23-22
Original file line number
Diff line number
Diff line change
@@ -9,9 +9,9 @@ description: Description of Beaking Changes and needed steps for a proper Migrat
9
9
There are different approaches to get your openHAB 2 Environment upgraded to openHAB 3.
10
10
You could start with a fresh install and migrate your environment step-by-step or you can upgrade your running environment and change your configuration where needed.
11
11
12
-
Since this is a major version release you have to pay attention to some `Breaking Changes` that may affect your environment too.
13
-
You can find a general note on the `Breaking Changes` here:
Please read them carefully and check if you are affected by some of the changes, like the changes to some rules namespaces and the handling of time functions.
17
17
@@ -25,8 +25,8 @@ Please be aware of possible changes needed for your specific environment in case
25
25
If you are working with an [openHABian](https://www.openhab.org/docs/installation/openhabian.html) setup, the upgrade is quite easy. Regardless of if you are currently using the openHAB 2.5 stable release or one of the latest 3.0.0 SNAPSHOT or milestone builds, switching to openHAB 3.0.0 stable is done in just a few steps:
26
26
27
27
1. Connect to the SSH command line and execute: `sudo openhabian-config`
28
-
2. When being asked, answer that you want to update.
29
-
3. Select the menu entry"03 - Install openHAB" option.
28
+
1. When being asked, answer that you want to update.
29
+
1. Select the menu entry"03 - Install openHAB" option.
30
30
31
31
### Package-based Installations
32
32
@@ -46,13 +46,13 @@ You must also be on the relevant repository for openHAB, this hasn't changed for
46
46
47
47
For DEB based installers (apt), your `.list` file should contain the line:
48
48
49
-
```
49
+
```shell
50
50
deb https://dl.bintray.com/openhab/apt-repo2 stable main
51
51
```
52
52
53
53
For RPM based installers (yum), your `.repo` file should contain:
@@ -71,7 +71,7 @@ With `openhab2` still installed:
71
71
72
72
##### APT (Debian / Ubuntu and derivatives)
73
73
74
-
```
74
+
```shell
75
75
sudo apt update
76
76
sudo apt install openhab
77
77
```
@@ -80,14 +80,14 @@ The system will ask you if you want to remove `openhab2` as part of this, and yo
80
80
81
81
You can get rid of openHAB2 leftover configuration files by using the `sudo apt purge openhab2` command, but this also gets rid of the `openhab` user, to fix this issue you should follow this with:
82
82
83
-
```
83
+
```shell
84
84
sudo apt install --reinstall openhab
85
85
sudo openhab-cli reset-ownership
86
86
```
87
87
88
88
##### DNF (RedHat, CentOS, Fedora, etc.)
89
89
90
-
```
90
+
```shell
91
91
sudo dnf --allowerasing install openhab
92
92
```
93
93
@@ -96,7 +96,8 @@ DNF does not replace configuration files for you by default, have a look at the
96
96
##### YUM (Older RedHat, CentOS, Fedora, etc.)
97
97
98
98
The equivalent command should be:
99
-
```
99
+
100
+
```shell
100
101
sudo yum swap openhab2 openhab
101
102
```
102
103
@@ -114,20 +115,20 @@ After a successful install, you can use commands like `sudo systemctl start open
114
115
115
116
##### APT (Debian / Ubuntu and derivatives)
116
117
117
-
```sh
118
+
```shell
118
119
sudo apt purge openhab2
119
120
sudo apt update
120
121
sudo apt install openhab
121
122
```
122
123
123
124
##### YUM or DNF (RedHat, CentOS, Fedora, etc)
124
125
125
-
```sh
126
+
```shell
126
127
sudo dnf remove openhab2
127
128
sudo dnf install openhab
128
129
```
130
+
129
131
Replace "dnf" with "yum" for older Red Hat based OSes.
130
-
<aname="manual-installations">
131
132
132
133
### Manual Installations
133
134
@@ -138,20 +139,20 @@ Official update scripts are available that let you update your 2.x installation
138
139
#### Linux/MacOS
139
140
140
141
1. Change to your openHAB root directory (e.g. `cd /opt/openhab`)
141
-
2. Create a backup by calling `sudo ./runtime/bin/backup`.
142
-
2. Run the update command:
142
+
1. Create a backup by calling `sudo ./runtime/bin/backup`.
143
+
1. Run the update command:
143
144
144
-
```
145
+
```shell
145
146
sudo ./runtime/bin/update 3.0.0
146
147
```
147
148
148
149
#### Windows
149
150
150
151
1. Make a backup of your openHAB installation folder.
151
-
2. Run PowerShell as an administrator and change to your openHAB root directory (e.g. `cd C:\openHAB`)
152
-
3. Run the update command:
152
+
1. Run PowerShell as an administrator and change to your openHAB root directory (e.g. `cd C:\openHAB`)
Copy file name to clipboardexpand all lines: configuration/persistence.md
+3-2
Original file line number
Diff line number
Diff line change
@@ -89,8 +89,9 @@ where `<itemlist>` is a comma-separated list consisting of one or more of the fo
89
89
90
90
-`*` - this line should apply to all items in the system
91
91
-`<itemName>` a single Item identified by its name. This Item can be a group Item. But note that only the group value will be persisted. The value of the individual group members will not be persisted using this option.
92
-
-`<groupName>*` - all members of this group will be persisted, but not the group itself. If no strategies are provided, the default strategies that are declared in the first section are applied. Optionally, an alias may be provided if the persistence service requires special names (e.g. a table to be used in a database, a feed id for an IoT service, etc.)
93
-
Note that * is NOT a wildcard match character in this context.
92
+
-`<groupName>*` - all members of this group will be persisted, but not the group itself. If no strategies are provided, the default strategies that are declared in the first section are applied.
93
+
Optionally, an alias may be provided if the persistence service requires special names (e.g. a table to be used in a database, a feed id for an IoT service, etc.)
94
+
Note that `*` is NOT a wildcard match character in this context.
94
95
95
96
The example `Items` section below takes advantage of a `default` entry in the `Strategies` section.
96
97
Assume the `Strategies` section contains the line:
Copy file name to clipboardexpand all lines: configuration/sitemaps.md
+5-5
Original file line number
Diff line number
Diff line change
@@ -143,8 +143,8 @@ This provides the flexibility to present Items in the way desired in your home a
143
143
-`icon` chooses the name of the icon file to show next to the element, [more details](items.html#icons).
144
144
145
145
- When an [Item]({{base}}/configuration/items.html) is defined, you have the opportunity to assign a label and/or an icon at that point.
146
-
If no label or icon are specified in the Sitemap, then the label and/or icon you assigned to the Item will be displayed.
147
-
Setting a value for `label` or `icon` of a Sitemap element will override the values defined for the linked Item.
146
+
If no label or icon are specified in the Sitemap, then the label and/or icon you assigned to the Item will be displayed.
147
+
Setting a value for `label` or `icon` of a Sitemap element will override the values defined for the linked Item.
148
148
149
149
It has to be considered that if the label defined in a Channel or an Item contains text and state, these representations have to be overwritten separately in the Sitemap.
150
150
In the following example a Item which has a label and state defined is overwritten.
@@ -446,13 +446,13 @@ Adds a time-series chart object for the display of logged data.
446
446
-`refresh` defines the refresh period of the Image (in milliseconds).
447
447
448
448
-`service` sets the persistence service to use.
449
-
If no service is specified, openHAB will use the first queryable persistence service it finds.
450
-
Therefore, for an installation with only a single persistence service, this is not required.
449
+
If no service is specified, openHAB will use the first queryable persistence service it finds.
450
+
Therefore, for an installation with only a single persistence service, this is not required.
451
451
452
452
-`period` is the scale of the time axis. Valid values are `h, 4h, 8h, 12h, D, 2D, 3D, W, 2W, M, 2M, 4M or Y`.
453
453
454
454
-`begin` / `end` sets the beginning and end of the time axis.
455
-
Valid values are in the format: "yyyyMMddHHmm" (yyyy = year, MM = month, dd = day, HH = hour (0-23), mm = minutes).
455
+
Valid values are in the format: `yyyyMMddHHmm` (`yyyy` = year, `MM` = month, `dd` = day, `HH` = hour (0-23), `mm` = minutes).
456
456
457
457
-`legend` is used to show or to hide the chart legend.
458
458
Valid values are `true` (always show the legend) and `false` (never show the legend).
Copy file name to clipboardexpand all lines: developers/bindings/binding-xml.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ layout: developersguide
3
3
title: Binding Descriptions
4
4
---
5
5
6
-
##Binding Definitions
6
+
# Binding Definitions
7
7
8
8
Every binding has to provide meta information such as binding id or name.
9
9
@@ -16,7 +16,7 @@ The full Java API for binding definitions can be found in the Java package `org.
16
16
17
17
For the declarative way, you add your binding information in form of a `binding.xml` file to the bundle's folder `/src/main/resources/OH-INF/binding/binding.xml`.
18
18
19
-
###XML Structure for Binding Definitions
19
+
## XML Structure for Binding Definitions
20
20
21
21
```xml
22
22
<?xml version="1.0" encoding="UTF-8"?>
@@ -57,9 +57,9 @@ The full XML schema for binding definitions is specified in the [Binding XSD](ht
57
57
- The attribute `uri` in the section `config-description` is optional, it *should not* be specified in binding definition files because it's an embedded configuration. If the `uri` is *not* specified, the configuration description is registered as `binding:bindingID`, otherwise the given `uri` is used.
58
58
- If a configuration description is already specified somewhere else and the binding wants to (re-)use it, a `config-description-ref` should be used instead.
59
59
- Normally the service id must not be defined, because it is implicitly set to "binding.<binding.id>".
60
-
A binding can register an OSGi service which implements the ManagedService interface and define the service.pid as e.g."binding.hue" to receive the configuration.
60
+
A binding can register an OSGi service which implements the ManagedService interface and define the service.pid as e.g."binding.hue" to receive the configuration.
61
61
62
-
###Example
62
+
## Example
63
63
64
64
The following code gives an example for a binding definition.
0 commit comments