Replies: 4 comments 3 replies
-
I wrote a library for fetching files off the internet that will hopefully help. https://github.com/witnessmenow/file-fetcher-arduino This example should do what most of what your looking for, other than its a png rather jpg Here is a different example of displaying a JPG, so if you use the jpg displaying part of this code, with the above example, https://github.com/witnessmenow/Spotify-Diy-Thing/blob/main/SpotifyDiyThing/cheapYellowLCD.h#L177 |
Beta Was this translation helpful? Give feedback.
-
The Google drive link may have some extra steps like redirection etc, or maybe the fact it doesn't have a file ending as part of the url is a problem, not actually sure The Spotify thumbnail definitely should work, as that's what the second example I linked to is doing, and the file fetcher code is based on what I originally did for the Spotify thumbnail code |
Beta Was this translation helpful? Give feedback.
-
I'm trying to use your example code, saveImageToMemory, to fetch an image and display it. I'm having some trouble extracting the relevant parts of the displayImageToLCD example to do the displaying part using the imageFile pointer. Do you know what I might have to change to get it to work? Edit: I got it to compile by changing this:
I also had to use the "CYD2USB" version of User_Setup.h. I am able to get it to work if the URL is https, but not for http. For http, I get a 400 Bad Request error, and the log is gibberish. For example, https:
http (the gibberish changes with each request):
|
Beta Was this translation helpful? Give feedback.
-
Here's what I ended up with, to fetch a 320x240 jpeg from my webcam and display it. It loops repeatedly, and gets about 1-2 fps. Right now it only works with HTTPS. It requires the attached saveImageToMemory.txt (change to .ino, it's modified from the example code), and FileFetcher.cpp and FileFetcher.h (no changes). |
Beta Was this translation helpful? Give feedback.
-
Yea so like in the title. Im struggling to write or find working code for just displaying jpg from url on the screen. Did someone done that?
Beta Was this translation helpful? Give feedback.
All reactions