•  
      reusable_code_components #495658
    JavaScript/ TypeScript, HTML/CSS, User Interface (UI) /User Experience (UX), MongoDB, REST APIs, Python Flask

    A simple Flask-based weather application that allows users to search current weather conditions by city name using the OpenWeatherMap API.

    The Flask Weather App enables users to enter a city name and fetch real-time weather data such as temperature (°C), weather description, humidity (%), and wind speed (m/s) using the OpenWeatherMap API. Built with Flask and HTML templating via Jinja2, the app provides a clean interface for displaying weather information. It requires Python 3.x along with Flask and Requests libraries. Users need to generate and configure their OpenWeatherMap API key in the app before running it. The application is lightweight, easy to set up, and useful as a starter project for integrating third-party APIs with Flask.

    Empty
    1. Clone the repo:
      git clone https://openforge.gov.in/plugins/git/smartblocks/WeatherApp.git

    2. Install dependencies:
      pip install flask requests

    3. Obtain an OpenWeatherMap API key from OpenWeatherMap and replace your_openweathermap_api_key_here in app.py with your key.

    4. Run the app:
      python app.py

    5. Open your browser at http://127.0.0.1:5000/ and enter a city name to get weather details.

    Flask Weather App A simple weather application built with Python and Flask that fetches current weather data using the OpenWeatherMap API.

    Features Search the weather by city name View temperature (°C), weather description, humidity (%), and wind speed (m/s) Built with Flask and Jinja2 templating Requirements Python 3.x Flask Requests Installation pip install flask requests

    Getting an API Key Visit OpenWeatherMap

    Sign up and log in

    Generate an API key under API Keys

    Replace your_openweathermap_api_key_here in app.py with your key

    Running the App - python app.py Then open:http://127.0.0.1:5000/​​​​​​​

    2025-06-02
    Active
    Sanjay Patel (sanjay_patel)
    #495658

    Follow-ups

    User avatar
    • Readme
      Something went wrong, the follow up content couldn't be loaded
      Only formatting have been changed, you should switch to markup to see the changes
    User avatar
    • Git Repository Url
      -https://openforge.gov.in/plugins/git/smartblocks/WeatherApp.git 
      +https://openforge.gov.in/plugins/git/smartblocks/WeatherApp