Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing images when using my.openhab #116

Closed
staehler opened this issue Jun 1, 2015 · 25 comments
Closed

Missing images when using my.openhab #116

staehler opened this issue Jun 1, 2015 · 25 comments
Labels
awaiting feedback bug Indicates an unexpected problem or unintended behavior

Comments

@staehler
Copy link

staehler commented Jun 1, 2015

When using my.openhab on my habdroid all images disappear.
Pictures say more than words.
Connected to WLAN at home:
2015-06-01 16 59 44
Connected via my.openhab:
2015-06-01 17 00 32
What is going wrong? Is there a bug?

Regards, Michael

@belovictor
Copy link
Contributor

@staehler, to understand what's happening I need to have a look at your sitemaps content as it is sent to habdroid in both cases. First get http:///rest/sitemaps and there you will see the URL of your sitemap in section. Then please open this local URL and paste the contents here. After that please open https://my.openhab.org/rest/sitemaps/ and paste the contents here.

@staehler
Copy link
Author

Hi Victor,
thanks for looking at it. I'll attach both sitefiles as unformatted text. Hope you can find something. If you need further information, please contact me.
Regards,
Michael

Sitefile local:
ultrashortSitemap ultrashorthttp://192.168.2.5:8080/rest/sitemaps/ultrashortshortSitemap ultrashorthttp://192.168.2.5:8080/rest/sitemaps/ultrashort/shortfalseshort_0Webviewwebview0http://192.168.2.5:8080/proxy?sitemap=ultrashort.sitemap&widgetId=00&baseUrl=http%3A%2F%2F192.168.2.5%3A8080short_2FrameNetzwerk Alarmeframeshort_2_0_0_0_0_0_0TextUPS Status [on line power]usvStringItemusv_stateOLhttp://192.168.2.5:8080/rest/items/usv_stateshort_2_0_0_0_0_0_0_1TextTestergebnis [Done and passed]usvStringItemusv_testDone and passedhttp://192.168.2.5:8080/rest/items/usv_testshort_3FrameZentralfunktionframeshort_3_0SelectionRolloszenenscene0zu1TV2Sonnenaufgang3Schatten4alle auf10selectNumberItemSzenennummerRolloUninitializedhttp://192.168.2.5:8080/rest/items/SzenennummerRolloshort_3_0_1SwitchAllesallesausOFFausSwitchItemAllesAusUninitializedhttp://192.168.2.5:8080/rest/items/AllesAusshort_3_0_1_2SwitchAlle LichterswitchOFFausSwitchItemAlleLichterUninitializedhttp://192.168.2.5:8080/rest/items/AlleLichtershort_4FrameStatusframeshort_4_0SwitchUrlaubfeiertag-offSwitchItemUrlaubOFFhttp://192.168.2.5:8080/rest/items/Urlaubshort_4_0_1SwitchAnwesendpresent-onSwitchItemAnwesendONhttp://192.168.2.5:8080/rest/items/Anwesendshort_4_0_1_2SwitchVerreistverreist-offSwitchItemVerreistOFFhttp://192.168.2.5:8080/rest/items/Verreistshort_4_0_1_2_3SwitchGästeguest-offSwitchItemGaesteOFFhttp://192.168.2.5:8080/rest/items/Gaesteshort_5FrameHeizungframeshort_5_0SwitchHeizperiodewinter-offSwitchItemIsWinterOFFhttp://192.168.2.5:8080/rest/items/IsWintershort_5_0_1TextWohnzimmervideo0501Wohnzimmervideohttp://192.168.2.5:8080/rest/sitemaps/ultrashort/0501true0501_0SelectionWohnzimmer RTRrtr1Standby2Nacht3KomfortNumberItemBetriebsart_RTR_WohnzimmerUninitializedhttp://192.168.2.5:8080/rest/items/Betriebsart_RTR_Wohnzimmer0501_1TextWohnzimmer Ist [23,4 °C]temperature#ff0000NumberItemIstwertWohnzimmer23.44http://192.168.2.5:8080/rest/items/IstwertWohnzimmer0501_2SetpointBasissollwert [- C]temperature16261NumberItemSollwertWohnzimmerUninitializedhttp://192.168.2.5:8080/rest/items/SollwertWohnzimmer0501_3TextStatus Ventil WZ [geschlossen]heater-off#ff0000SwitchItemStatusHeizenWohnzimmerOFFhttp://192.168.2.5:8080/rest/items/StatusHeizenWohnzimmershort_5_0_1_2TextBadbath0502Badbathhttp://192.168.2.5:8080/rest/sitemaps/ultrashort/0502true0502_0SelectionBad RTRrtr1Standby2Nacht3KomfortNumberItemBetriebsart_RTR_BadUninitializedhttp://192.168.2.5:8080/rest/items/Betriebsart_RTR_Bad0502_1TextBad Ist [22,3 °C]temperature#ffa500NumberItemIstwertBad22.3http://192.168.2.5:8080/rest/items/IstwertBad0502_2SetpointBasissollwert [- C]temperature16261NumberItemSollwertBadUninitializedhttp://192.168.2.5:8080/rest/items/SollwertBad0502_3TextStatus Ventil Bad [undefiniert]heaterSwitchItemStatusHeizenBadUninitializedhttp://192.168.2.5:8080/rest/items/StatusHeizenBad

