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
flask
development server
On the Clone this repository, install the requirements, and run
flask --app=visualizer run --debug
.
gunicorn
On the production WSGI server 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 isln -sT "$PWD/htdocs" /data/web/amrc/htdocs/ograham/visualizer-echarts
.