Image Gallery

sounds great - thanks. That will resolve my issue.

For others, though, I am wondering if a “flush” command may also be needed, such as
.setProperty(V20, “flushcache”…);

If someone wants to view a webcam and they have some other script updating the image, they will need to be able to flush the cache from code…

or

a no-cache option in the widget.

Yep, there should be some cache option in the widget, for sure. We’ll think about that

1 Like

Yep, that’s a good idea to flush saved images on setProperty - I’ll implement it for nearest 2.27.2 release.

3 Likes

no news about image buttons widgets ? :thinking:

No new widgets at least during winter

1 Like

so, after the 20th of March :star_struck:
that’s a good news indeed Alexander !

is this for python? because I am not even able to use the setProperty in the python code…

FYI, I am not sure if the cached images invalided themselves after some days, or if you flushed them, but the new copies of the hosted files are now appearing in my app…
Flush/refresh still needed though… just adding the info that they did come right eventually.

It will be available in 2.27.2 beta soon, like you proposed in urls set property command or refreshing image in its settings.

3 Likes

I’m sorry but that includes IOS devices or only Android? Thanks

only Android

That’s odd, this post is for iOS also in android it updates automatically when the url change, at least for my 2 android devices that I’ve checked.
I suppose that if there is a lib update instead of app update it might be beneficial for the iOS devices too. Idk if that’s possible though.

the caching is taking place on the server. So when the caching is improved it works for all clients.

1 Like

Hi all,

We just uploaded new beta release with 2.27.2 version with a fix to this issue:

  • “set property urls” command should refresh images memory cache
  • editing/refreshing image in image widget’s settings will refresh its memory cache too
3 Likes

Good job Alexander !!

Hey BlynkAndroidDev, I’m still running into this issue in the current beta version… Clicking refresh or editing the url in the image gallery widget still won’t refresh the image cache. I haven’t tried it by setting the properties from hardware yet but I’d worry it’s not working there either.

Using Android version 2.27.10

(thanks for all your work! Absolutely loving the app!)

Hello. I tried to update an image with set_property in the Image Gallery. But I realized, that they are cached! (( And I found this article. Have you done this update? Or how can I test it with beta? Thanks.

1 Like

Hi, how are you updating properties? Image widget should invalidate images via set property url for a specific url, or set property urls for all image’s list

Hello,
also having an issue with “any” image showing up in the image galley after the image capture.
the url shows up in the serial monitor, but not in the Blynk App.

I run this code on a button tap:

void takePhoto()
{
digitalWrite(LED, HIGH);
  delay(200);
  uint32_t randomNum = random(50000);
  Serial.print("Captured image data:" );
  Serial.println("http://"+local_IP+"/capture?_cb="+ (String)randomNum);
  Blynk.setProperty(V1, "urls", "http://"+local_IP+"/capture?_cb="+(String)randomNum);
  digitalWrite(LED, LOW);
  delay(1000);
}

@William_Warren please edit your post, using the pencil icon at the bottom, and add triple backticks at the beginning and end of your code so that it displays correctly.
Triple backticks look like this:
```

Pete.

1 Like