Sitefile my.openhab:
ultrashortSitemap ultrashorthttps://my.openhab.org/rest/sitemaps/ultrashortshortSitemap ultrashorthttps://my.openhab.org/rest/sitemaps/ultrashort/shortfalseshort_0Webviewwebview0https://my.openhab.org/proxy?sitemap=ultrashort.sitemap&widgetId=00&baseUrl=https%3A%2F%2Fmy.openhab.orgshort_2FrameNetzwerk Alarmeframeshort_2_0_0_0_0_0_0TextUPS Status [on line power]usvStringItemusv_stateOLhttps://my.openhab.org/rest/items/usv_stateshort_2_0_0_0_0_0_0_1TextTestergebnis [Done and passed]usvStringItemusv_testDone and passedhttps://my.openhab.org/rest/items/usv_testshort_3FrameZentralfunktionframeshort_3_0SelectionRolloszenenscene0zu1TV2Sonnenaufgang3Schatten4alle auf10selectNumberItemSzenennummerRolloUninitializedhttps://my.openhab.org/rest/items/SzenennummerRolloshort_3_0_1SwitchAllesallesausOFFausSwitchItemAllesAusUninitializedhttps://my.openhab.org/rest/items/AllesAusshort_3_0_1_2SwitchAlle LichterswitchOFFausSwitchItemAlleLichterUninitializedhttps://my.openhab.org/rest/items/AlleLichtershort_4FrameStatusframeshort_4_0SwitchUrlaubfeiertag-offSwitchItemUrlaubOFFhttps://my.openhab.org/rest/items/Urlaubshort_4_0_1SwitchAnwesendpresent-onSwitchItemAnwesendONhttps://my.openhab.org/rest/items/Anwesendshort_4_0_1_2SwitchVerreistverreist-offSwitchItemVerreistOFFhttps://my.openhab.org/rest/items/Verreistshort_4_0_1_2_3SwitchGästeguest-offSwitchItemGaesteOFFhttps://my.openhab.org/rest/items/Gaesteshort_5FrameHeizungframeshort_5_0SwitchHeizperiodewinter-offSwitchItemIsWinterOFFhttps://my.openhab.org/rest/items/IsWintershort_5_0_1TextWohnzimmervideo0501Wohnzimmervideohttps://my.openhab.org/rest/sitemaps/ultrashort/0501true0501_0SelectionWohnzimmer RTRrtr1Standby2Nacht3KomfortNumberItemBetriebsart_RTR_WohnzimmerUninitializedhttps://my.openhab.org/rest/items/Betriebsart_RTR_Wohnzimmer0501_1TextWohnzimmer Ist [23,4 °C]temperature#ff0000NumberItemIstwertWohnzimmer23.44https://my.openhab.org/rest/items/IstwertWohnzimmer0501_2SetpointBasissollwert [- C]temperature16261NumberItemSollwertWohnzimmerUninitializedhttps://my.openhab.org/rest/items/SollwertWohnzimmer0501_3TextStatus Ventil WZ [geschlossen]heater-off#ff0000SwitchItemStatusHeizenWohnzimmerOFFhttps://my.openhab.org/rest/items/StatusHeizenWohnzimmershort_5_0_1_2TextBadbath0502Badbathhttps://my.openhab.org/rest/sitemaps/ultrashort/0502true0502_0SelectionBad RTRrtr1Standby2Nacht3KomfortNumberItemBetriebsart_RTR_BadUninitializedhttps://my.openhab.org/rest/items/Betriebsart_RTR_Bad0502_1TextBad Ist [22,3 °C]temperature#ffa500NumberItemIstwertBad22.3https://my.openhab.org/rest/items/IstwertBad0502_2SetpointBasissollwert [10,0 C]temperature16261NumberItemSollwertBad10.0https://my.openhab.org/rest/items/SollwertBad0502_3TextStatus Ventil Bad [undefiniert]heaterSwitchItemStatusHeizenBadUninitializedhttps://my.openhab.org/rest/items/StatusHeizenBad

@belovictor
Copy link
Contributor

It should have been an XML? :-O

@staehler
Copy link
Author

Hmmm, that the output of my browser. Does the request need further parameter to get xml?

@cribskip
Copy link
Contributor

  1. May this be related to v1.7 very slow in HTTPS mode #125 ?
  2. @staehler please post inside ´´´ tags for better readability, thanks :)

@staehler
Copy link
Author

Next try ;-) With IE Browser I've got XML formatted output.
sitefile at home:

<?xml version="1.0" encoding="UTF-8" standalone="true"?>

-<sitemap>

<name>ultrashort</name>

<label>Sitemap ultrashort</label>

