Timmi
(Timmi)
November 19, 2017, 12:01pm
1
Hi all,
I’m running a RPi3 with openhab2.
The used OS is a Raspbian Stretch.
I’m trying to use the Image type on my sitemap:
http://docs.openhab.org/configuration/sitemaps.html#element-type-image
But the image is not displayed on the sitemap.
I receive the following messages in the log:
2017-11-19 13:00:41.136 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item ‘Cam_Test’ for widget org.eclipse.smarthome.model.sitemap.Image
2017-11-19 13:00:41.137 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item ‘Cam_Test’ for widget org.eclipse.smarthome.model.sitemap.Image
2017-11-19 13:00:41.139 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item for widget org.eclipse.smarthome.model.sitemap.Image
Currently I have no idea what to check further.
This is my Sitemap configuration:
Frame label=“Video” {
Text label=“Cams” icon=“camera” {
Image item=Cam_Test url=“https://raw.githubusercontent.com/wiki/openhab/openhab/images/features.png ”
}
}
I hope someone might be able to help.
Let me know if you need more information.
Best regards
Timmi
Lolodomo
(Lolodomo)
November 19, 2017, 12:58pm
2
What’s the value of your item ?
Timmi
(Timmi)
November 19, 2017, 2:45pm
3
What do you mean with value?
Lolodomo
(Lolodomo)
November 19, 2017, 5:00pm
4
Item state if you prefer.
Timmi
(Timmi)
November 20, 2017, 5:58am
5
The item is a image. So I don’t know what type of state you request.
Lolodomo
(Lolodomo)
November 20, 2017, 6:40am
6
Is it an image or an URL ?
What UI are you using ?
Please show how this item is defined. To what binding channel is it LinkedIn ?
Timmi
(Timmi)
November 20, 2017, 6:50am
7
Hi Lolodomo,
I only defined this Item in the sitemap as show in my first post.
This is the example for this page:
http://docs.openhab.org/configuration/sitemaps.html#element-type-image
There is no further configuration than that.
Using BasicUi and the mobile app.
Best regards
Timmi
Dim
(Angelos)
November 20, 2017, 7:01am
8
I think that you should either item= or url=
if you use item= , the state of this item should be a string with the value of the url (you need to define/create such item in your files)
if you use url= , you simply type the url there
The ERROR that you are getting is because you haven’t defined/created the Cam_Test
item (in an *.items file)
Lolodomo
(Lolodomo)
November 20, 2017, 7:58am
9
If you have the raw image or its URL ser in an item, you must use item= AND url=
If you don’t need item but just want to display an image from its URL, just use url=
Timmi
(Timmi)
November 20, 2017, 8:16am
10
Hi both,
thank you for your answers. I will try this later today.
Best regards
Timmi
Timmi
(Timmi)
November 20, 2017, 7:37pm
11
Hi both,
I just tried the following:
Frame label="Video" {
Text label="Kameras" icon="camera" {
Image url="https://raw.githubusercontent.com/wiki/openhab/openhab/images/features.png"
}
}
This is not working for me. The basicUI does not show any pic. But now there is also no Error message in the log.
Best regards
Timmi