Skip to content


Folders and files

Last commit message
Last commit date

Latest commit


Repository files navigation

Environmental Health Channel

The Environmental Health Channel is an interactive web-based platform for creating and sharing environmental sensing and health data narratives. This data, shared by affected residents and collected by the Environmental Health Project (EHP), includes physical and psychosocial health symptoms, particulate pollution (PM2.5) air measurements, and personal stories from residents. This tool displays this data using visualization and exploratory data analysis techniques. This enables researchers, health professionals, and the public to interactively explore and share compelling scientific evidence of local impacts of oil and gas drilling.


First, get a Google Map JavaScript API key, and replace the api key in the folowing line in the /web/viz.html file.

<script src="[YOUR API KEY]"></script>

Then, obtain the ZCTA5 json file as documented in this project. Then run the following bash commands in the terminal:

cd [path of the ehp-channel folder]
mkdir data
cd data/
mkdir geo
cd geo/
mv [path of the ZCTA5 json file] .
mv [the ZCTA5 json file] zcta5.json
cd ../../py/

This will create a "data" folder in the "web" folder for the website. When running the python command, you will need to install all dependencies, see the libraries that I imported in the "" file. Because the "" file is shared with other projects, there are some libraries that are not used in this project. However, to run the code, please install all of them.


Here is an example of the apache config file (with https):

<VirtualHost *:443>
  SSLEngine on
  RewriteEngine On
  RewriteCond %{HTTP_HOST} !^envhealthchannel\.org [NC]
  RewriteCond %{HTTP_HOST} !^$
  RewriteRule ^/(.*)$1 [L,R=301]
  Header set Cache-Control "max-age=0, must-revalidate"
  DocumentRoot /[YOUR_PATH]/
  <Directory "/[YOUR_PATH]/">
    AddOutputFilterByType DEFLATE application/octet-stream
    AllowOverride None
    # Allow listing a directory that doesn't have index.html, and follow symlinks
    Options Indexes FollowSymLinks
    Order allow,deny
    Allow from all
  SSLCertificateFile /etc/letsencrypt/live/
  SSLCertificateKeyFile /etc/letsencrypt/live/
  Include /etc/letsencrypt/options-ssl-apache.conf
  SSLCertificateChainFile /etc/letsencrypt/live/

<VirtualHost *:80>
  RewriteEngine on
  RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [L,NE,R=permanent]

To add https support to the website, please refer to the "Setup https" section in the readme of this repository. To periodically update the data on the channel, set a cron job:

crontab -e

Then add the following line to the crontab:

*/30 * * * * cd /[YOUR_PATH]/; run-one python