<link>http://192.168.2.5:8080/rest/sitemaps/ultrashort</link>


-<homepage>

<id>short</id>

<title>Sitemap ultrashort</title>

<link>http://192.168.2.5:8080/rest/sitemaps/ultrashort/short</link>

<leaf>false</leaf>


-<widget>

<widgetId>short_0</widgetId>

<type>Webview</type>

<label/>

<icon>webview</icon>

<height>0</height>

<url>http://192.168.2.5:8080/proxy?sitemap=ultrashort.sitemap&widgetId=00&baseUrl=http%3A%2F%2F192.168.2.5%3A8080</url>

</widget>


-<widget>

<widgetId>short_2</widgetId>

<type>Frame</type>

<label>Netzwerk Alarme</label>

<icon>frame</icon>


-<widget>

<widgetId>short_2_0_0_0_0_0_0</widgetId>

<type>Text</type>

<label>UPS Status [on line power]</label>

<icon>usv</icon>


-<item>

<type>StringItem</type>

<name>usv_state</name>

<state>OL</state>

<link>http://192.168.2.5:8080/rest/items/usv_state</link>

</item>

</widget>


-<widget>

<widgetId>short_2_0_0_0_0_0_0_1</widgetId>

<type>Text</type>

<label>Testergebnis [Done and passed]</label>

<icon>usv</icon>


-<item>

<type>StringItem</type>

<name>usv_test</name>

<state>Done and passed</state>

<link>http://192.168.2.5:8080/rest/items/usv_test</link>

</item>

</widget>

</widget>


-<widget>

<widgetId>short_3</widgetId>

<type>Frame</type>

<label>Zentralfunktion</label>

<icon>frame</icon>


-<widget>

<widgetId>short_3_0</widgetId>

<type>Selection</type>

<label>Rolloszenen</label>

<icon>scene</icon>


-<mapping>

<command>0</command>

<label>zu</label>

</mapping>


-<mapping>

<command>1</command>

<label>TV</label>

</mapping>


-<mapping>

<command>2</command>

<label>Sonnenaufgang</label>

</mapping>


-<mapping>

<command>3</command>

<label>Schatten</label>

</mapping>


-<mapping>

<command>4</command>

<label>alle auf</label>

</mapping>


-<mapping>

<command>10</command>

<label>select</label>

</mapping>


-<item>

<type>NumberItem</type>

<name>SzenennummerRollo</name>

<state>10</state>

<link>http://192.168.2.5:8080/rest/items/SzenennummerRollo</link>

</item>

</widget>


-<widget>

<widgetId>short_3_0_1</widgetId>

<type>Switch</type>

<label>Alles</label>

<icon>allesaus</icon>


-<mapping>

<command>OFF</command>

<label>aus</label>

</mapping>


-<item>

<type>SwitchItem</type>

<name>AllesAus</name>

<state>Uninitialized</state>

<link>http://192.168.2.5:8080/rest/items/AllesAus</link>

</item>

</widget>


-<widget>

<widgetId>short_3_0_1_2</widgetId>

<type>Switch</type>

<label>Alle Lichter</label>

<icon>switch</icon>


-<mapping>

<command>OFF</command>

<label>aus</label>

</mapping>


-<item>

<type>SwitchItem</type>

<name>AlleLichter</name>

<state>Uninitialized</state>

<link>http://192.168.2.5:8080/rest/items/AlleLichter</link>

</item>

</widget>

</widget>


-<widget>

<widgetId>short_4</widgetId>

<type>Frame</type>

<label>Status</label>

<icon>frame</icon>


-<widget>

<widgetId>short_4_0</widgetId>

<type>Switch</type>

<label>Urlaub</label>

<icon>feiertag-off</icon>


-<item>

<type>SwitchItem</type>

<name>Urlaub</name>

<state>OFF</state>

<link>http://192.168.2.5:8080/rest/items/Urlaub</link>

</item>

</widget>


-<widget>

<widgetId>short_4_0_1</widgetId>

<type>Switch</type>

<label>Anwesend</label>

<icon>present-on</icon>


-<item>

<type>SwitchItem</type>

<name>Anwesend</name>

<state>ON</state>

<link>http://192.168.2.5:8080/rest/items/Anwesend</link>

</item>

</widget>


-<widget>

<widgetId>short_4_0_1_2</widgetId>

<type>Switch</type>

<label>Verreist</label>

<icon>verreist-off</icon>


-<item>

<type>SwitchItem</type>

<name>Verreist</name>

<state>OFF</state>

<link>http://192.168.2.5:8080/rest/items/Verreist</link>

</item>

</widget>


-<widget>

<widgetId>short_4_0_1_2_3</widgetId>

<type>Switch</type>

<label>Gäste</label>

<icon>guest-off</icon>


-<item>

<type>SwitchItem</type>

<name>Gaeste</name>

<state>OFF</state>

<link>http://192.168.2.5:8080/rest/items/Gaeste</link>

</item>

</widget>

</widget>


-<widget>

