Home of the Squeezebox™ & Transporter® network music players.
Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16
  1. #11
    Senior Member chill's Avatar
    Join Date
    Mar 2007
    Location
    Nottingham, UK
    Posts
    1,964
    Thanks Erland, that gives me something to go on. I'll certainly be interested to see how to use the mysqueezebox.com image proxy.

  2. #12
    Senior Member chill's Avatar
    Join Date
    Mar 2007
    Location
    Nottingham, UK
    Posts
    1,964
    Hmm - I'm going to give up on die.net for now. I figured out how to use mysqueezebox.com's image proxy (I think), and managed to fetch one of the other images via the proxy.

    Code:
    wget "http://www.mysqueezebox.com/public/imageproxy?u=https%3A%2F%2Fapi.sat24.com%2Fmostrecent%2FGB%2Frain" -O test.bmp
    Connecting to www.mysqueezebox.com (34.244.111.131:80)
    saving to 'test.bmp'
    test.bmp             100% |*************************************************************************************************************************| 1024k  0:00:00 ETA
    'test.bmp' saved
    But when I try the die.net images I get a 22 byte file that just contains the text "Cached image not found".

    Code:
    wget "http://www.mysqueezebox.com/public/imageproxy?u=https%3A%2F%2Fstatic.die.net%2Fearth%2Fmercator%2F1128.jpg" -O test.bmp
    Connecting to www.mysqueezebox.com (34.244.111.131:80)
    saving to 'test.bmp'
    test.bmp             100% |*************************************************************************************************************************|    22  0:00:00 ETA
    'test.bmp' saved
    Up till now I've been using Chrome, but I tried the plain image URL (https://static.die.net/earth/rectangular/1280.jpg) in Safari, and the first time I tried it I briefly saw a page that indicated that my browser was being vetted by Cloudfare, then the image loaded. Subsequent requests simply go straight to the image. So it does appear that they'd rather you viewed their images in a browser, instead of fetching them with wget. And I'm not about to pit my meagre skills against the might of Cloudfare's security expertise!

  3. #13
    Senior Member chill's Avatar
    Join Date
    Mar 2007
    Location
    Nottingham, UK
    Posts
    1,964
    I've added a couple more to my own personal list of scrolling images:

    Code:
    #space station
    wget "https://www.heavens-above.com/orbitdisplay.aspx?icon=default&width=1024&height=1024&satid=25544" -O /home/tc/ScreenSaverImages/SpaceStation.bmp
    
    #sky chart
    wget "https://www.heavens-above.com/wholeskychart.ashx?lat=53&lng=-1&size=1024" -O /home/tc/ScreenSaverImages/SkyChart.bmp
    Current Space Station position:


    Sky chart above my approx. Lat and Lon:

  4. #14
    Senior Member erland's Avatar
    Join Date
    Dec 2005
    Location
    Sweden
    Posts
    11,244
    Quote Originally Posted by chill View Post
    Hi Erland - do you have any tips for fetching a plain image from die.net?
    .
    You might want to check this post and see how that community member have done it:
    https://forums.slimdevices.com/showt...=1#post1006711
    Erland Isaksson (My homepage)
    Developer of many plugins/applets
    Starting with LMS 8.0 I no longer support my plugins/applets (see here for more information )

  5. #15
    Senior Member chill's Avatar
    Join Date
    Mar 2007
    Location
    Nottingham, UK
    Posts
    1,964
    Quote Originally Posted by erland View Post
    You might want to check this post and see how that community member have done it:
    https://forums.slimdevices.com/showt...=1#post1006711
    Thanks Erland - the 'wget + cookies' approach seems promising. I've had a quick go at doing this, but no success so far, so I'll see if @L0O can help me out.

    EDIT: the version of wget under pCP doesn't seem to have the --load-cookies option.
    Last edited by chill; 2021-01-29 at 00:58.

  6. #16
    Senior Member chill's Avatar
    Join Date
    Mar 2007
    Location
    Nottingham, UK
    Posts
    1,964
    Solved it - I downloaded the wget extension from the piCore repository, and now I can use the cookies.txt file that I exported from Firefox with the 'export cookies' plug-in.

    Thanks for the pointer!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •