An open API service indexing awesome lists of open source software.

https://github.com/fernandod1/satellite-weather-map-generator

PHP script that scrapes satellite weather maps static images from some sources and generates an animated satellite weather map image.
https://github.com/fernandod1/satellite-weather-map-generator

php-scraper php-scrapper satellite-data satellite-images satellite-weather scraper scrapper-script scrapping-php weather weather-forecast weather-images weather-information

Last synced: 6 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# 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:
------------------------------------------------