Django and Leaflet application that collects tracking information using IMAP from a mailbox and displays it on a collection of layers provided by Geoserver. The application also downloads observation data from automatic weather stations.
This project uses confy to set environment variables (in a .env
file).
The following variables are required for the project to run:
DATABASE_URL="postgis://USER:PASSWORD@HOST:PORT/DATABASE_NAME"
SECRET_KEY="ThisIsASecretKey"
Variables below may also need to be defined (these are context-dependent):
DEBUG=True
CSRF_COOKIE_SECURE=False
SESSION_COOKIE_SECURE=False
ALLOWED_DOMAINS=".domain.wa.gov.au,localhost"
EMAIL_HOST="email.host"
EMAIL_PORT=25
EMAIL_USER="username@dbca.wa.gov.au"
EMAIL_PASSWORD="password"
TRACPLUS_URL="https://your-trackplus-gateway-url/parameters"
DFES_URL="https://dfes-resource-api/endpoint"
DFES_USER="username"
DFES_PASS="password"
KMI_VEHICLE_BASE_URL="https://kmi.base.url/json/endpoint"