Skip to content

Commit

Permalink
Removed overlay support
Browse files Browse the repository at this point in the history
Signed-off-by: Pauli Anttila <pauli.anttila@gmail.com>
  • Loading branch information
paulianttila committed Aug 18, 2017
1 parent 6bcd0d9 commit efbb419
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
3 changes: 0 additions & 3 deletions bundles/org.openhab.ui.dashboard/README.md
Expand Up @@ -10,7 +10,6 @@ Links can be added to the dashboard by editing the `conf/services/dashboard.cfg`
|-----------------------------|---------|-----------------------------------------------------------------------------------------|
| <unique-name>.link-name | String | Name which is shown in the openHAB dashboard. |
| <unique-name>.link-url | String | URL to external service. |
| <unique-name>.link-overlay | String | Image overlay icon. Supported values are empty (no icon), "html5", "android" or "apple" |
| <unique-name>.link-imageurl | String | URL to image which is shown in the dashboard. |

Where `<unique-name>` is link unique identifier (see examples).
Expand All @@ -24,12 +23,10 @@ Browser fetch image from image URL. URL can be direct http link or data URIs acc
```
frontail.link-name=openHAB Log Viewer
frontail.link-url=http://<server-adddress>:9001
frontail.link-overlay=
frontail.link-imageurl=../static/image.png
nodered.link-name=Node-RED
nodered.link-url=http://<server-adddress>:1880
nodered.link-overlay=
nodered.link-imageurl=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAXwAAACfCAIAAA...QmCC
```
Expand Down
Expand Up @@ -61,7 +61,6 @@ public class DashboardService {

private final static String LINK_NAME = "link-name";
private final static String LINK_URL = "link-url";
private final static String LINK_OVERLAY = "link-overlay";
private final static String LINK_IMAGEURL = "link-imageurl";

@Activate
Expand Down Expand Up @@ -193,13 +192,12 @@ private void addTilesForExternalServices(Map<String, Object> properties) {

String name = (String) properties.get(linkname + LINK_NAME);
String url = (String) properties.get(linkname + LINK_URL);
String overlay = (String) properties.get(linkname + LINK_OVERLAY);
String imageUrl = (String) properties.get(linkname + LINK_IMAGEURL);

logger.debug("Add link: {}", name);

addDashboardTile(new ExternalServiceTile.DashboardTileBuilder().withName(name).withUrl(url)
.withOverlay(overlay).withImageUrl(imageUrl).build());
.withImageUrl(imageUrl).build());
}
}
}
Expand Down

0 comments on commit efbb419

Please sign in to comment.