Code for weather.amcharts.com
Version: 1.0.5
amCharts Weather Map is a JavaScript library that helps your create beautiful, dynamically-updated, searchable maps and charts with all kinds of weather-related information
Before you start, ensure you have your own OpenWeather API-Key to be able to retrieve the weather data.
You just want to give it a quick try and check it's capabilities, follow these few points.
Uncompressed (development version)
/
anywhere you want or leave it there./build
in your anywhere (actually not necessary)/assets/js/OPENWEATHER_APIKEY.js
./index.html
and voilá.Compressed (production version)
/build
anywhere you want or leave it there./build/assets/js/OPENWEATHER_APIKEY.js
./build/index.html
and voilá.If you are going to run this tool under SSL-encoded URL, you'll need to update
the OpenWeather API endpoint in your OPENWEATHER_APIKEY.js
. The default one
is as follows:
OPENWEATHER_ENDPOINT = "http://api.openweathermap.org/data/2.5/";
To use the SSL-enabled endpoint, update it to:
OPENWEATHER_ENDPOINT = "https://pro.openweathermap.org/data/2.5/";
Please note, that SSL connection is not available with their free and Starup subscription plans. You'll need at least Developer subscription.
You did it quick and dirty and now you feel to mess around with it? Here we go, this is your new route.
/assets
and get crazy (not the one in /build
)./assets/js/OPENWEATHER_APIKEY.js
.index.html
as well.index.html
in your browser to enjoy all your changes.how to build
.We use gruntjs
to do all the magic behind the scenes.
It minifies and combines several files together to lower the payload of the web-app.
/
of this web-app in your terminal> npm install -D
> bower install
> grunt
/build
, place it anywhere you want and voilá.Important thing to know is this: amCharts Weather Map is not a product. It's rather a showcase of what can be done with amCharts products. While we'll do our best to answer your queries in GitHub issue tracker, we won't be able to extend full-fledged amCharts support service to this tool.
amCharts Weather Map library is licensed under Apache License 2.0.
This basically means you're free to use or modify it, even make your own versions or completely different products out of them.
Please see attached file "license.txt" for the complete license or online here:
http://www.apache.org/licenses/LICENSE-2.0
Important! amCharts Weather Maps relies on other amCharts products such as JavaScript Maps and JavaScript Charts, that are licensed differently.
appid
parameter for OpenWeather API calldefaultStations
in config, top 15 by population has been hardcodedloadMap
to dynamically replace the map files and search contextThis tool uses OpenWeatherMap API.
This tool relies on data extracted from GeoNames.
It also uses amCharts JavaScript libraries: JavaScript Maps and JavaScript Charts