Commit Graph

549 Commits (13cd3003b1718ad65f6b4553a30ad4539298641f)

Author SHA1 Message Date
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
Yannick Schaus 01cee7bb29
oh-icon component improvements, Iconify icon support (#1149)
This allows the oh-icon to display both from more sources than the
OH icon servlet; bundled Framework7/Material icons can also be displayed
by this component (use `f7:` or `material:` prefixes).
Specifying no prefix will assume an OH icon for backward compatibility.

This also introduces Iconify (https://icon-sets.iconify.design) as an
icon source, allowing access to 100,000+ icons from various icon sets,
to display them in widgets like cards or floorplan markers.

The Iconify option requires Internet connectivity on the client to access
the external API but the underlying library will cache the icons in
local/session storage to limit the requests and speed up the rendering.

Update/fix documentation and plan marker default icon registration.

Signed-off-by: Yannick Schaus <github@schaus.net>
2021-08-30 00:58:46 +02:00
Rogier Hofboer f3fe7255a6
Fix failing subsequent builds by upgrading to Gulp 4.x - Fixes #241 (#1113)
Signed-off-by: Rogier Hofboer <rogier@hofboer.nl>
2021-08-25 19:51:53 +02:00
Matthew Skinner e705ec7bb4
[habot] Change "Removing old ephemeral card" log message to debug level (#1138)
Signed-off-by: Matthew Skinner <matt@pcmus.com>
2021-08-25 18:59:29 +02:00
lolodomo 5541f3ea65
[basicUI] Fix color selector placement (#1139)
Fix #934

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2021-08-11 12:40:41 +02:00
lolodomo 7aab7798f7
[basicUI] Fix few SAT warnings (#1141)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2021-08-11 12:38:15 +02:00
lolodomo 36658f571e
[basicUI] Fix handling of buttons when only 1 button (#1132)
Fix #1131

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2021-07-24 10:55:16 +02:00
Wouter Born ffbd450cd0
Apply Spotless (#1123)
Signed-off-by: Wouter Born <github@maindrain.net>
2021-06-28 19:24:46 +02:00
jenkins 2bd5bafd04 [unleash-maven-plugin] Preparation for next development cycle. 2021-06-27 19:54:38 +00:00
hubsif ed049e699a
Add releaseOnly parameter to sliders (#1122)
Add releaseOnly parameter to sliders
Rename interval parameter
Fixes #1114 

Signed-off-by: Hubert Nusser <hubsif@gmx.de>
Also-by: Yannick Schaus <github@schaus.net>
2021-06-27 18:17:32 +02:00
Georgios Moutsos e91e8c5a15
[documentation] Escape quotes in generate.js script (#1116)
Signed-off-by: Georgios Moutsos <georgios.moutsos@gmail.com>
Also-by: Yannick Schaus <github@schaus.net>
2021-06-27 18:16:10 +02:00