<widgetId>short_5</widgetId>

<type>Frame</type>

<label>Heizung</label>

<icon>frame</icon>


-<widget>

<widgetId>short_5_0</widgetId>

<type>Switch</type>

<label>Heizperiode</label>

<icon>winter-off</icon>


-<item>

<type>SwitchItem</type>

<name>IsWinter</name>

<state>OFF</state>

<link>http://192.168.2.5:8080/rest/items/IsWinter</link>

</item>

</widget>


-<widget>

<widgetId>short_5_0_1</widgetId>

<type>Text</type>

<label>Wohnzimmer</label>

<icon>video</icon>


-<linkedPage>

<id>0501</id>

<title>Wohnzimmer</title>

<icon>video</icon>

<link>http://192.168.2.5:8080/rest/sitemaps/ultrashort/0501</link>

<leaf>true</leaf>


-<widget>

<widgetId>0501_0</widgetId>

<type>Selection</type>

<label>Wohnzimmer RTR</label>

<icon>rtr</icon>


-<mapping>

<command>1</command>

<label>Standby</label>

</mapping>


-<mapping>

<command>2</command>

<label>Nacht</label>

</mapping>


-<mapping>

<command>3</command>

<label>Komfort</label>

</mapping>


-<item>

<type>NumberItem</type>

<name>Betriebsart_RTR_Wohnzimmer</name>

<state>1</state>

<link>http://192.168.2.5:8080/rest/items/Betriebsart_RTR_Wohnzimmer</link>

</item>

</widget>


-<widget>

<widgetId>0501_1</widgetId>

<type>Text</type>

<label>Wohnzimmer Ist [25,8 °C]</label>

<icon>temperature</icon>

<valuecolor>#ff0000</valuecolor>


-<item>

<type>NumberItem</type>

<name>IstwertWohnzimmer</name>

<state>25.82</state>

<link>http://192.168.2.5:8080/rest/items/IstwertWohnzimmer</link>

</item>

</widget>


-<widget>

<widgetId>0501_2</widgetId>

<type>Setpoint</type>

<label>Basissollwert [22,0 C]</label>

<icon>temperature</icon>

<minValue>16</minValue>

<maxValue>26</maxValue>

<step>1</step>


-<item>

<type>NumberItem</type>

<name>SollwertWohnzimmer</name>

<state>22.0</state>

<link>http://192.168.2.5:8080/rest/items/SollwertWohnzimmer</link>

</item>

</widget>


-<widget>

<widgetId>0501_3</widgetId>

<type>Text</type>

<label>Status Ventil WZ [geschlossen]</label>

<icon>heater-off</icon>

<valuecolor>#ff0000</valuecolor>


-<item>

<type>SwitchItem</type>

<name>StatusHeizenWohnzimmer</name>

<state>OFF</state>

<link>http://192.168.2.5:8080/rest/items/StatusHeizenWohnzimmer</link>

</item>

</widget>

</linkedPage>

</widget>


-<widget>

<widgetId>short_5_0_1_2</widgetId>

<type>Text</type>

<label>Bad</label>

<icon>bath</icon>


-<linkedPage>

<id>0502</id>

<title>Bad</title>

<icon>bath</icon>

<link>http://192.168.2.5:8080/rest/sitemaps/ultrashort/0502</link>

<leaf>true</leaf>


-<widget>

<widgetId>0502_0</widgetId>

<type>Selection</type>

<label>Bad RTR</label>

<icon>rtr</icon>


-<mapping>

<command>1</command>

<label>Standby</label>

</mapping>


-<mapping>

<command>2</command>

<label>Nacht</label>

</mapping>


-<mapping>

<command>3</command>

<label>Komfort</label>

</mapping>


-<item>

<type>NumberItem</type>

<name>Betriebsart_RTR_Bad</name>

<state>1</state>

<link>http://192.168.2.5:8080/rest/items/Betriebsart_RTR_Bad</link>

</item>

</widget>


-<widget>

<widgetId>0502_1</widgetId>

<type>Text</type>

<label>Bad Ist [23,6 °C]</label>

<icon>temperature</icon>

<valuecolor>#ff0000</valuecolor>


-<item>

<type>NumberItem</type>

<name>IstwertBad</name>

<state>23.64</state>

<link>http://192.168.2.5:8080/rest/items/IstwertBad</link>

</item>

</widget>


-<widget>

<widgetId>0502_2</widgetId>

<type>Setpoint</type>

<label>Basissollwert [10,0 C]</label>

<icon>temperature</icon>

<minValue>16</minValue>

<maxValue>26</maxValue>

<step>1</step>


-<item>

<type>NumberItem</type>

<name>SollwertBad</name>

<state>10.0</state>

<link>http://192.168.2.5:8080/rest/items/SollwertBad</link>

</item>

</widget>


-<widget>

<widgetId>0502_3</widgetId>

<type>Text</type>

<label>Status Ventil Bad [geschlossen]</label>

<icon>heater-off</icon>

