Skip to content
Snippets Groups Projects
Forked from Owen Graham / visualizer-embed
This fork has diverged from the upstream repository.
Name Last commit Last update
htdocs
visualizer
.gitignore
README.md
requirements.txt

AMRDC Data Visualizer (powered by Apache ECharts)

Dynamic, zoomable graph of hourly Automatic Weather Station (AWS) data, by year. Supports overlaying multiple years' and/or stations' data.

Demonstration: https://amrc.ssec.wisc.edu/ograham/visualizer-echarts/

Setup Options

On the flask development server

Clone this repository, install the requirements, and run flask --app=visualizer run --debug.

On the production WSGI server gunicorn

Clone this repository, install the requirements, and run gunicorn visualizer:app.

As CGI on Apache (expect poor performance)

Clone this repository to a directory outside of the Apache document root.

Install the requirements to a virtual environment called venv:

command -v virtualenv > /dev/null || pip3 install virtualenv
virtualenv -m venv
. ./venv/bin/activate
pip install -r requirements.txt
deactivate

Finally, make a symlink to htdocs from inside the Apache document root. The Apache configuration will have to allow such links outside of the document root, as well as all rules in htdocs/.htaccess.

On amrc, the document root is /data/web/amrc/htdocs/ and we want the visualizer to appear at /ograham/visualizer-echarts/ on the web, so the linking command is ln -sT "$PWD/htdocs" /data/web/amrc/htdocs/ograham/visualizer-echarts.