Commit Graph

759 Commits (dd49b62a3383faf8d2ae5e65703a42a41e66230a)

Author SHA1 Message Date
Wouter Born af48d85457
Upgrade to Karaf 4.3.4 (#1228)
Syncs the karaf.version so the new Maven plugin is used.

Signed-off-by: Wouter Born <github@maindrain.net>
2021-12-18 11:01:04 +01:00
openhab-bot d6d24cc5aa
New translations en.json (French) (#1238) 2021-12-18 09:41:07 +01:00
Yannick Schaus 1d5f4cd21a
Restore JS highlighting for ECMAScript-2021 + Tern autocomplete (#1237)
Also adds separate "mostly" complete Tern definitions for the JSScripting globals + standard library for JSScripting, assuming they are available as globals (the default).
The old Nashorn definitions or these new ones are loaded depending on the media type.

Signed-off-by: Yannick Schaus <github@schaus.net>
2021-12-17 15:53:31 +01:00
Yannick Schaus d72e9164a7
Fix Blockly timer code (#1236)
Fix #1214.

Signed-off-by: Yannick Schaus <github@schaus.net>
2021-12-17 01:29:25 +01:00
Yannick Schaus 7514f4fabf
Add featured add-ons to sections, reorder automation tab (#1235)
Signed-off-by: Yannick Schaus <github@schaus.net>
2021-12-17 01:28:58 +01:00
Yannick Schaus a482051e2b
Add missing style parameter to oh-icon (#1233)
Fixes #1183.

Signed-off-by: Yannick Schaus <github@schaus.net>
2021-12-16 22:05:55 +01:00
Yannick Schaus 20b8f648c9
Add link: add semantic tags from channel/channel type (#1232)
Fixes #1130.

Signed-off-by: Yannick Schaus <github@schaus.net>
2021-12-16 22:05:45 +01:00
Yannick Schaus 0e226cf48b
Fix add link "compatible item" logic (#1231)
The checks on which item types are allowed to be linked introduced with
#1106 & #1043 have a serious issue that prevents the items of the actual
type of the channel to be linked individually.

Fixes #1204.
Fixes https://github.com/openhab/openhab-core/issues/2568.

Signed-off-by: Yannick Schaus <github@schaus.net>
2021-12-16 22:05:34 +01:00
Jeremy c5c912fa3d
Update position state action mappings default value (#1230)
Signed-off-by: jsetton <jeremy.setton@gmail.com>
2021-12-13 23:45:45 +01:00
dependabot[bot] 3894f0b2c7
Bump swagger-ui-dist from 3.32.5 to 4.1.3 in /bundles/org.openhab.ui/web (#1229)
* Bump swagger-ui-dist from 3.32.5 to 4.1.3 in /bundles/org.openhab.ui/web

Bumps [swagger-ui-dist](https://github.com/swagger-api/swagger-ui) from 3.32.5 to 4.1.3.
- [Release notes](https://github.com/swagger-api/swagger-ui/releases)
- [Commits](https://github.com/swagger-api/swagger-ui/compare/v3.32.5...v4.1.3)

---
updated-dependencies:
- dependency-name: swagger-ui-dist
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-12 23:57:16 +01:00
stefan-hoehn 13cd3003b1
[blockly] add context info block (#1227)
Signed-off-by: Stefan Höhn <stefan@andreaundstefanhoehn.de>
Also-by: Yannick Schaus <github@schaus.net>
2021-12-12 23:29:13 +01:00
dependabot[bot] 2ed7e8d8b7
Bump axios from 0.21.1 to 0.21.2 in /bundles/org.openhab.ui.habot/web (#1200)
Bumps [axios](https://github.com/axios/axios) from 0.21.1 to 0.21.2.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/master/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v0.21.1...v0.21.2)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-12 16:17:20 +01:00
dependabot[bot] 25dcac214e
Bump video.js from 7.10.2 to 7.14.3 in /bundles/org.openhab.ui/web (#1217)
Bumps [video.js](https://github.com/videojs/video.js) from 7.10.2 to 7.14.3.
- [Release notes](https://github.com/videojs/video.js/releases)
- [Changelog](https://github.com/videojs/video.js/blob/main/CHANGELOG.md)
- [Commits](https://github.com/videojs/video.js/compare/v7.10.2...v7.14.3)

---
updated-dependencies:
- dependency-name: video.js
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-12 16:16:33 +01:00
eugen c5e204f083
Add missing homekit configurations (#1226)
Signed-off-by: Eugen Freiter <freiter@gmx.de>
2021-12-12 16:14:19 +01:00
Yannick Schaus 5bf193dd73
Block Libraries - initial implementation (#1225)
This adds a new UI component namespace (ui:blocks) allowing to define user-defined Blockly libraries declaratively using the component/config/slots paradigm and templating for code generation, and ultimately to share them on the Marketplace.
Also adds a dedicated editor for them in the developer tools.

Signed-off-by: Yannick Schaus <github@schaus.net>
2021-12-12 16:09:28 +01:00
Jeremy e2979b0302
Update alexa position state and tilt angle attributes (#1223)
Signed-off-by: jsetton <jeremy.setton@gmail.com>
2021-12-09 21:22:18 +01:00
Jeremy 67ab42d49a
Update thermostat hold attribute (#1222)
Signed-off-by: jsetton <jeremy.setton@gmail.com>
2021-12-07 11:57:10 +01:00
Jeremy 7ee8d9c12f
Update alexa blind and channel attributes (#1220)
Signed-off-by: jsetton <jeremy.setton@gmail.com>
2021-12-05 07:10:23 +01:00
stefan-hoehn 97a36b771f
Blockly enhancements 2 - scripts, ephemeris, persistence (#1212)
Signed-off-by: Stefan Höhn <stefan@andreaundstefanhoehn.de>
Also-by: Yannick Schaus <github@schaus.net>
2021-12-05 03:43:53 +01:00
Wouter Born 51a6d6a20a
Update bnd to 6.1.0 (#1216)
For release notes, see:

https://github.com/bndtools/bnd/wiki/Changes-in-6.1.0

Related to openhab/openhab-core#2583

Signed-off-by: Wouter Born <github@maindrain.net>
2021-11-28 21:58:25 +01:00
stefan-hoehn 1e916dad8a
[blockly] fix audio block code generation (#1211)
Signed-off-by: Stefan Höhn <stefan@andreaundstefanhoehn.de>
2021-11-21 22:33:26 +01:00
Yannick Schaus bf993125b3
Add a Blockly block to define key/value dictionaries (#1209)
Signed-off-by: Yannick Schaus <github@schaus.net>
2021-11-20 19:24:10 +01:00
Jeremy 6a3d03503f
Remove alexa camera stream basic auth parameters (#1208)
Signed-off-by: jsetton <jeremy.setton@gmail.com>
2021-11-19 21:57:38 +01:00
Werner Kapferer e1e1d31607
Update icons F7 to v5.0.5 and Material to v6.1.1 (#1201)
Signed-off-by: Werner Kapferer <werner.kapferer@chello.at>
2021-11-19 21:55:49 +01:00
Wouter Born 9882cb1636
Fix build (#1206)
Signed-off-by: Wouter Born <github@maindrain.net>
2021-11-14 18:41:00 +01:00
Wouter Born 5774f29e64
Upgrade SAT to 0.12.0 (#1193)
See the [0.12.0 milestone](https://github.com/openhab/static-code-analysis/milestone/18?closed=1) for all changes in this release.

Signed-off-by: Wouter Born <github@maindrain.net>
2021-11-14 17:35:14 +01:00
Wouter Born 8d2ecaaa27
Configure default timeout of 15 minutes for all testable and lifecycle methods (#1195)
This helps to identify what tests cause builds to get stuck and it will more quickly end such builds.
When builds get stuck in tests, they would keep running for hours and then eventually when a timeout occurs, the job is killed without knowing why it got stuck.
Furhermore precious Jenkins executors will not keep being occupied by such jobs.

See: https://junit.org/junit5/docs/current/user-guide/#writing-tests-declarative-timeouts

It helps with identifying the root cause of issues like openhab/openhab-core#2551

Signed-off-by: Wouter Born <github@maindrain.net>
2021-11-14 17:30:30 +01:00
Wouter Born a65fb3792e
Suppress bnd warnings for unused imports/exports (#1196)
Ignores warnings like:

```
Warning:  /home/runner/work/openhab-addons/openhab-addons/bom/runtime-index/pom.xml [0:0]: Unused Export-Package instructions: [org.openhab.*]
Warning:  /home/runner/work/openhab-addons/openhab-addons/bom/runtime-index/pom.xml [0:0]: Unused Import-Package instructions: [io.swagger.v3.oas.annotations.*,
```

These are safe to ignore because the import/export packages are globally defined and not every bundle imports/exports all these packages.

The `skipIfEmpty` configuration furthermore prevents warnings when the bnd-maven-plugin runs on projects that don't have any code like BOMs.

More important compiler/SAT warnings standout more when there are fewer useless warnings.

Signed-off-by: Wouter Born <github@maindrain.net>
2021-11-14 17:30:01 +01:00
Wouter Born 36170518cb
Fix/suppress PMD CompareObjectsWithEquals findings (#1190)
Newer PMD versions discover more CompareObjectsWithEquals findings.

Related to https://github.com/openhab/static-code-analysis/pull/423

Signed-off-by: Wouter Born <github@maindrain.net>
2021-11-14 17:29:32 +01:00
J-N-K 68d3ef4234
Fix add-on store UI with add-on services other than the distribution & the marketplace (#1202)
Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
2021-11-14 17:13:35 +01:00
Jeremy 1671c1aaaf
Update alexa integration with new metadata syntax (#1145)
Signed-off-by: jsetton <jeremy.setton@gmail.com>
2021-11-14 17:08:26 +01:00
Gautier 9aeb301771
Addition of graphical layer management for canvas layouts (#1187)
Signed-off-by: Gautier Taravella <tarag@mailbox.org>
2021-11-07 20:14:57 +01:00
stefan-hoehn 074b3f2fec
Expand Blockly with new blocks (part 1) & update to latest version (#1179)
This adds a great number of new openHAB-related blocks to the Blockly toolbox to:
- get info from items & things
- define timer and delays
- send push notifications (needs openHAB Cloud)
- play audio and speak text with text-to-speech
- store values for later retrieval in subsequent runs

If reorganizes the openHAB category into multiple domain-specific categories.

The code for the block definitions & code generation has been refactored heavily.

Update to latest stable Blockly version 6.20210701.0.

Includes code from (and supersedes) #875.

Signed-off-by: Brian Homeyer <bhomeyer@gmail.com>
Signed-off-by: Stefan Höhn <stefan@andreaundstefanhoehn.de>
Signed-off-by: Yannick Schaus <github@schaus.net>
2021-11-07 19:50:52 +01:00
Yannick Schaus 245bd30bf3
Add-on store adjustments (#1192)
- Move non-rule templates automation add-ons to the second section
- Merge all non-widget UI add-ons to the second section
- Use GitHub well-known URLs in the openhab-docs repo (final or final-stable
  branch) for the logo URL - avoids having to cherry-pick new binding logos
  to stable, and CloudFlare caching issues
- Use correct version on next.openhab.org or www.openhab.org when clicking
  the logo in the details page
- Hide images with alt text set to "logo" in description. For marketplace
  entries this can be set with this syntax:
  `![logo](url)` or `![logo|...](url)`
- More prominent "show all" button for expandable sections

Signed-off-by: Yannick Schaus <github@schaus.net>
2021-11-01 00:33:57 +01:00
openhab-bot dc3acca292
New Crowdin updates (#1127)
* New translations en.json (Norwegian)

* New translations en.json (Greek)

* New translations en.json (Greek)

* New translations en.json (Greek)

* New translations en.json (Greek)

* New translations en.json (Greek)

* New translations en.json (Indonesian)

* New translations en.json (Indonesian)

* New translations en.json (Latvian)

* New translations en.json (Greek)

* New translations en.json (Greek)

* New translations en.json (Persian)

* New translations en.json (Persian)

* New translations en.json (Persian)

* New translations en.json (Persian)

* New translations en.json (Persian)

* New translations en.json (Persian)

* New translations en.json (Persian)

* New translations en.json (Persian)

* New translations en.json (Persian)

* New translations en.json (Persian)

* New translations en.json (Persian)

* New translations en.json (Polish)

* New translations en.json (Russian)

* New translations en.json (Russian)

* New translations en.json (Russian)

* New translations en.json (Catalan)

* New translations en.json (Catalan)

* New translations en.json (Catalan)

* New translations en.json (Catalan)

* New translations en.json (Catalan)

* New translations en.json (Catalan)

* New translations en.json (Catalan)

* New translations en.json (Catalan)

* New translations en.json (Catalan)

* New translations en.json (Catalan)

* New translations en.json (Catalan)
2021-10-31 19:34:53 +01:00
Wouter Born 48a95faae4
Update bnd to 6.0.0 (#1176)
For release notes, see:

https://github.com/bndtools/bnd/wiki/Changes-in-6.0.0

Related to openhab/openhab-core#2514

Signed-off-by: Wouter Born <github@maindrain.net>
2021-10-23 13:15:03 +02:00
TheGreyDiamond 4b0214292a
Add action to oh-gauge-card (#1175)
Closes #1107.

Signed-off-by: TheGreyDiamond <s-einkauf@oest-rs.de>
Also-by: Yannick Schaus <github@schaus.net>
2021-10-13 21:09:51 +02:00
Yannick Schaus ed06717ca3
Fix home page initialization logic (#1177)
Regressions were introduced with #1055 where the state tracker wouldn't be started after going back to the home page from another page.
Also add a preloader which should only be displayed the first time.

Should fix #1161 & #1126.

Signed-off-by: Yannick Schaus <github@schaus.net>
2021-10-13 21:06:04 +02:00
Yannick Schaus 38425151c6
Add rule template support (#1173)
* WIP: Add rule template support

Signed-off-by: Yannick Schaus <github@schaus.net>
2021-10-03 14:30:24 +02:00
Gautier 2b78c0910d
New fixed layout: canvas (#1100)
Addition of a fixed canvas layout able to freely position and resize widgets
over a background. Can be used for floorplans or schemas (as an alternative
to floorplan pages), with the controls rendered over the image.

Rework layout type selection - default to responsive - and allow to select
a fixed type layout when the page is empty.

Signed-off-by: Gautier Taravella <tarag@mailbox.org>
Also-off-by: Yannick Schaus <github@schaus.net>
2021-10-01 15:47:57 +02:00
Yannick Schaus d8a16db016
Fix oh-icon not updating (#1167)
Fixes #1162.
Fixes #1164.

Signed-off-by: Yannick Schaus <github@schaus.net>
2021-09-25 00:32:33 +02:00
Yannick Schaus 11b9bbecdf
Replace Add-on Management UI with Add-on Store (#1158)
Depends on https://github.com/openhab/openhab-core/pull/2405.

This replaces the current section of the UI for managing
add-ons with a completely new "store-like" interface.
External data, like logos and detailed descriptions for
distribution add-ons are fetched from well-known locations
on the website or GitHub to provide a "store" look & feel.

The add-on store is orgnanized around 4 categories: bindings,
automation, UI, and others, with a separate search tab.
Each category is splitted into subsections. The availability
of these sections depend on the add-on services that are
registered. The sections currently supports add-ons provided
by the "karaf" & "marketplace" services, as provided by
https://github.com/openhab/openhab-core/pull/2405.
Other add-on services should be supported as well.

Signed-off-by: Yannick Schaus <github@schaus.net>
2021-09-25 00:06:58 +02:00
Wouter Born 738c3990ec
Prevent modified files with Maven builds (#1152)
Related to #241

Signed-off-by: Wouter Born <github@maindrain.net>
2021-09-18 16:14:32 +02:00
Wouter Born c6bc42e7a9
Upgrade to Karaf 4.3.3 (#1163)
Syncs the karaf.version so the new Maven plugin is used.

Signed-off-by: Wouter Born <github@maindrain.net>
2021-09-18 16:13:26 +02:00
Yannick Schaus 0c2b25beb8
Fix oh-icon's f7/material icons on mobile (#1156)
Should fix #1155.

Signed-off-by: Yannick Schaus <github@schaus.net>
2021-09-04 19:57:54 +02:00
Dan Cunningham 35db3b78ac
Restore color support in plan marker icons (#1154)
Signed-off-by: Dan Cunningham <dan@digitaldan.com>
2021-09-04 18:44:22 +02:00
Wouter Born bed03b7c57
Bump and fix habot dependencies (#1153)
Signed-off-by: Wouter Born <github@maindrain.net>
2021-09-04 18:42:11 +02:00
Stefan Triller 60fd5f3c46
Fix mimetype for disabling/enabling things (#1151)
Fixes #1150.

Signed-off-by: Stefan Triller <github@stefantriller.de>
2021-08-31 18:09:40 +02:00
dependabot[bot] cf9ae4a06b
Bump bcprov-jdk15on from 1.54 to 1.67 in /bundles/org.openhab.ui.habot (#1142)
Bumps [bcprov-jdk15on](https://github.com/bcgit/bc-java) from 1.54 to 1.67.
- [Release notes](https://github.com/bcgit/bc-java/releases)
- [Changelog](https://github.com/bcgit/bc-java/blob/master/docs/releasenotes.html)
- [Commits](https://github.com/bcgit/bc-java/commits)

---
updated-dependencies:
- dependency-name: org.bouncycastle:bcprov-jdk15on
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-30 01:04:42 +02:00
Yannick Schaus b402600ff1
Fix detection of protected user API operations (#1148)
The current implementation would set the access token before trying out calling `/rest/sitemaps` which would obviously always succeed, since the call would be made with the token. Therefore the "requireToken" flag would not be set properly and prevent the alternative SSE implementation (which allows headers) to be used.

Fixes #1146.

Signed-off-by: Yannick Schaus <github@schaus.net>
2021-08-30 00:59:18 +02:00