<valuecolor>#ff0000</valuecolor>


-<item>

<type>SwitchItem</type>

<name>StatusHeizenBad</name>

<state>OFF</state>

<link>http://192.168.2.5:8080/rest/items/StatusHeizenBad</link>

</item>

</widget>

</linkedPage>

</widget>

</widget>

</homepage>

</sitemap>

sitefile my.openhab

<?xml version="1.0" encoding="UTF-8" standalone="true"?>

-<sitemap>

<name>ultrashort</name>

<label>Sitemap ultrashort</label>

<link>https://my.openhab.org/rest/sitemaps/ultrashort</link>


-<homepage>

<id>short</id>

<title>Sitemap ultrashort</title>

<link>https://my.openhab.org/rest/sitemaps/ultrashort/short</link>

<leaf>false</leaf>


-<widget>

<widgetId>short_0</widgetId>

<type>Webview</type>

<label/>

<icon>webview</icon>

<height>0</height>

<url>https://my.openhab.org/proxy?sitemap=ultrashort.sitemap&widgetId=00&baseUrl=https%3A%2F%2Fmy.openhab.org</url>

</widget>


-<widget>

<widgetId>short_2</widgetId>

<type>Frame</type>

<label>Netzwerk Alarme</label>

<icon>frame</icon>


-<widget>

<widgetId>short_2_0_0_0_0_0_0</widgetId>

<type>Text</type>

<label>UPS Status [on line power]</label>

<icon>usv</icon>


-<item>

<type>StringItem</type>

<name>usv_state</name>

<state>OL</state>

<link>https://my.openhab.org/rest/items/usv_state</link>

</item>

</widget>


-<widget>

<widgetId>short_2_0_0_0_0_0_0_1</widgetId>

<type>Text</type>

<label>Testergebnis [Done and passed]</label>

<icon>usv</icon>


-<item>

<type>StringItem</type>

<name>usv_test</name>

<state>Done and passed</state>

<link>https://my.openhab.org/rest/items/usv_test</link>

</item>

</widget>

</widget>


-<widget>

<widgetId>short_3</widgetId>

<type>Frame</type>

<label>Zentralfunktion</label>

<icon>frame</icon>


-<widget>

<widgetId>short_3_0</widgetId>

<type>Selection</type>

<label>Rolloszenen</label>

<icon>scene</icon>


-<mapping>

<command>0</command>

<label>zu</label>

</mapping>


-<mapping>

<command>1</command>

<label>TV</label>

</mapping>


-<mapping>

<command>2</command>

<label>Sonnenaufgang</label>

</mapping>


-<mapping>

<command>3</command>

<label>Schatten</label>

</mapping>


-<mapping>

<command>4</command>

<label>alle auf</label>

</mapping>


-<mapping>

<command>10</command>

<label>select</label>

</mapping>


-<item>

<type>NumberItem</type>

<name>SzenennummerRollo</name>

<state>10</state>

<link>https://my.openhab.org/rest/items/SzenennummerRollo</link>

</item>

</widget>


-<widget>

<widgetId>short_3_0_1</widgetId>

<type>Switch</type>

<label>Alles</label>

<icon>allesaus</icon>


-<mapping>

<command>OFF</command>

<label>aus</label>

</mapping>


-<item>

<type>SwitchItem</type>

<name>AllesAus</name>

<state>Uninitialized</state>

<link>https://my.openhab.org/rest/items/AllesAus</link>

</item>

</widget>


-<widget>

<widgetId>short_3_0_1_2</widgetId>

<type>Switch</type>

<label>Alle Lichter</label>

<icon>switch</icon>


-<mapping>

<command>OFF</command>

<label>aus</label>

</mapping>


-<item>

<type>SwitchItem</type>

<name>AlleLichter</name>

<state>Uninitialized</state>

<link>https://my.openhab.org/rest/items/AlleLichter</link>

</item>

</widget>

</widget>


-<widget>

<widgetId>short_4</widgetId>

<type>Frame</type>

<label>Status</label>

<icon>frame</icon>


-<widget>

<widgetId>short_4_0</widgetId>

<type>Switch</type>

<label>Urlaub</label>

<icon>feiertag-off</icon>


-<item>

<type>SwitchItem</type>

<name>Urlaub</name>

<state>OFF</state>

<link>https://my.openhab.org/rest/items/Urlaub</link>

</item>

</widget>


-<widget>

<widgetId>short_4_0_1</widgetId>

<type>Switch</type>

<label>Anwesend</label>

<icon>present-on</icon>


-<item>

<type>SwitchItem</type>

<name>Anwesend</name>

<state>ON</state>

<link>https://my.openhab.org/rest/items/Anwesend</link>

</item>

</widget>


-<widget>

<widgetId>short_4_0_1_2</widgetId>

<type>Switch</type>

<label>Verreist</label>

<icon>verreist-off</icon>


-<item>

<type>SwitchItem</type>

<name>Verreist</name>

<state>OFF</state>

<link>https://my.openhab.org/rest/items/Verreist</link>

