jordenc / image.grabber

Image Grabber for Homey
0 stars 4 forks source link

Duplicate Image Tokens #3

Open Veldkornet opened 6 years ago

Veldkornet commented 6 years ago

App Version: 0.1.0

Basically, I have a flow to grab an image from my IP cam, and a second flow which will send the image to myself and to my wife.

However! While I get the correct image every single time... my wife gets EXACTLY the same image every time (you can see from the IP cam time stamp), and the image is an image that was grabbed yesterday when someone rang the doorbell...

SO! I noticed that there are two image tokens. “image” (small i) gives the correct picture, while “Image” (capital i) was giving old images.

I updated the second action to use “image” and now the images are always correct. See screenshots attached.

0gmhacqlnrjf ushjf45ymdkl

jordenc commented 6 years ago

So the token that is on the "Trigger" card, is not the right image?

Veldkornet commented 6 years ago

From my testing, the one stored under "Local Tokens" (if you look at my second screenshot) is the correct one.

The one under Image Grabber (again, if you look at my second screenshot) shows the wrong image.

However, the second one does have an image, so not sure how or why it gets its...

jordenc commented 6 years ago

That is probably an image that was grabbed with the old version.

If you restart Homey, does the problem still persist or is it solved? I personally use the image that is on the trigger card with 3 different "grabs" at the same time, that works without a problem for me.

Because we moved from our "own" thought up imagetoken format, to the Athom imagetoken format, and because we moved from SDK v1 to SDK v2 with the app, I expect a lot of strange things that can happen if you upgrade. Once rebooted, most of them should be solved.

Veldkornet commented 6 years ago

Ah, indeed, after a reboot the second one disappeared! All good then! :)

Veldkornet commented 6 years ago

Need to reopen this.

See what I noticed:

image

The global tags are still incorrect (capital "I"), but the card on the left does show with a small "i".

hwharwig commented 6 years ago

Had same problem, the tag from the taglist was not correct. I used the tag from the card on the left and that one worked fine.

Makanz commented 5 years ago

I think the problem is on line 46 in app.json.