Update links to target "main" branches (#1460)
* Update links to target "main" branches Signed-off-by: Wouter Born <github@maindrain.net> * Update process_file.rb Signed-off-by: Wouter Born <github@maindrain.net> * Update for all other repos too Signed-off-by: Wouter Born <github@maindrain.net>pull/1463/head
parent
d77e85dac2
commit
6bf5bf026b
|
@ -57,24 +57,18 @@ def process_file(indir, file, outdir, source)
|
|||
addon_type = outdir_parts[1]
|
||||
addon = file.split('/')[0]
|
||||
source = ""
|
||||
if addon == "habmin" then
|
||||
puts " (add-on is habmin)"
|
||||
source = "https://github.com/openhab/org.openhab.ui.habmin/blob/master/README.md"
|
||||
elsif addon == "habpanel" then
|
||||
if addon == "habpanel" then
|
||||
puts " (add-on is habpanel)"
|
||||
source = "https://github.com/openhab/org.openhab.ui.habpanel/blob/master/README.md"
|
||||
source = "https://github.com/openhab/openhab-webui/blob/main/bundles/org.openhab.ui.habpanel/README.md"
|
||||
elsif addon == "zigbee" then
|
||||
puts " (add-on is zigbee)"
|
||||
source = "https://github.com/openhab/org.openhab.binding.zigbee/blob/master/org.openhab.binding.zigbee/README.md"
|
||||
source = "https://github.com/openhab/org.openhab.binding.zigbee/blob/main/org.openhab.binding.zigbee/README.md"
|
||||
elsif addon == "zwave" && !(file =~ /things/) then
|
||||
puts " (add-on is zwave)"
|
||||
source = "https://github.com/openhab/org.openhab.binding.zwave/blob/master/README.md"
|
||||
elsif $esh_features.include?("esh-#{addon_type}-#{addon.gsub('.', '-')}") then
|
||||
puts " (add-on is from ESH)"
|
||||
source = "https://github.com/eclipse/smarthome/blob/master/extensions/#{addon_type}/org.eclipse.smarthome.#{addon_type}.#{addon}/README.md"
|
||||
source = "https://github.com/openhab/org.openhab.binding.zwave/blob/main/README.md"
|
||||
elsif !(file =~ /things/) then
|
||||
puts " (add-on is from openhab-addons)"
|
||||
source = "https://github.com/openhab/openhab-addons/blob/master/addons/#{addon_type}/org.openhab.#{addon_type}.#{addon}/README.md"
|
||||
source = "https://github.com/openhab/openhab-addons/blob/main/addons/#{addon_type}/org.openhab.#{addon_type}.#{addon}/README.md"
|
||||
end
|
||||
|
||||
out.puts "source: #{source}" if source != ""
|
||||
|
|
|
@ -3,7 +3,7 @@ require_relative "./process_file.rb"
|
|||
def process_main_docs(docs_source_dir)
|
||||
|
||||
puts ">>> Migrating the introduction article"
|
||||
process_file(".", "introduction.md", "docs", "https://github.com/openhab/openhab-docs/blob/master/introduction.md")
|
||||
process_file(".", "introduction.md", "docs", "https://github.com/openhab/openhab-docs/blob/main/introduction.md")
|
||||
FileUtils.mv("docs/introduction.md", "docs/readme.md")
|
||||
|
||||
|
||||
|
|
|
@ -209,7 +209,7 @@ then
|
|||
end
|
||||
```
|
||||
|
||||
For information on making use of the [openHAB Cloud service](https://github.com/openhab/openhab-cloud/blob/master/README.md) hosted by the [openHAB Foundation e.V.](https://www.openhabfoundation.org/), visit the [myopenhab.org website](https://www.myopenhab.org).
|
||||
For information on making use of the [openHAB Cloud service](https://github.com/openhab/openhab-cloud/blob/main/README.md) hosted by the [openHAB Foundation e.V.](https://www.openhabfoundation.org/), visit the [myopenhab.org website](https://www.myopenhab.org).
|
||||
|
||||
## Ephemeris
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@ You can find it in the [Microsoft Visual Studio Marketplace](https://marketplace
|
|||

|
||||
1. Search for openHAB and install the extension.
|
||||
|
||||
[Visit the Extensions GitHub Page for further Informations](https://github.com/openhab/openhab-vscode/blob/master/README.md "GitHub Repo for the VS Code Extension")
|
||||
[Visit the Extensions GitHub Page for further Informations](https://github.com/openhab/openhab-vscode/blob/main/README.md "GitHub Repo for the VS Code Extension")
|
||||
|
||||
### Rule Validation
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
layout: documentation
|
||||
title: HABPanel
|
||||
source: https://github.com/openhab/org.openhab.ui.habpanel/blob/master/doc/habpanel.md
|
||||
source: https://github.com/openhab/openhab-webui/blob/main/bundles/org.openhab.ui.habpanel/doc/habpanel.md
|
||||
---
|
||||
|
||||
{% include base.html %}
|
||||
|
|
|
@ -140,7 +140,7 @@ There are two implementations available by default:
|
|||
| Interpreter | Type | Description |
|
||||
|-------------|------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| `rulehli` | Rule-based Interpreter | This mimics the behavior of the Android app - it sends the string as a command to a (configurable, default is "VoiceCommand") item and expects a rule to pick it up and further process it. |
|
||||
| `system` | Built-in Interpreter | This is a simple implementation that understands basic home automation commands like "turn on the light" or "stop the music". It currently supports only English, German and French and the vocabulary is still very limited. The exact syntax still needs to be documented, for the moment you need to refer to the [source code](https://github.com/openhab/openhab-core/blob/master/bundles/org.openhab.core.voice/src/main/java/org/openhab/core/voice/internal/text/StandardInterpreter.java#L48). |
|
||||
| `system` | Built-in Interpreter | This is a simple implementation that understands basic home automation commands like "turn on the light" or "stop the music". It currently supports only English, German and French and the vocabulary is still very limited. The exact syntax still needs to be documented, for the moment you need to refer to the [source code](https://github.com/openhab/openhab-core/blob/main/bundles/org.openhab.core.voice/src/main/java/org/openhab/core/voice/internal/text/StandardInterpreter.java#L48). |
|
||||
|
||||
To test the interpreter, you can enter such a command on the console (assuming you have an item with label 'light'):
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ On this page you will learn how to leverage its functionality to do *real* home
|
|||
### File Location
|
||||
|
||||
Rules are placed in the folder `$OPENHAB_CONF/rules`.
|
||||
The [demo setup](https://demo.openhab.org) already comes with a demo file called [`demo.rules`](https://github.com/openhab/openhab-distro/blob/master/features/distro-resources/src/main/resources/rules/demo.rules), which has a couple of examples that can be a good starting point.
|
||||
The [demo setup](https://demo.openhab.org) already comes with a demo file called [`demo.rules`](https://github.com/openhab/openhab-distro/blob/main/features/distro-resources/src/main/resources/rules/demo.rules), which has a couple of examples that can be a good starting point.
|
||||
|
||||
A rule file can contain multiple rules.
|
||||
All rules of a file share a common execution context, i.e. they can access and exchange variables with each other.
|
||||
|
|
|
@ -23,7 +23,7 @@ Sitemaps follow the syntax described in this article.
|
|||
For easy editing of sitemap definition files, we suggest to use one of the [openHAB supporting editors]({{base}}/configuration/editors.html).
|
||||
These provide full IDE support for sitemap files, including syntax checking and auto-completion.
|
||||
|
||||
The openHAB runtime distribution comes with a demo configuration package containing a sitemap file named [`demo.sitemap`](https://github.com/openhab/openhab-distro/blob/master/features/distro-resources/src/main/resources/sitemaps/demo.sitemap).
|
||||
The openHAB runtime distribution comes with a demo configuration package containing a sitemap file named [`demo.sitemap`](https://github.com/openhab/openhab-distro/blob/main/features/distro-resources/src/main/resources/sitemaps/demo.sitemap).
|
||||
You may find it useful to use this file as a starting point in creating a sitemap that fits your personal home setup.
|
||||
|
||||
The following example illustrates what a typical Sitemap definition might look like:
|
||||
|
@ -85,7 +85,7 @@ openHAB supports these dependencies by providing parameters for dynamic behavior
|
|||
Be sure to check out the [Dynamic Sitemaps](#dynamic-sitemaps) chapter.
|
||||
|
||||
For the technically interested: The Sitemap definition language is an
|
||||
Xtext Domain Specific Language and the sitemap file model can be found [here](https://github.com/openhab/openhab-core/blob/master/bundles/org.openhab.core.model.sitemap/src/org/openhab/core/model/sitemap/Sitemap.xtext).
|
||||
Xtext Domain Specific Language and the sitemap file model can be found [here](https://github.com/openhab/openhab-core/blob/main/bundles/org.openhab.core.model.sitemap/src/org/openhab/core/model/sitemap/Sitemap.xtext).
|
||||
|
||||
### Special Element 'sitemap'
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ If you do not find an answer to your question, do not hesitate to ask it on the
|
|||
1. _Do I have to create XML files in `OH-INF/thing` for all devices or is there any other option?_
|
||||
|
||||
No, the XML files are only one way to describe your devices.
|
||||
Alternatively, you can implement your own [ThingTypeProvider](https://github.com/openhab/openhab-core/blob/master/bundles/org.openhab.core.thing/src/main/java/org/openhab/core/thing/binding/ThingTypeProvider.java), through which you can provide thing descriptions in a programmatic way.
|
||||
Alternatively, you can implement your own [ThingTypeProvider](https://github.com/openhab/openhab-core/blob/main/bundles/org.openhab.core.thing/src/main/java/org/openhab/core/thing/binding/ThingTypeProvider.java), through which you can provide thing descriptions in a programmatic way.
|
||||
Nonetheless, the static XML descriptions of thing types can be picked up for documentation generation and other purposes.
|
||||
So whenever possible, static XML descriptions should be provided.
|
||||
|
||||
|
|
|
@ -939,11 +939,11 @@ Various binding related questions are answered in our [Binding development FAQ](
|
|||
|
||||
Once you are happy with your implementation, you need to integrate it in the Maven build and add it to the official distro.
|
||||
|
||||
- Add a new line in the [bundle pom.xml](https://github.com/openhab/openhab-addons/blob/master/bundles/pom.xml).
|
||||
- Add a new line in the [binding pom.xml](https://github.com/openhab/openhab-addons/blob/master/bom/openhab-addons/pom.xml).
|
||||
- Add a new line in the [bundle pom.xml](https://github.com/openhab/openhab-addons/blob/main/bundles/pom.xml).
|
||||
- Add a new line in the [binding pom.xml](https://github.com/openhab/openhab-addons/blob/main/bom/openhab-addons/pom.xml).
|
||||
- If you have a dependency on a transport bundle (e.g. upnp, mdns or serial) or an external library,
|
||||
make sure to add a line for this dependency in the `/src/main/feature/feature.xml` file in your binding folder. See the other bindings as an example.
|
||||
- Add your binding to the [CODEOWNERS](https://github.com/openhab/openhab-addons/blob/master/CODEOWNERS) file so that you get notified by Github when someone adds a pull request towards your binding.
|
||||
- Add your binding to the [CODEOWNERS](https://github.com/openhab/openhab-addons/blob/main/CODEOWNERS) file so that you get notified by Github when someone adds a pull request towards your binding.
|
||||
|
||||
> Please make sure you add the above entries at their alphabetically correct position!
|
||||
|
||||
|
|
|
@ -66,7 +66,7 @@ Rules are enforced as part of the build process using [Spotless Maven Plugin](ht
|
|||
To check if your code is following the code style run `mvn spotless:check`. If Maven prints `[INFO] Spotless check skipped` then run `mvn spotless:check -Dspotless.check.skip=false` instead as the check isn't mandatory yet.
|
||||
To reformat you code run `mvn spotless:apply`
|
||||
|
||||
Code styles files are located in here: <https://github.com/openhab/static-code-analysis/tree/master/codestyle/src/main/resources>
|
||||
Code styles files are located in here: <https://github.com/openhab/static-code-analysis/tree/main/codestyle/src/main/resources>
|
||||
|
||||
#### Java Code
|
||||
|
||||
|
@ -74,7 +74,7 @@ The rules are defined using the Eclipse Java Formatter definitions. There are pl
|
|||
|
||||
- Official [openHAB Eclipse IDE setup](ide/eclipse.html) is preconfigured
|
||||
- Eclipse standalone installation
|
||||
- You can manually import [openhab_codestyle.xml](https://raw.githubusercontent.com/openhab/static-code-analysis/master/codestyle/src/main/resources/openhab_codestyle.xml) via `Eclipse Preferences -> Java -> Code Style -> Formatter` and [openhab.importorder](https://raw.githubusercontent.com/openhab/static-code-analysis/master/codestyle/src/main/resources/openhab.importorder) via `Eclipse Preferences -> Java -> Code Style -> Organize Imports`
|
||||
- You can manually import [openhab_codestyle.xml](https://raw.githubusercontent.com/openhab/static-code-analysis/main/codestyle/src/main/resources/openhab_codestyle.xml) via `Eclipse Preferences -> Java -> Code Style -> Formatter` and [openhab.importorder](https://raw.githubusercontent.com/openhab/static-code-analysis/main/codestyle/src/main/resources/openhab.importorder) via `Eclipse Preferences -> Java -> Code Style -> Organize Imports`
|
||||
- IntelliJ using plugin <https://plugins.jetbrains.com/plugin/6546-eclipse-code-formatter>
|
||||
- Same files as for the Eclipse standalone installation. Be sure to follow *all- the plugin configuration steps.
|
||||
|
||||
|
@ -84,7 +84,7 @@ The rules are defined using the Eclipse Java Formatter definitions. There are pl
|
|||
- Other `xml` files shall have 1 tab indentation
|
||||
- Line length shall be 120 characters
|
||||
|
||||
The rules are defined at <https://github.com/openhab/static-code-analysis/tree/master/codestyle/src/main/resources> for the Eclipse WTP formatter, but will have to be manually entered into your IDE.
|
||||
The rules are defined at <https://github.com/openhab/static-code-analysis/tree/main/codestyle/src/main/resources> for the Eclipse WTP formatter, but will have to be manually entered into your IDE.
|
||||
|
||||
### Java Coding Style
|
||||
|
||||
|
@ -264,7 +264,7 @@ This sections provides some background and more detailed information about parts
|
|||
### Static Code Analysis
|
||||
|
||||
The openHAB Maven build includes [tooling for static code analysis](https://github.com/openhab/static-code-analysis) that will validate your code against the Coding Guidelines and some additional best practices.
|
||||
Information about the checks can be found [here](https://github.com/openhab/static-code-analysis/blob/master/docs/included-checks.md).
|
||||
Information about the checks can be found [here](https://github.com/openhab/static-code-analysis/blob/main/docs/included-checks.md).
|
||||
|
||||
The tool will generate an individual report for each bundle that you can find in `path/to/bundle/target/code-analysis/report.html` file and a report for the whole build that contains links to the individual reports in the `target/summary_report.html`.
|
||||
The tool categorizes the found issues by priority: 1(error),2(warning) or 3(info).
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
"java.saveActions.organizeImports": true,
|
||||
"java.configuration.checkProjectSettingsExclusions": false,
|
||||
"java.codeGeneration.generateComments": true,
|
||||
"java.format.settings.url": "https://raw.githubusercontent.com/openhab/static-code-analysis/master/codestyle/src/main/resources/openhab_codestyle.xml",
|
||||
"java.format.settings.url": "https://raw.githubusercontent.com/openhab/static-code-analysis/main/codestyle/src/main/resources/openhab_codestyle.xml",
|
||||
"java.format.settings.profile": "openHAB",
|
||||
"[java]": {
|
||||
"editor.defaultFormatter": "redhat.java",
|
||||
|
@ -17,4 +17,4 @@
|
|||
"[xml]": {
|
||||
"editor.defaultFormatter": "redhat.vscode-xml"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -29,7 +29,7 @@ The following steps will only need to be done once to setup both VSCode and your
|
|||
|
||||
Either globally define the formatting options via ```Files->Preferences->Settings->Extendions->Java configuration``` (or in the global ```settings.json```). You can also define them local to a specific bundle by putting those lines in the ```.vscode/settings.json``` file in the bundle (similar to ```tasks.json```/```launch.json``` below).
|
||||
|
||||
Download [settings.json](https://raw.githubusercontent.com/openhab/openhab-docs/master/developers/ide/examples/vscode/settings.json) for the recommended settings (or simply wish to copy the URLs in the above image).
|
||||
Download [settings.json](https://raw.githubusercontent.com/openhab/openhab-docs/main/developers/ide/examples/vscode/settings.json) for the recommended settings (or simply wish to copy the URLs in the above image).
|
||||
|
||||
## Steps for each Bundle
|
||||
|
||||
|
@ -47,7 +47,7 @@ The following steps will show you how to setup a specific bundle for development
|
|||
|
||||

|
||||
|
||||
1. Download [tasks.json](https://raw.githubusercontent.com/openhab/openhab-docs/master/developers/ide/examples/vscode/tasks.json) to the .vscode directory (example: `%BASE%\openhab-addons\bundles\org.openhab.binding.russound\.vscode\tasks.json`)
|
||||
1. Download [tasks.json](https://raw.githubusercontent.com/openhab/openhab-docs/main/developers/ide/examples/vscode/tasks.json) to the .vscode directory (example: `%BASE%\openhab-addons\bundles\org.openhab.binding.russound\.vscode\tasks.json`)
|
||||
|
||||

|
||||
|
||||
|
@ -64,7 +64,7 @@ The following steps will show you how to setup a specific bundle for development
|
|||
1. Start the openHAB instance with the debug option - `start.bat debug` from a console in the openHAB home directory. You should see the following line printed somewhere in the karaf console:
|
||||
`Listening for transport dt_socket at address: xxxx` (where xxxx should be 5005)
|
||||
|
||||
1. Download [launch.json](https://raw.githubusercontent.com/openhab/openhab-docs/master/developers/ide/examples/vscode/launch.json) to the .vscode directory (example: `%BASE%\openhab-addons\bundles\org.openhab.binding.russound\.vscode\launch.json`)
|
||||
1. Download [launch.json](https://raw.githubusercontent.com/openhab/openhab-docs/main/developers/ide/examples/vscode/launch.json) to the .vscode directory (example: `%BASE%\openhab-addons\bundles\org.openhab.binding.russound\.vscode\launch.json`)
|
||||
|
||||

|
||||
|
||||
|
|
|
@ -597,7 +597,7 @@ Your personal configuration will be retained on upgrades, but you should **stop
|
|||
|
||||
```bash
|
||||
cd /opt/openhab
|
||||
sudo sh -c "$(curl -fsSL https://raw.githubusercontent.com/openhab/openhab-distro/master/distributions/openhab/src/main/resources/bin/update)" -- 2.1.0
|
||||
sudo sh -c "$(curl -fsSL https://raw.githubusercontent.com/openhab/openhab-distro/main/distributions/openhab/src/main/resources/bin/update)" -- 2.1.0
|
||||
```
|
||||
|
||||
#### Uninstall
|
||||
|
|
|
@ -133,7 +133,7 @@ Assuming the openHAB directory is in `~/openhab` simply run the following comman
|
|||
|
||||
```shell
|
||||
cd ~/openhab
|
||||
sudo sh -c "$(curl -fsSL https://raw.githubusercontent.com/openhab/openhab-distro/master/distributions/openhab/src/main/resources/bin/update)" -- 2.1.0
|
||||
sudo sh -c "$(curl -fsSL https://raw.githubusercontent.com/openhab/openhab-distro/main/distributions/openhab/src/main/resources/bin/update)" -- 2.1.0
|
||||
```
|
||||
|
||||
## Backup and Restore
|
||||
|
|
|
@ -10,8 +10,6 @@ title: QNAP NAS
|
|||
The [QNAP NAS](https://www.qnap.com) is a NAS server solution for your home, allowing the installation of additional packages.
|
||||
Please find all details about the openHAB package for QNAP [here](https://github.com/openhab/openhab-qnap-qpkg).
|
||||
|
||||

|
||||
|
||||
## How to install
|
||||
|
||||
Check that your NAS has the most recent firmware version.
|
||||
|
@ -29,20 +27,18 @@ Follow the instructions shown if a new version is announced when opening the adm
|
|||
|
||||
1. Open the "Install manually" dialog in the App Center by clicking the gear-wheel on the upper-right corner of the App Center and choose the `qpkg` you have downloaded.
|
||||
|
||||

|
||||

|
||||
|
||||
1. Confirm the installation
|
||||
|
||||

|
||||

|
||||
|
||||
1. Wait while the package is being installed
|
||||
|
||||

|
||||
|
||||
1. When finished just close the dialog and wait for a while until openHAB has completely started.
|
||||
This may take several minutes.
|
||||
|
||||

|
||||

|
||||
|
||||
1. Access openHAB via `http://NAS_IP_or_DNS_address:8090`.
|
||||
If the interface does not start, retry after another minute.
|
||||
|
|
|
@ -62,7 +62,7 @@ There are many different solutions for VPN, so we cannot give any specific advic
|
|||
|
||||
### myopenHAB Cloud Service
|
||||
|
||||
You can use an [openHAB Cloud](https://github.com/openhab/openhab-cloud/blob/master/README.md) instance to which openHAB creates a tunnel connection and which forwards all requests through this tunnel.
|
||||
You can use an [openHAB Cloud](https://github.com/openhab/openhab-cloud/blob/main/README.md) instance to which openHAB creates a tunnel connection and which forwards all requests through this tunnel.
|
||||
openHAB will see these incoming requests as originating from the local loopback interface.
|
||||
|
||||
The simplest way to get hold of such an openHAB Cloud is to register an account at [myopenHAB.org](https://www.myopenhab.org/), which is operated by the [openHAB Foundation](https://www.openhabfoundation.org/).
|
||||
|
|
|
@ -191,8 +191,8 @@ Where that's not supported, you can make the changes through the Item's Page.
|
|||
This is a table descibing the Equipment types and point class and type to enable display of badges and measurements on the location cards.
|
||||
This is based off the sources linked below.
|
||||
|
||||
- <https://github.com/openhab/openhab-webui/blob/master/bundles/org.openhab.ui/web/src/components/cards/glance/location/status-badge.vue#L63>
|
||||
- <https://github.com/openhab/openhab-webui/blob/master/bundles/org.openhab.ui/web/src/components/cards/glance/location/measurement-badge.vue#L48>
|
||||
- <https://github.com/openhab/openhab-webui/blob/main/bundles/org.openhab.ui/web/src/components/cards/glance/location/status-badge.vue#L63>
|
||||
- <https://github.com/openhab/openhab-webui/blob/main/bundles/org.openhab.ui/web/src/components/cards/glance/location/measurement-badge.vue#L48>
|
||||
|
||||
### Badges
|
||||
|
||||
|
|
Loading…
Reference in New Issue