</item>

</widget>


-<widget>

<widgetId>short_4_0_1_2_3</widgetId>

<type>Switch</type>

<label>Gäste</label>

<icon>guest-off</icon>


-<item>

<type>SwitchItem</type>

<name>Gaeste</name>

<state>OFF</state>

<link>https://my.openhab.org/rest/items/Gaeste</link>

</item>

</widget>

</widget>


-<widget>

<widgetId>short_5</widgetId>

<type>Frame</type>

<label>Heizung</label>

<icon>frame</icon>


-<widget>

<widgetId>short_5_0</widgetId>

<type>Switch</type>

<label>Heizperiode</label>

<icon>winter-off</icon>


-<item>

<type>SwitchItem</type>

<name>IsWinter</name>

<state>OFF</state>

<link>https://my.openhab.org/rest/items/IsWinter</link>

</item>

</widget>


-<widget>

<widgetId>short_5_0_1</widgetId>

<type>Text</type>

<label>Wohnzimmer</label>

<icon>video</icon>


-<linkedPage>

<id>0501</id>

<title>Wohnzimmer</title>

<icon>video</icon>

<link>https://my.openhab.org/rest/sitemaps/ultrashort/0501</link>

<leaf>true</leaf>


-<widget>

<widgetId>0501_0</widgetId>

<type>Selection</type>

<label>Wohnzimmer RTR</label>

<icon>rtr</icon>


-<mapping>

<command>1</command>

<label>Standby</label>

</mapping>


-<mapping>

<command>2</command>

<label>Nacht</label>

</mapping>


-<mapping>

<command>3</command>

<label>Komfort</label>

</mapping>


-<item>

<type>NumberItem</type>

<name>Betriebsart_RTR_Wohnzimmer</name>

<state>1</state>

<link>https://my.openhab.org/rest/items/Betriebsart_RTR_Wohnzimmer</link>

</item>

</widget>


-<widget>

<widgetId>0501_1</widgetId>

<type>Text</type>

<label>Wohnzimmer Ist [25,8 °C]</label>

<icon>temperature</icon>

<valuecolor>#ff0000</valuecolor>


-<item>

<type>NumberItem</type>

<name>IstwertWohnzimmer</name>

<state>25.82</state>

<link>https://my.openhab.org/rest/items/IstwertWohnzimmer</link>

</item>

</widget>


-<widget>

<widgetId>0501_2</widgetId>

<type>Setpoint</type>

<label>Basissollwert [22,0 C]</label>

<icon>temperature</icon>

<minValue>16</minValue>

<maxValue>26</maxValue>

<step>1</step>


-<item>

<type>NumberItem</type>

<name>SollwertWohnzimmer</name>

<state>22.0</state>

<link>https://my.openhab.org/rest/items/SollwertWohnzimmer</link>

</item>

</widget>


-<widget>

<widgetId>0501_3</widgetId>

<type>Text</type>

<label>Status Ventil WZ [geschlossen]</label>

<icon>heater-off</icon>

<valuecolor>#ff0000</valuecolor>


-<item>

<type>SwitchItem</type>

<name>StatusHeizenWohnzimmer</name>

<state>OFF</state>

<link>https://my.openhab.org/rest/items/StatusHeizenWohnzimmer</link>

</item>

</widget>

</linkedPage>

</widget>


-<widget>

<widgetId>short_5_0_1_2</widgetId>

<type>Text</type>

<label>Bad</label>

<icon>bath</icon>


-<linkedPage>

<id>0502</id>

<title>Bad</title>

<icon>bath</icon>

<link>https://my.openhab.org/rest/sitemaps/ultrashort/0502</link>

<leaf>true</leaf>


-<widget>

<widgetId>0502_0</widgetId>

<type>Selection</type>

<label>Bad RTR</label>

<icon>rtr</icon>


-<mapping>

<command>1</command>

<label>Standby</label>

</mapping>


-<mapping>

<command>2</command>

<label>Nacht</label>

</mapping>


-<mapping>

<command>3</command>

<label>Komfort</label>

</mapping>


-<item>

<type>NumberItem</type>

<name>Betriebsart_RTR_Bad</name>

<state>1</state>

<link>https://my.openhab.org/rest/items/Betriebsart_RTR_Bad</link>

</item>

</widget>


-<widget>

<widgetId>0502_1</widgetId>

<type>Text</type>

<label>Bad Ist [23,6 °C]</label>

<icon>temperature</icon>

<valuecolor>#ff0000</valuecolor>


-<item>

<type>NumberItem</type>

<name>IstwertBad</name>

<state>23.64</state>

<link>https://my.openhab.org/rest/items/IstwertBad</link>

</item>

</widget>


-<widget>

<widgetId>0502_2</widgetId>

<type>Setpoint</type>

<label>Basissollwert [10,0 C]</label>

<icon>temperature</icon>

<minValue>16</minValue>

<maxValue>26</maxValue>

<step>1</step>


-<item>

<type>NumberItem</type>

<name>SollwertBad</name>

<state>10.0</state>

<link>https://my.openhab.org/rest/items/SollwertBad</link>

</item>

</widget>


-<widget>

<widgetId>0502_3</widgetId>

<type>Text</type>

<label>Status Ventil Bad [geschlossen]</label>

<icon>heater-off</icon>

<valuecolor>#ff0000</valuecolor>


-<item>

<type>SwitchItem</type>

<name>StatusHeizenBad</name>

<state>OFF</state>

<link>https://my.openhab.org/rest/items/StatusHeizenBad</link>

</item>

</widget>

</linkedPage>

</widget>

</widget>

</homepage>

</sitemap>

Hope you can work with this output.

Kind regards, Michael

@belovictor
Copy link
Contributor

Ok, this all looks fine. Can you now check what will happen if you request one of those icons directly? For example with https://my.openhab.org/images/allesaus.png ?

@staehler
Copy link
Author

I can see this image, when I call it in the browser directly. That's
quite strange for me ...
I've forgotten to say, that only on habdroid this images disappeared.
When I call the URL on my browser, it's all fine.

Am 27.06.2015 um 13:51 schrieb belovictor:

Ok, this all looks fine. Can you now check what will happen if you
request one of those icons directly? For example with
https://my.openhab.org/images/allesaus.png ?


Reply to this email directly or view it on GitHub
#116 (comment).

Viele Grüße,

Michael Pophal

@belovictor
Copy link
Contributor

This is really strange. Can you get logcat from your Android device when starting the app and loading the page with missing images?

@adrianmihai83
Copy link

Is there a solution to this problem? I have the exact problem, I can see the image if I adress it directly from myopenhab but does not show in the android app.

Edit: logcat attached... I have 3 android devices, none getting images when connected to myopenhab, on local lan everything is ok. Everything was fine a couple of months ago... Same setup - Odroid C1, everything updated...

https://www.dropbox.com/s/3dwruxwap54utp8/2015-09-09-23-12-02.txt?dl=0

Edit2: Latest updates:

  1. Fresh install on a DIFFERENT Ubuntu device, Java 1.8.0_60
  2. Only demo configuration
  3. Myopenhab binding

Same thing, images on LAN, none using my.openhab.org.

A lot of "Expired" and "Duplicare resource" on remote connect, none on LAN... Picture attached
20150910_095723_001

Edit3: Also tried on Windows, only Demo + Myopenhab binding, same result... Is there anyone using Myopenhab? At first I thought that it is a problem related to my particular setup but now, after 3 setups... Is Myopenhab working for someone, anyone...?

Edit4: I don't know if anyoane is interested, i guess that this is not news to you, everything is ok from browser.
screenshot_2015-09-15-11-50-32

@Mr-Swigg
Copy link

I had the same issue in the Android app, and solved it by setting the remote URL to https.

"openHAB Remote URL":
https://my.openhab.org

@staehler
Copy link
Author

Https:// doesn't solve this issue for me, unfortunately.
The Problem still remains :-(

@thesebastianf
Copy link

same here ....
just using OH2 Beta in Demo...
no modifications

@digitaldan
Copy link
Contributor

Can anyone comment if this is still happening?

@digitaldan digitaldan added the bug Indicates an unexpected problem or unintended behavior label May 24, 2016
@anordvall
Copy link

I have had the same problem for months... and now, after reading this thread, I changed from http to https as suggesed above, and it works! Finally I have Icons again! :) Thanks @Mr-Swigg

@staehler
Copy link
Author

Did you run your remote openhab URL just with http? I would expect, that this doesn't work anyway, as it is highly unsecure. My habdroid shows no icons with openHAB remote URL https://my.openhab.org
Am 22-Jun-2016 23:25:07 +0200 schrieb notifications@github.com:

I have had the same problem for months... and now, after reading this thread, I changed from http to https as suggesed above, and it works! Finally I have Icons again! :) Thanks @Mr-Swigg

You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

@anordvall
Copy link

Yes I used http before. It worked just fine, except for the icons. Try changing to http temporary.. or maybe to https://IP:port. Maybe it's some kind of caching problem which disappears when changing the URL.

@Br3nda
Copy link
Contributor

Br3nda commented Jul 8, 2016

Did you try "clear images cache" in the android app menu?

@staehler
Copy link
Author

staehler commented Jul 9, 2016

Yes, I did, but the behaviour didn't change. Seems, that I have to life with that :-(

@Snickermicker
Copy link
Contributor

Seem to have the same issue even when using https.
habdroid (latest from master) throws the following exception for all icons:

