openbsd-ports/x11/xglobe/files/getcloudmap
espie 477551d3b1 Add getcloudmap script, using OpenBSD tools (needs ImageMagick for
gif->png, though)

Use qt's qimgio (update qt first) if FLAVOR=gfx

Install documentation
2000-05-22 13:59:32 +00:00

10 lines
336 B
Bash
Executable File

#! /bin/sh
# Marc Espie, 2000
# Public domain
x=`ftp -o - \
'http://www.fourmilab.ch/cgi-bin/uncgi/Earth?imgsize=640&opt=-p&lat=-21&ns=North&lon=-134&ew=West&alt=986&img=irsat.bmp&daynight=-d' \
| grep "/earthview/cache/[0-9]*.gif" | awk -F\" '{ print $2 }'`
ftp -o clouds.gif "http://www.fourmilab.ch$x"
convert clouds.gif clouds.png