WXforum.net

Web Weather => Weather Website PHP/AJAX scripting => Topic started by: hiljolodewijk on January 05, 2022, 08:31:46 AM

Title: Day-night map of the world
Post by: hiljolodewijk on January 05, 2022, 08:31:46 AM
Hi everyone,
On some weathersites I see a map of the world with the current day and night regions. Like this: https://i.stack.imgur.com/aYTEL.jpg
Is this a script what i can download somewhere or are these images drawn from another website? I'd like to have this script myself for some customization, but cannot find a script anywhere.

I hope anyone can help me?

Thanks in advance!
Title: Re: Day-night map of the world
Post by: rrrick8 on January 05, 2022, 09:04:18 AM
I use one from fourmilab.ch which centers on my location...
Code: [Select]
<img src="http://www.fourmilab.ch/cgi-bin/Earth?img=learth.evif&imgsize=250&dynimg=y&opt=-l&lat=40.200&ns=North&lon=89.600&ew=West&alt=35785&tle=&date=0&utc=&jd=" /> Just need to adjust your location and size you want.
You can see it here...
http://vermilionweather.com/wx7.php (http://vermilionweather.com/wx7.php)
This page is one of fan favorites.