openhab / openhab-ios

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

Images not refreshed when used as Image in sitemap #144

Open rush131 opened 6 years ago

rush131 commented 6 years ago

Configuration is this:

Frame label="Kamera Ulaz" {     
    Image url="http://192.168.7.102/tmpfs/auto.jpg" refresh=1000
 }

Worked without a problem on old openhab IOS app, image got refreshed every second. Now i only see the new image when i leave the frame and re-enter it.

Dan1001 commented 6 years ago

Yes, I too have very patchy image refreshing. Not always broken, but sometimes broken.

rush131 commented 6 years ago

Anybody?

Dan1001 commented 6 years ago

bump

federic0 commented 6 years ago

Same problem here, is there a work around or a fix coming?

Dan1001 commented 6 years ago

It's very frustrating - the iOS app is broken in several ways...

digitaldan commented 6 years ago

Hi, unfortunately we are short on IOS developer resources right now, i wish we had some other volunteers to help out. If I can find a little time tomorrow I'll take a look and see about a fix.

digitaldan commented 6 years ago

I took a look and don't yet have a fix. It looks like we are grabbing the image at the refresh interval, but the row in the table is not being redrawn, so the new image(s) is never displayed.

Dan1001 commented 6 years ago

thanks, that's really appreciated. Wish there was a way I could help.

gelsas commented 6 years ago

any update on this ?

could you share the part of the code with the issue so we can work on it ?

RobZe89 commented 4 years ago

I still have the problem with the images not reloading. It works on browser (classicUI & basicUI), but not with the beta ios app version 2.3.14

weakfl commented 4 years ago

I think it's safe to assume that cache shouldn't be used if refresh is set.

@timbms I think the SwiftUI version doesn't have refresh implemented yet?

timbms commented 4 years ago

SwiftUI indeed hasn’t implemented refresh yet. Do you want to give it a try?

weakfl commented 4 years ago

Sure, I'll give it a try :)