Re: [slim] Jivelite geo/weather maps screensaver

2021-01-22 Thread chill


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!



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=113732

___
discuss mailing list
discuss@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/discuss


Re: [slim] Squeezeboxen for sale

2021-01-22 Thread plympton


Paul Webster wrote: 
> Forum shows 
> Location: Portland, OR, USA

Yeah, shipping heavy Boom's overseas probably would be cost prohibitive.
Though somehow they can ship me trinkets from China for $1, I don't
think the UK qualifies for that loophole. :-(



plympton's Profile: http://forums.slimdevices.com/member.php?userid=12955
View this thread: http://forums.slimdevices.com/showthread.php?t=113729

___
discuss mailing list
discuss@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/discuss


Re: [slim] Jivelite geo/weather maps screensaver

2021-01-22 Thread chill


Thanks Erland, that gives me something to go on.  I'll certainly be
interested to see how to use the mysqueezebox.com image proxy.



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=113732

___
discuss mailing list
discuss@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/discuss


Re: [slim] Jivelite geo/weather maps screensaver

2021-01-22 Thread erland

chill wrote: 
> Hi Erland - do you have any tips for fetching a plain image from
> die.net?
> 

It worked previously without having to do anything specific but I guess
they might have added something to stop people from downloading the
images when they switched to https. My guess is that you might need to
set some http header to make wget/curl look like a browser. You should
be able to use the debug/developer view of a working browser to see
which headers it uses.

The Daylight Clock applet fetch the images via the mysqueezebox.com
image proxy, you will find the code here if it helps:
https://github.com/erland/squeezebox-daylightclock/blob/28a5fe9977fed2a891be314f466e1c828bee00d8/src/DaylightClockApplet.lua#L895

Not sure if mysqueezebox.com adds some headers but I think I didn’t use
that in the beginning, if I remember correctly it was added to cache the
images so many users using Daylight Clock applet simultaneously wouldn’t
overload die.net



Erland Isaksson ('My homepage' (http://erland.isaksson.info))
Developer of 'many plugins/applets'
(https://wiki.slimdevices.com/index.php/User_Erland.html)
*Starting with LMS 8.0 I no longer support my plugins/applets* ('see
here for more information'
(https://forums.slimdevices.com/showthread.php?49483-Announce-New-versions-of-erlands-plugins=998836=1#post998836)
)

erland's Profile: http://forums.slimdevices.com/member.php?userid=3124
View this thread: http://forums.slimdevices.com/showthread.php?t=113732

___
discuss mailing list
discuss@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/discuss


Re: [slim] Jivelite geo/weather maps screensaver

2021-01-22 Thread chill


erland wrote: 
> In the Daylight Clock applet I used images from die.net:
> https://www.die.net/earth/
> There is a number off different projections available and also one for
> moon phase: https://www.die.net/moon/
> 

Hi Erland - do you have any tips for fetching a plain image from
die.net?

If I paste, for instance,
'https://static.die.net/earth/rectangular/1280.jpg' into a browser
search bar I get a plain image displayed (1280 pixels across).

But if I try to fetch it with wget then it fails:

Code:

tc@pCPTV:~/ScreenSaverImages$ wget 
"https://static.die.net/earth/rectangular/1280.jpg; -O 
/home/tc/ScreenSaverImages/WorldSunlight.jpg
  Connecting to static.die.net (104.26.1.94:443)
  wget: server returned error: HTTP/1.1 503 Service Temporarily Unavailable



I'm guessing that's because the service that renders the image is
intended to respond only to browsers.  I tried adding a user agent to
the command - same result.  I tried curl, and received a file of html
that looks like the code that renders the image.



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=113732

___
discuss mailing list
discuss@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/discuss


Re: [slim] Jivelite geo/weather maps screensaver

2021-01-22 Thread Rainer M Krug


> On 22 Jan 2021, at 14:15, chill  
> wrote:
> 
> 
> rkrug wrote: 
>> in which folder do you put the script so that it survives reboots?
>> 
> 
> Anything in /home/tc (and below) will survive a reboot, provided you do
> a backup first (pcp bu).

Thanks a lot.

> 
> 
> 
> chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
> View this thread: http://forums.slimdevices.com/showthread.php?t=113732
> 
> ___
> discuss mailing list
> discuss@lists.slimdevices.com
> http://lists.slimdevices.com/mailman/listinfo/discuss






smime.p7s
Description: S/MIME cryptographic signature
___
discuss mailing list
discuss@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/discuss


Re: [slim] Jivelite geo/weather maps screensaver

2021-01-22 Thread chill


rkrug wrote: 
> in which folder do you put the script so that it survives reboots?
> 

Anything in /home/tc (and below) will survive a reboot, provided you do
a backup first (pcp bu).



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=113732

___
discuss mailing list
discuss@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/discuss


Re: [slim] Jivelite geo/weather maps screensaver

2021-01-22 Thread rkrug


Quick question (I like that approach!) - in which folder do you put the
script so that it survives reboots?

Thanks

Rainer



rkrug's Profile: http://forums.slimdevices.com/member.php?userid=62249
View this thread: http://forums.slimdevices.com/showthread.php?t=113732

___
discuss mailing list
discuss@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/discuss


Re: [slim] Jivelite geo/weather maps screensaver

2021-01-22 Thread Paul Webster


Looks useful - so tagging for pretend #wiki



Paul Webster
http://dabdig.blogspot.com
author of \"now playing\" plugins covering radio france (fip etc), kcrw,
supla finland, abc australia, cbc/radio-canada and rte ireland

Paul Webster's Profile: http://forums.slimdevices.com/member.php?userid=105
View this thread: http://forums.slimdevices.com/showthread.php?t=113732

___
discuss mailing list
discuss@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/discuss


Re: [slim] Jivelite geo/weather maps screensaver

2021-01-22 Thread chill


erland wrote: 
> In the Daylight Clock applet I used images from die.net:
> https://www.die.net/earth/
> There is a number off different projections available and also one for
> moon phase: https://www.die.net/moon/
> 
> Daylight Clock applet no longer works since die.net switched to use
> https.

Perfect, thank you.  https isn't a problem for pCP, so fetching the
images via a script outside of Jivelite seems to work ok.



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=113732

___
discuss mailing list
discuss@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/discuss


Re: [slim] Forum slow to load. Anyone else notice?

2021-01-22 Thread anotherbob


RonM wrote: 
> and just fine now, over my pretty slow connection.

Back to normal now, just one of life's mysteries.



anotherbob's Profile: http://forums.slimdevices.com/member.php?userid=51459
View this thread: http://forums.slimdevices.com/showthread.php?t=113722

___
discuss mailing list
discuss@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/discuss


Re: [slim] Jivelite geo/weather maps screensaver

2021-01-22 Thread erland


chill wrote: 
> I now collect a variety of images from other sources, and am on the
> lookout for other sources, so please go ahead and post anything you
> think might be interesting.  
> 

In the Daylight Clock applet I used images from die.net:
https://www.die.net/earth/
There is a number off different projections available and also one for
moon phase: https://www.die.net/moon/

Daylight Clock applet no longer works since die.net switched to use
https.



Erland Isaksson ('My homepage' (http://erland.isaksson.info))
Developer of 'many plugins/applets'
(https://wiki.slimdevices.com/index.php/User_Erland.html)
*Starting with LMS 8.0 I no longer support my plugins/applets* ('see
here for more information'
(https://forums.slimdevices.com/showthread.php?49483-Announce-New-versions-of-erlands-plugins=998836=1#post998836)
)

erland's Profile: http://forums.slimdevices.com/member.php?userid=3124
View this thread: http://forums.slimdevices.com/showthread.php?t=113732

___
discuss mailing list
discuss@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/discuss


Re: [slim] Jivelite geo/weather maps screensaver

2021-01-22 Thread chill


chill wrote: 
> Fortunately, which is key to this, the Image Viewer screensaver seems to
> re-read the directory and re-load each image file whenever it updates,
> so I can add images to that folder, or update existing images, and the
> screensaver always cycles through the current images.

Correction: The directory is only re-read whenever the screensaver kicks
in.  So completely new images don't show up until that happens.  But
-updated- images, i.e. a new image with the same name as an existing
image, will be re-loaded while the screensaver cycles through it's
directory list.



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=113732

___
discuss mailing list
discuss@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/discuss


Re: [slim] Squeezeboxen for sale

2021-01-22 Thread florca

slartibartfast wrote: 
> Someone I know booked tickets for a cinema in Leicester Square. Or so he
> thought. The tickets he booked were actually for a cinema in Leicester
> [emoji1787]
> 
> Sent from my Pixel 3a using Tapatalk

Plus regular stories, some true, of people thinking they're flying to
San Jose (California - SJC) and ending up in San José (Costa Rica - SJO)
or vice versa. Some debate within BA when they started to fly both
routes about how to reduce the potential confusion



Odroid HC1 / Armbian Stretch LMS & LocalPlayer
4x Slim Devices SB3 (White)
1x Boom, 1x Radio
2x Joggler + Squeezeplay / Squeezelite + Topping TP30

florca's Profile: http://forums.slimdevices.com/member.php?userid=7486
View this thread: http://forums.slimdevices.com/showthread.php?t=113729

___
discuss mailing list
discuss@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/discuss


Re: [slim] Squeezeboxen for sale

2021-01-22 Thread slartibartfast


florca wrote: 
> So rather more than 10 miles away then... :rolleyes:
> 
> Was reading on my phone and didn't spot that bit.Someone I know booked 
> tickets for a cinema in Leicester Square. Or so he
thought. The tickets he booked were actually for a cinema in Leicester
[emoji1787]

Sent from my Pixel 3a using Tapatalk





slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609
View this thread: http://forums.slimdevices.com/showthread.php?t=113729

___
discuss mailing list
discuss@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/discuss


[slim] Jivelite geo/weather maps screensaver

2021-01-22 Thread chill


I had occasionally thought about trying to write a dedicated screensaver
to show various real-time geo/weather maps, maybe a bit like a
'Geochron' (https://geochron.co.uk/) display.  But then I saw how
'@sodface was using the built-in Image Viewer screensaver'
(https://forums.slimdevices.com/showthread.php?111488-Jivelite-on-Alpine-Linux=1001020=1#post1001020),
and realised I didn't need to reinvent the wheel.  So since this is now
rather off-topic for @sodface's Alpine Linux thread, I thought I'd post
an example here, just as a heads-up in case, like me, you hadn't
realised that the image viewer can be used this way.

In my case, I am using a script on a pCP setup to fetch a number of
images from various internet sites and store them in a local folder
called 'home/tc/ScreenSaverImages'.  I then call this script every 15
minutes using a cron job.  I have configured the Image Viewer
screensaver to use local storage, and to look in that folder. 
Fortunately, which is key to this, the Image Viewer screensaver seems to
re-read the directory and re-load each image file whenever it updates,
so I can add images to that folder, or update existing images, and the
screensaver always cycles through the current images.  My script also
pushes this folder to a couple of Jogglers which are set up to use the
Image Viewer screensaver.

I started off trying to use some of the nice images provided by
Fourmilab, but the server eventually locks me out even if I only fetch
one image every 15 minutes, and only during the hours when I'm likely to
want to see the images - it seems -very- determined to stop the server
being overwhelmed - so I've stopped using that source.

I now collect a variety of images from other sources, and am on the
lookout for other sources, so please go ahead and post anything you
think might be interesting.  My current 'GetScreenSaverImages.sh' script
is as follows:


Code:

#UK Rain
  wget "https://api.sat24.com/mostrecent/GB/rain; -O 
/home/tc/ScreenSaverImages/UKRain.bmp
  
  #UK Snow
  wget "https://api.sat24.com/mostrecent/GB/snow; -O 
/home/tc/ScreenSaverImages/UKSnow.bmp
  
  # UK Sun & Clouds
  wget "https://api.sat24.com/mostrecent/GB/visual5hdcomplete; -O 
/home/tc/ScreenSaverImages/UKSunClouds.bmp
  
  # UK Infrared
  wget "https://api.sat24.com/mostrecent/GB/infrapolair; -O 
/home/tc/ScreenSaverImages/UKInfraRed.bmp
  
  
#https://api.sat24.com/crop?type=visual5hdcomplete=55.9533=-3.1883=800=800=0.30=eu
  
  #Moon visibility
  wget "https://www.timeanddate.com/scripts/sunmap.php?obj=moon; -O 
/home/tc/ScreenSaverImages/moonlight.bmp
  
  #Day and Night
  wget "https://www.timeanddate.com/scripts/sunmap.php?earth=1; -O 
/home/tc/ScreenSaverImages/DayNight.bmp
  
  #Images available from Fourmilab.  Server locks you out if you take images 
regularly, so no longer used
  #wget 
"https://www.fourmilab.ch/cgi-bin/Earth?img=cloudy.bmp=y=-p=0; 
-O /home/tc/ScreenSaverImages/CloudyEarth.bmp
  #wget 
"https://www.fourmilab.ch/cgi-bin/Earth?img=NASAmMM-l.evif=y=-p=0;
 -O /home/tc/ScreenSaverImages/NASADayNight.bmp
  
  # Push images to Jogglers
  rsync -avhiO --delete /home/tc/ScreenSaverImages/ 
root@192.168.1.21:/root/ScreenSaverImages/
  rsync -avhiO --delete /home/tc/ScreenSaverImages/ 
root@192.168.1.22:/root/ScreenSaverImages/



With a bit of luck, the images below should be the current versions of
the above images.  If you're not from the UK, the images from sat24 can
be configured to show other regions (Europe only I think).

UK Rain
[image: https://api.sat24.com/mostrecent/GB/rain]

UK Snow
[image: https://api.sat24.com/mostrecent/GB/snow]

UK Sun & Clouds (visible, i.e. doesn't show anything after dark)
[image: https://api.sat24.com/mostrecent/GB/visual5hdcomplete]

UK Infrared
[image: https://api.sat24.com/mostrecent/GB/infrapolair]

Moon visibility
[image: https://www.timeanddate.com/scripts/sunmap.php?obj=moon]

Day and Night
[image: https://www.timeanddate.com/scripts/sunmap.php?earth=1]



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=113732

___
discuss mailing list
discuss@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/discuss


Re: [slim] Squeezeboxen for sale

2021-01-22 Thread florca


Paul Webster wrote: 
> Forum shows 
> Location: Portland, OR, USA

So rather more than 10 miles away then... :rolleyes:



Odroid HC1 / Armbian Stretch LMS & LocalPlayer
4x Slim Devices SB3 (White)
1x Boom, 1x Radio
2x Joggler + Squeezeplay / Squeezelite + Topping TP30

florca's Profile: http://forums.slimdevices.com/member.php?userid=7486
View this thread: http://forums.slimdevices.com/showthread.php?t=113729

___
discuss mailing list
discuss@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/discuss


Re: [slim] Squeezeboxen for sale

2021-01-22 Thread Paul Webster


florca wrote: 
> Where are you? If you're in the town of Plympton, South Devon, then
> about 10 miles from me and interested in a good Boom and maybe the
> failing SB3..

Forum shows 
Location: Portland, OR, USA



Paul Webster
http://dabdig.blogspot.com
author of \"now playing\" plugins covering radio france (fip etc), kcrw,
supla finland, abc australia, cbc/radio-canada and rte ireland

Paul Webster's Profile: http://forums.slimdevices.com/member.php?userid=105
View this thread: http://forums.slimdevices.com/showthread.php?t=113729

___
discuss mailing list
discuss@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/discuss


Re: [slim] Squeezeboxen for sale

2021-01-22 Thread florca


Where are you? If you're in the town of Plympton, South Devon, then
about 10 miles from me and interested in a good Boom and maybe the
failing SB3..



Odroid HC1 / Armbian Stretch LMS & LocalPlayer
4x Slim Devices SB3 (White)
1x Boom, 1x Radio
2x Joggler + Squeezeplay / Squeezelite + Topping TP30

florca's Profile: http://forums.slimdevices.com/member.php?userid=7486
View this thread: http://forums.slimdevices.com/showthread.php?t=113729

___
discuss mailing list
discuss@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/discuss