01-12 16:29:02.092 10210-11043/org.openhab.habdroid W/System.err: java.io.FileNotFoundException: https://myopenhab.org/images/clock.png
01-12 16:29:02.093 10210-11043/org.openhab.habdroid W/System.err:     at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:238)
01-12 16:29:02.093 10210-11043/org.openhab.habdroid W/System.err:     at java.net.URLConnection$DefaultContentHandler.getContent(URLConnection.java:1017)
01-12 16:29:02.093 10210-11043/org.openhab.habdroid W/System.err:     at java.net.URLConnection.getContent(URLConnection.java:199)
01-12 16:29:02.093 10210-11043/org.openhab.habdroid W/System.err:     at com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.getContent(DelegatingHttpsURLConnection.java:133)
01-12 16:29:02.094 10210-11043/org.openhab.habdroid W/System.err:     at com.android.okhttp.internal.huc.HttpsURLConnectionImpl.getContent(HttpsURLConnectionImpl.java)
01-12 16:29:02.094 10210-11043/org.openhab.habdroid W/System.err:     at org.openhab.habdroid.util.MyWebImage.getBitmapFromUrl(MyWebImage.java:107)
01-12 16:29:02.094 10210-11043/org.openhab.habdroid W/System.err:     at org.openhab.habdroid.util.MyWebImage.getBitmap(MyWebImage.java:77)
01-12 16:29:02.094 10210-11043/org.openhab.habdroid W/System.err:     at com.loopj.android.image.SmartImageTask.run(Unknown Source)
01-12 16:29:02.094 10210-11043/org.openhab.habdroid W/System.err:     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
01-12 16:29:02.094 10210-11043/org.openhab.habdroid W/System.err:     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
01-12 16:29:02.094 10210-11043/org.openhab.habdroid W/System.err:     at java.lang.Thread.run(Thread.java:818)

The icon is shown OK in android browser when requested directly (after login) https://myopenhab.org/images/clock.png

@Snickermicker
Copy link
Contributor

Guess I found the problem. It seems to be dependending on the password.
By changing

 encodedUserPassword = Base64.encodeToString(userPassword.getBytes("UTF-8"), Base64.DEFAULT;

to

 encodedUserPassword = Base64.encodeToString(userPassword.getBytes("UTF-8"), Base64.NO_WRAP); 

in file mobile/src/main/java/org/openhab/habdroid/util/MyWebImage.java (getBitmapFromUrl()) I got all images. I'm going to create a pull request for this.

@djoope
Copy link

djoope commented Jan 26, 2017

I have a similar problem.

http://myopenhab.org works but dont show any icons in my Android app

httpS://myopenhab.org just stays at reloading sitemap in my Android app. No content at all.
I am using a Google Pixel Phone Android 7.1.1

When trying with my Google Nexus 9 tablet outside my home booth Url:s work.
And show icons when using https://...

Using browser in Google Pixel phone works well with https://home.myopenhab.org/basicui....

Anyone knows about this or are using google Pixel with the app?
I guess the problem is about my phone?

Thanx in advance

digitaldan pushed a commit that referenced this issue Feb 5, 2017
* Modified encoding of passwords. Loading of images failed if the password contains a line terminator.

* Improved error handling in case of http response code greater or equal 400
Signed-off-by: Volker Daube <vd-github@online.de> (github: Snickermicker)
fspiekermann pushed a commit to fspiekermann/openhab.android that referenced this issue Feb 9, 2017
* Modified encoding of passwords. Loading of images failed if the password contains a line terminator.

* Improved error handling in case of http response code greater or equal 400
Signed-off-by: Volker Daube <vd-github@online.de> (github: Snickermicker)
mgarciate pushed a commit to mgarciate/openhab.android that referenced this issue May 22, 2017
* 'master' of https://github.com/openhab/openhab.android: (31 commits)
  Do not start discovery service if only remote url is configured (openhab#291)
  Implement dynamic GCM sender ID (openhab#288)
  Updates gradle plugin to latest 2.4.0-alpha7 (openhab#296)
  Update to latest API+tools+gradle+misc.  (try openhab#2) (openhab#281)
  set default theme to light (openhab#292)
  make "icon format" in settings translatable (openhab#293)
  Make a few strings non-translatable (openhab#277)
  Revert "Update to latest API+tools+gradle+misc. (openhab#268)" (openhab#280)
  More consistent strings (openhab#276)
  Update to latest API+tools+gradle+misc. (openhab#268)
  Bump verion for next relese (openhab#273)
  References openhab#117 - restore NFC functionality to Switch items (openhab#267)
  Add Lithuanian translation (openhab#272)
  Support for icons in svg format (openhab#256)
  Improve WebView compatibility by enabling DOM storage (openhab#266)
  Fix attempt at openhab#116 (openhab#262)
  Added Japanese translation (openhab#254)
  updated german translation (openhab#259)
  Bump version for next release.
  Signed-off-by: Cristian Sarac <sarac.cristian@gmaill.com> github: CristianSarac (openhab#226)
  ...

# Conflicts:
#	mobile/src/main/res/values-es/strings.xml
@lolodomo
Copy link
Contributor

@digitaldan : this issue can be closed as a fix has apparently been merged ?

@mueller-ma
Copy link
Member

Does anyone still have this issue?

@staehler
Copy link
Author

staehler commented Feb 6, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting feedback bug Indicates an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests