Skip to content

This is a full-stack web application dedicated to optimizing users' thermal comfort. Users can opt-in to receive automated text alerts based on the heat index for their city. The heat index is calculated using air temperature and humidity data from the OpenWeather API. Text alerts from the Twilio API are triggered only when the heat index reache…

Notifications You must be signed in to change notification settings

samvmdev/heat-resilience-app

Repository files navigation

heat-resilience-app

This is a full-stack create-read-update-delete (CRUD) app dedicated to improving users' thermal comfort and increasing heat resilience.

MVP

Users will be able to:

  • Create a profile
  • Log in and modify their settings (e.g. opt in or out of notifications)
  • Receive automated text message alerts based on heat index (function of air temperature and relative humidity)
  • Keep track of how many alerts they have received over time on a Dashboard
  • Visit About & Resilience Resources pages

2.0

  • Refactor with FastAPI for handling async/await, promises
  • Incorporate authentication (LDAP? AD?)

APIs Required

Tech Stack

  • Python, Flask, Javascript, HTML, CSS, Chart.js, Bootstrap, PostgreSQL, SQLAlchemy, AJAX, Jinja, Pytest

How to Start the App

  • Clone this repo into your local machine
  • Run virtualenv env to create a virtual environment on your machine
  • Run source env/bin/activate to activate the virtual environment
  • Run pip3 install -r requirements.txt
  • Run source secrets.sh
  • Run python3 server.py

Images

  • Homepage: homepage

  • Dashboard Chart: chart

  • View Settings: view-settings

  • Update Settings: update-settings

  • Resilience Resources: resilience

  • Twilio Text Message: text-alerts

System Architecture

  • The database has normalized data.

About

This is a full-stack web application dedicated to optimizing users' thermal comfort. Users can opt-in to receive automated text alerts based on the heat index for their city. The heat index is calculated using air temperature and humidity data from the OpenWeather API. Text alerts from the Twilio API are triggered only when the heat index reache…

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published