https://github.com/cfmvcarlos/global_temperature
This program requests a map from MapBox and weather data from OpenWeatherMap, displaying the current temperature on a canvas.
https://github.com/cfmvcarlos/global_temperature
javascript mapbox-api openweathermap-api
Last synced: about 1 year ago
JSON representation
This program requests a map from MapBox and weather data from OpenWeatherMap, displaying the current temperature on a canvas.
- Host: GitHub
- URL: https://github.com/cfmvcarlos/global_temperature
- Owner: CFMVCarlos
- License: mit
- Created: 2020-09-18T11:59:25.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-11-23T16:19:16.000Z (over 1 year ago)
- Last Synced: 2025-01-30T13:28:39.981Z (over 1 year ago)
- Topics: javascript, mapbox-api, openweathermap-api
- Language: JavaScript
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Global Temperature
This program requests a map from MapBox and weather data from OpenWeatherMap, displaying the current temperature on a canvas.
## Prerequisites
You will need to register for:
- [MapBox](https://www.mapbox.com/) 🗺
- [OpenWeatherMap](https://openweathermap.org/) ☀
## Setup
1. **MapBox Access Token**:
- Create an account on MapBox.
- Navigate to "Account" under your profile to generate an access token.
- Copy and paste the token into the `secret.json` file.
2. **OpenWeatherMap API Key**:
- Sign in to OpenWeatherMap.
- On the home page, click on the "API keys" tab to access your API key.
- Copy and paste the key into the `secret.json` file.
## Usage
Run the code using a live server extension. You will have an **INPUT** box to type in city names to receive weather data and a **BUTTON** to freeze/unfreeze the cities you entered.
## Contributing
If you encounter any errors or have suggestions for improvements, feel free to submit a *pull request*.
## Author
- [Carlos Valente](https://github.com/CFMVCarlos)