/weather-dash

Flask app that fetches live data.

Primary LanguagePythonMIT LicenseMIT

Weather Dash

Weather dash is a flask app that adds weather cards to your dashboard for different cities. The app fetches live weather data from OpenWeatherMap

Folder Structure

.
├── Images
├── LICENSE
├── README.md
├── bin
├── include
├── lib
├── pip-selfcheck.json
├── requirements.txt
└── src

src

.
├── app.py
├── app.pyc
└── weatherwidget
    ├── __init__.py
    ├── __init__.pyc
    ├── forms.py
    ├── forms.pyc
    ├── models.py
    ├── models.pyc
    ├── routes.py
    ├── routes.pyc
    ├── static
    ├── templates
    └── weather.db

How to use

Clone Repository

git clone https://github.com/anish03/weather-widget.git

Activate Virtualenv

source bin/activate

Install dependencies

pip install -r requirements.txt

Run on localhost

cd src/
flask run

API endpoints

Register

  • URL: /register

  • Method: GET | POST

  • URL Params: None

Account

  • URL: /account

  • Method: GET | POST

  • URL Params: None

New Post

  • URL: /post/new

  • Method: POST

  • URL Params: None

Post

  • URL: /post/:id

  • Method: GET

  • URL Params:

    Required

    id=[integer]