Dash-Leaflet-Tile-Weather-Explorer

YouTube Channel SubscribersDiscordGitHub followersSubreddit subscribersBlack code styleGitHub Sponsors

Dash-Leaflet-Tile-Weather-Explorer is a leaflet template aimed at showcasing 20 initial style tiles, current clouds and USA precipitation 1h, 24h, 48h.

This post is directed for other cartographerโ€™s that might be lurking in the mist, personally Iโ€™ve always found the art of map making very interesting. Over time how it has evolved from scribbles on a peace of paper to interactive GUIโ€™s:


The art of exploration and understanding of the world around us has never been easier with the advances we have seen in technology and information. These two images showcase the difference of a century, This tool Iโ€™ve created although simple would be considered magic if brought in front of the author of this 1858 map. My goal is to articulate, throughout history cartographerโ€™s have always been important and useful careers. From solving problems with disease, war, logistics and many other. Coveted is the person that can give an understanding of the world and now is the best time to explore and create the tools and maps of the future. Inspiration and a challenge to build and innovate exceeding initial seed planted with this project.

Features

  • 20 Map Styles: More styles could be added or the ones provided could be replaced.
  • Rain Radar: 1h, 24h, 48h rain radar
  • Cloud Radar: toggle the current clouds
  • User Location Detector: Click the find me button to pinpoint users location.
  • Full Screen Mode: inspect with the full width and height of your screens realestate

API Keys are required for the clouds and some map tiles:

Getting Started

To get started with Dash-Leaflet-Tile-Weather-Explorer, clone this repository to your local machine:

git clone https://github.com/pip-install-python/Dash-Leaflet-Tile-Weather-Explorer.git
cd weather_map

Ensure you have the following installed:

  • Python (3.6 or later)
  • pip
  • Virtual environment (recommended)
  • Create a config.json file in pages with the API Keys jawg-matrix-access-token, thunderforest-api-key, and openweathermap-appid

Installation

  1. Create and activate a virtual environment:

Windows:

python -m venv venv
.\venv\Scripts\activate
macOS/Linux:

macOS/Linux

python3 -m venv venv
source venv/bin/activate
  1. Install the required packages:
pip install -r requirements.txt

Running Examples

Navigate to the app.py file and execute the application:

python app.py
3 Likes

Thank you for this, @PipInstallPython
Looks impressive. I was trying to follow your repoโ€™s instructions for setting it up locally but got stuck in a few places.

Where is the requirements.txt file?

You also mention:

Create a config.json file in pages with the API Keys jawg-matrix-access-token, thunderforest-api-key, and openweathermap-appid

Would that just mean: jawg-matrix-access-token = my-token ?

I would just update the cd part so itโ€™s going into the right directory.

Yikes, one of those late night coding sessions and I forgot some basic stuff like a requirments.txt lol I fixed the issues and pushed a base config to refer to and edited the README.md to better articulate how to launch the project.

1 Like

Nice work โ€ฆ Iโ€™ve shared it per

3 Likes

Thanks Dave, apreciate you checking out the project. Also kutos on your plotly-dash-500 first time seeing that app really impressive work and index of project under the plotly dash umbrella.