I’m building alotment automated watering system with camera. I want to
- switch Pi on -> take a photo -> start watering for 40 mins -> switch Pi for 39mins to save battery (it is solar powered project no main power)
- switch Pi on -> take a photo -> stop watering -> switch Pi off again
Everything works more or less fine except bloody galery image widget cache these images and there is no working way of reloading.
So Im being blocked by this for over a week now and Im thinking of giving up and using different library for showing photos.
I tried set_property i tried virtual_write, and yes, urls are being rewritten with new one, but if you are using exactly same name, old(cached) photos are being reloaded again. Below is my working code.
import BlynkLib BLYNK_AUTH = 'mytokenhere' # initialize Blynk blynk = BlynkLib.Blynk(BLYNK_AUTH) #@blynk.virtual_write(1) # Button Widget on V1 #def my_write_handler(value): blynk.set_property(5,"urls","https://mywebsite/pictures/photo3.jpg","https://mywebsite/pictures/photo2.jpg") blynk.virtual_write(6,"testJPG") # Show label - Widget on V6
If there is no update on that issue i guess my only option is to use unique names for images and pass these to image gallery widget.