openhab / openhab-ios

The repository of the iOS client
Eclipse Public License 2.0
191 stars 127 forks source link

Image widgets suddenly not displayed anymore #39

Closed kgoderis closed 5 years ago

kgoderis commented 9 years ago

Without any change to config or alike, suddenly Image widgets are no longer displayed by the iOS Client. (v1.6.1). They do show up correctly in the Classic web-based GUI.

Any clue as to what might be going on?

belovictor commented 9 years ago

openHAB version?

kgoderis commented 9 years ago

2

Sent from my iPhone

On 16 May 2015, at 12:55, belovictor notifications@github.com wrote:

openHAB version?

— Reply to this email directly or view it on GitHub.

belovictor commented 9 years ago

Strange. Just checked it against current OH2 snapshot and image in demo/multimedia widgets shows fine :-O

belovictor commented 9 years ago

Karel, do you still experience this problem?

kgoderis commented 9 years ago

Yes I do

Sent from my iPhone

On 26 May 2015, at 17:11, belovictor notifications@github.com wrote:

Karel, do you still experience this problem?

— Reply to this email directly or view it on GitHub.

belovictor commented 9 years ago

Karel, can you check it against the new version which just went live on appstore?

kgoderis commented 9 years ago

Victor, It is partly solved in 1.7

I have in .sitemap:

                Image url="http://192.168.0.12/enu/camera640x480.jpg?fps=10" label="Practice" refresh=1000
                Image url="http://192.168.0.13/enu/camera640x480.jpg?fps=10" label="Private" refresh=1000
                Image url="http://192.168.0.14/enu/camera640x480.jpg?fps=10" label="Gate" refresh=1000
                Image url="http://192.168.0.60/cgi-bin/image.jpg?imgprof=Right" label="North Right" refresh=1000
                Image url="http://192.168.0.60/cgi-bin/image.jpg?imgprof=Left" label="North Left" refresh=1000
                Image url="http://192.168.0.61/cgi-bin/image.jpg?imgprof=Right" label="West Right" refresh=1000
                Image url="http://192.168.0.61/cgi-bin/image.jpg?imgprof=Left" label="West Left" refresh=1000                   
                Image url="http://192.168.0.62/cgi-bin/image.jpg?imgprof=Right" label="South Right" refresh=1000
                Image url="http://192.168.0.62/cgi-bin/image.jpg?imgprof=Left" label="South Left" refresh=1000                  
                Image url="http://192.168.0.63/cgi-bin/image.jpg?imgprof=Right" label="East Right" refresh=1000
                Image url="http://192.168.0.63/cgi-bin/image.jpg?imgprof=Left" label="East Left" refresh=1000   

The first 3 entries are from an Helios door station, the 8 others from a Mobotix security cam. The Mobotix cam eject HD images.

The first 3 images are never loaded, the bottom 8 are ok, but the refresh is really slow. When the image is refreshed, the old image disappears for 4-5 seconds. The fps parameters = frame per second. Is the iOS client to slow to handle the 10fps, maybe?

belovictor commented 9 years ago

Karel, I didn't make any tests. iOS app uses a third partly library and I don't think it is optimized for doing 10fps. Can you please change it down to 1fps at least and have a look if it will solve the problem?

kgoderis commented 9 years ago

Changing the fps parameter did not change things

kgoderis commented 9 years ago

There might be a problem in the external lib because it used to work before very well with fps=10

kgoderis commented 9 years ago

I will also try again tonight over the Wifi (actual test now over a VPN, but I have 120Mbit/s at home so that should not be the reason...)

kgoderis commented 9 years ago

FYI, on a Wifi connection I have the same situation. It does not happen with the Classic UI, so it seems to be at the side of the iOS app....

kgoderis commented 9 years ago

Victor, with OH Alpha 2, and iOS 1.7.0, when accessing this part of the sitemap, the OH runtime logs a lot of

kgoderis commented 9 years ago

2015-05-29 16:36:41 [INFO ] [.a.c.httpclient.HttpMethodBase:1869 ] - Response content length is not known

this is not the case when accessing the same stuff through the classic UI

tideline3d commented 9 years ago

I have a similar problem (against OH 1.7). I'm only showing a couple camera images, but if I show more than one on a given page, only the first one ever refreshes. I have my refreshes set at 2000 They all load (most of the time, but sporadically load in a weird compressed height or not at all).

Also if I have a switch on a page that has a camera image, toggling that switch will make the image disappear. Only reloading the page by navigating back & forward will reload the image.

May be separate issues, but sounded similar enough I thought I'd mention them here incase they're somehow related. Particularly the second one.

kgoderis commented 9 years ago

Victor, any progress made on this?

Dan1001 commented 9 years ago

I have the same issue - even with one camera image on a page, with no refresh, it sporadically fails to display. The problem seems to occur more frequently with an image set to refresh (at 1000), and then I also get the squeezed height issue reported by jw59.

Dan1001 commented 8 years ago

The 'sporadically failing to display' problem seems to have gone away with the latest 1.71 release of the app - thank you! The 'squeezed height' problem is still there; perhaps less frequently, but irritatingly it seems random and not reproducible.

kgoderis commented 8 years ago

Viktor, is there any update on this?

dhermanns commented 8 years ago

Same Problems for me with Version 1.71 of the iOS App:

Android app and browser works fine. So should really be a problem of the iOS client.

Dan1001 commented 8 years ago

It seems we have to live with this problem, at least for openHAB 1 - does anyone know if it's still there with openHAB 2?

dhermanns commented 8 years ago

I don't think that this has to do with the backend, since it's working fine with the android client and the same openHAB 1 backend.

There seems to be not much work going on anymore - regarding the iOS app. I would love to have Apple Watch support for example :-/

I would like to help here, but don't like to learn objective c anymore. I asked this before: Any plans to convert to swift? Dan1001 notifications@github.com schrieb am Do. 4. Aug. 2016 um 19:03:

It seems we have to live with this problem, at least for openHAB 1 - does anyone know if it's still there with openHAB 2?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/openhab/openhab.ios/issues/39#issuecomment-237616622, or mute the thread https://github.com/notifications/unsubscribe-auth/ADDwlaAUIGuMiWv1lJ3MQaR5DfA3KD5yks5qchsbgaJpZM4EWZbR .

Dan1001 commented 8 years ago

it's a real shame if the iOS app is going to fall behind - could become a significant barrier to the success of the project as a whole

dhermanns commented 8 years ago

Yes - think there are a lot of iOS people out there :-/ Dan1001 notifications@github.com schrieb am Do. 4. Aug. 2016 um 19:37:

it's a real shame if the iOS app is going to fall behind - could become a significant barrier to the success of the project as a whole

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/openhab/openhab.ios/issues/39#issuecomment-237626369, or mute the thread https://github.com/notifications/unsubscribe-auth/ADDwlZhrt1VN8JZ4MDQwzC9h0U-cFVt2ks5qciNQgaJpZM4EWZbR .

Dan1001 commented 7 years ago

Just bumping this (failing to display images/corrupting images). Fairly serious bug. Would be fantastic to have a fix.