Page 1 of 1

question on images

PostPosted: Sat Oct 26, 2019 7:32 am
by norcoscia
Hi Dave, today I was looking at dark Sky and noticed they have some nice images (see below). The link to the page that displays the image is

https://maps.darksky.net/@precipitation ... Ridgefield

but I don't think it is a png image - looks like they somehow build it on the fly. So when I try to use that as the source I get the error below:

Fantastic Weather Error [SatImage] Error downloading satellite image. (Line 757) [Errno 2] No such file or directory: u'file:///Users/MYCOMPUTERNAME/Desktop/SatImages/rain.png'

Is there a way go get this image using your plug-in?

Thanks for any info :-)

Re: question on images

PostPosted: Sat Oct 26, 2019 8:19 am
by DaveL17
norcoscia wrote:
Is there a way go get this image using your plug-in?

Hi Norm -- after a quick inspection, it doesn't appear so. Often, you can inspect the html of a webpage and find the underlying image files that are used to display it. However, as you surmised, it seems that this map is built using javascript and a series of image tiles. There may be a way for a separate program to load the webpage into memory and export the fully constructed map as a single image, but the Fantastic Weather plugin doesn't do that. It's likely that the plugin will never do like that because it would be taking someone else's content and repackaging it for another purpose--which (in my opinion) wouldn't be considered a fair use.

Sorry!

Re: question on images

PostPosted: Sat Oct 26, 2019 8:38 am
by norcoscia
Thanks and no worries - BTW - what sites do you recommend for sat images? I looked at NOAA and did not see anything like the one I was interested in on Dark Sky....

Re: question on images

PostPosted: Sat Oct 26, 2019 9:13 am
by DaveL17
I find radar images to be very much in the eye of the beholder (I personally use a WeatherUnderground image). IIRC, Dark Sky doesn't make their radar available via the API. Here's one from NOAA (which you may have already seen) that the plugin would support (GIF): https://radar.weather.gov/Conus/RadarImg/pacnorthwest.gif

pacnorthwest.gif
pacnorthwest.gif (107.96 KiB) Viewed 2006 times

In order to work properly, the URL must point directly to an image file (GIF, JPEG, PNG).

Re: question on images

PostPosted: Sat Oct 26, 2019 9:19 am
by norcoscia
OK, I understand, thanks for the help Dave!!!