Skip to content

PHP script that scrapes satellite weather maps static images from some sources and generates an animated satellite weather map image.

License

Notifications You must be signed in to change notification settings

fernandod1/Satellite-weather-map-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Satellite weather map animated image generator

PHP script that scrapes satellite weather maps static images from some sources and generates an animated satellite weather map images.

You can configure/add your own satellite weather images sources. Actually, it is configured to scrap images from these sources:

https://dsx.weather.com/util/image/map/DCT_SPECIAL11_1280x720.jpg
http://rammb.cira.colostate.edu/ramsdis/online/images/latest/tropical/tropical_ge_4km_ir4_floater_2.gif
https://weather.msfc.nasa.gov/cgi-bin/get-abi?satellite=GOESEastfullDiskband13&palette=ir2.pal&lat=16&lon=-62&type=Image&width=640&height=480&zoom=1&quality=50&map=standard


REQUIREMENTS:

  • PHP >=7.0
  • Librería imagick >= 3.1.0RC1

CONFIGURE FRECUENCY OF ANIMATED IMAGES GENERATOR:

You must create some cronjobs in your servers so catch new static satellite wweather map images from sources ans generate animated images. Adjust frecuency of cronjobs to suit your needs. Command lines to add is:

wget http://yourwebsite.com/script/index.php?op=cronjobTIPO1 >/dev/null 2>&1
wget http://yourwebsite.com/script/index.php?op=cronjobTIPO2 >/dev/null 2>&1
wget http://yourwebsite.com/script/index.php?op=cronjobTIPO3 >/dev/null 2>&1


DISPLAY ANIMATED GENERATED IMAGE:

Just add a html code like:

img src=https://yourwebsite.com/script/animation1.gif


EXAMPLES OF OUTPUT ANIMATED IMAGE GENERATED:

Releases

No releases published

Packages

No packages published

Languages