Re: ImageSource vs. <img src="your image"> ?
Posted: Tue May 11, 2021 4:25 pm
OK, I get that, but...
it seems like you're dealing with a small fixed set (half dozen or so?) of images. Why not just download them once from the website, import them into the stack and store them on a separate card, size them (or not) and just set the imagesource of the char when desired? That's been my approach when I need to do similar tasks.
Also... my experience in an earlier life scraping web sites is that both the content and format of web pages changes much more often than I'd like, and then I'd have to go through the process not just of updating my code, but of painfully examining the page source of the original page to see what changed and what I'd need to do to get at the new data. If there's an api to work with it's gonna be much more stable because the folks who are putting the web pages together are gonna need it that way as well. Registering for an api key with weather underground is free - I use it to display current weather on osmc running on a raspberry pi.
it seems like you're dealing with a small fixed set (half dozen or so?) of images. Why not just download them once from the website, import them into the stack and store them on a separate card, size them (or not) and just set the imagesource of the char when desired? That's been my approach when I need to do similar tasks.
Also... my experience in an earlier life scraping web sites is that both the content and format of web pages changes much more often than I'd like, and then I'd have to go through the process not just of updating my code, but of painfully examining the page source of the original page to see what changed and what I'd need to do to get at the new data. If there's an api to work with it's gonna be much more stable because the folks who are putting the web pages together are gonna need it that way as well. Registering for an api key with weather underground is free - I use it to display current weather on osmc running on a raspberry pi.
