Copyright © 2019 Teal Dulcet
Compare the output of free weather and air quality APIs and open source sun/moon JavaScript libraries. Click “Submit” to show. Also see 📅 Emoji Holidays.
To test a location other then your current, open your browsers web console (In Firefox, open the menu “≡” >
“Web
Developer” > “Web Console”) and run aweather(true, latitude, longitude)
to show the weather,
run aair(latitude, longitude)
to show the air quality and run amoon(latitude, longitude)
to show the moon info, replacing
latitude
and longitude
with the respective latitude and longitude of the location.
🌡️ | |
---|---|
💦 | |
💨 |
Uses the OpenWeatherMap Weather API.
Uses the Yahoo Weather API, the Yahoo Weather API Proxy and the CORS Anywhere Reverse Proxy.
Uses the WeatherAPI.com API.
Uses the Tomorrow.io Weather API.
Uses the OpenWeatherMap Air Quality API. Includes the Air quality index (AQI) and raw pollutant measurements.
Uses the World Air Quality Index Project API. Includes the individual Air quality indexes (AQI) for some pollutants and the weather. Not all pollutant and weather fields are available in all locations.
Uses the OpenAQ API. The values are raw pollutant measurements and their units may be different between locations. Not all pollutant fields are available in all locations.
⚠️ Warning: This API has several unresolved issues and can return old data from inactive locations.
Adapted from Moontool and the Sun
and moon rise/set project. See the moon.js and riseset.js files respectively.
Uses the SunCalc library.
⚠️ Warning: This library has several unresolved issues and the times may be incorrect.
Uses the MeeusJs library.
⚠️ Warning: This library has several unresolved issues and the times may be incorrect or for a different day.
ℹ️ Note: Moontool caused this webpage to hang on some dates and has been disabled.
Date | Moontool | SunCalc | MeeusJs |
---|