Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preview image via cloud upload and cleanup after #51

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

sanghviharshit
Copy link
Contributor

I spent way too much time troubleshooting this issue where previewing an image works only once and every subsequent attempt to preview an image will display the first image. For some reason, the Meural device caches the image. I verified this by making API calls directly to the local webserver. I also found someone mentioned this issue here.

This had been bugging me for a while since I wanted to display the image from the front door when someone rings the doorbell. So for a while, I had automation where I used preview_image to display the image from the front door, then restart the Meural, so subsequent attempts to preview the image would work. Obviously, this wasn't ideal, so I looked into the APIs and figured out a way to upload the image first to the cloud and then use the id to preview it, waiting for 2 minutes before deleting it from the cloud.

Bonus: You can include a bunch of metadata to the uploaded image, so the image preview looks great.

Screenshot

meural preview image

P.S. I know this is kind of a hack to work around the preview service, so I am totally ok with closing this MR without merging. I am just going to leave this here, so if anyone struggling with this issue knows what to do :)

@mcscope
Copy link

mcscope commented Jun 23, 2022

I have the same issue and I reported it in great detail to netgear. They said they were working on it in April, maybe it will be fixed. Ps I have the canva 1 in case that matters.

clever workaround!

@sanghviharshit
Copy link
Contributor Author

Thanks @mcscope . Let me know if you get any further updates from Netgear. I have the same - canvas 1.

@GuySie
Copy link
Owner

GuySie commented Jul 12, 2022

I have a Canvas II so that may explain why I haven't encountered this issue yet!

@sanghviharshit sanghviharshit force-pushed the feature/preview-image-from-cloud-upload branch from 01659fe to e0d8da3 Compare July 21, 2022 17:29
@sanghviharshit sanghviharshit force-pushed the feature/preview-image-from-cloud-upload branch from e0d8da3 to e45c6e3 Compare November 29, 2022 22:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants