We are a collective working to make a free and open source alert & reporting system for Air Quality called "SpikeAlerts".
This code is the base of a SpikeAlerts system. All steps to set up an instance of SpikeAlerts should be included. Anyone, anywhere can set up their own instance.
A general overview of the repository:
- .env.example - The base environment variables needed for the system to run
- .env.sensors.example - The environment variables needed for updating the Sensors from their APIs
- requirements.txt - The Python libraries needed beyond base python 3.10
- /Database - Files to initialize the database
- /App - The SpikeAlerts Application. Run with python App/spikealerts.py
Please see the readme in the /Database directory
.env.example
and .env.sensors.example
have some directions on how to create your own environment files. Presently, the extensions are not ready
This can be done in a number of ways (eg. miniconda). The Python requirements are in requirements.txt
. If you use miniconda, below is an example of an environment.yml
file that will set up an environment called SpikeAlerts. You can create this environment with conda env create -f environment.yml
environment.yml:
name: SpikeAlerts
channels:
- conda-forge
- defaults
dependencies:
- python =3.10
- pip
- geopandas
- psycopg2-binary
- python-dotenv
Here's how you can run the app from a terminal:
cd home/Documents/GitHub/SpikeAlerts # Change directory to this Repository
conda activate SpikeAlerts # Activate the Python Environment
python App/spikealerts.py # Run the App
You should be able to see the "Sensors", "Active Alerts", "Archived Alerts", "Places of Interest" tables updating.
We welcome collaboration! Please check out CONTRIBUTING.md
.
Rob Hendrickson
Priya Dalal-Whelan
Dan Raskin
Mateo Frumholtz
Doug Carmody
Jenni Lansing
Lucy Shapiro
Connor Stratton, Urszula Parfieniuk, Michael Wilson, Nazir Khan, Alice Froehlich, Megan Greenberg, Mary Marek-Spartz, Kerry Wang, Daniel Furata, Eamonn Fetherston, Jake Ford
Thank you for organizing, discussion, feedback, research, and everything in between!
We also acknowledge the preliminary work of the Quality Air, Quality Cities team.