Enhydris-synoptic - Display current weather conditions
Enhydris-synoptic is an app that adds a page to Enhydris that shows current conditions in several stations.
Note that it does not check permissions; any synoptic view created will be public, regardless of whether the timeseries from which it is derived are marked top secret.
Enhydris-synoptic is free software, available under the GNU Affero General Public License.
Installing and configuring
-
pip install enhydris-synoptic
-
In the Enhydris
settings.py
file, addenhydris_synoptic
toINSTALLED_APPS
, and setENHYDRIS_SYNOPTIC_ROOT
andENHYDRIS_SYNOPTIC_URL
.Enhydris-synoptic works by creating static files which are then served by the web server.
ENHYDRIS_SYNOPTIC_ROOT
indicates where this files shall be stored.ENHYDRIS_SYNOPTIC_URL
is currently not used anywhere, but it's better to set it anyway; later versions might start to use it without warning. -
In the Enhydris configuration directory, execute
python manage.py migrate
. -
Run
celery
andcelerybeat
, and configurecelerybeat
to execute theenhydris_synoptic.tasks.create_static_files
task once in a while. -
Configure your web server to serve
ENHYDRIS_SYNOPTIC_ROOT
atENHYDRIS_SYNOPTIC_URL
. -
Go to the admin and setup a view.
After celery executes, the report will be available at
ENHYDRIS_SYNOPTIC_URL + slug + '/'
, where slug
is the URL identifier
given to the synoptic view.