##// END OF EJS Templates
Show More
Commit message Age Author Refs
r91:fc973bc4c5ef
fix colormaps
0
r90:8fcf9badf399
Add english version report
0
r89:0406c14f4c34
Add events in sophy data, fix header
0
r88:b6f1c933da52
Add time.sleep in while bucle
root
0
r87:d51a0fc7d9e2
Add history events to sophy plots
0
r86:2445d9c37bba
MUF PerĂº fix data index
0
r85:74022bdd356b
MUF Peru IRI 2020
0
r84:a831c0e60bea
new fix
0
r83:3bcf6d9c6ab6
minor change amisr HA
0
r82:cedb30d8a337
Final fix MUF PerĂº
0
< 1 2 3 4 5 6 7 .. 10 >

Realtime web app

This application plots data in realtime from instruments, using zmq protocol

Installation

We recommend using docker/docker-compose for test/production but you can install the aplication as a normal django app.

1. Download

Download the application realtime_web to your workspace

$ cd /path/to/your/workspace
$ git clone http://intranet.igp.gob.pe:8082/realtime_web && cd realtime_web

2. Config app

Update enviroment vars (/path/to/app/.env)

HTTP_PORT
ZMQ_PORT

Create a copy of settings.py.template to settings.py (/path/to/app/realtime/settings.py.template)

Update settings vars

SECRET_KEY (You can generate at https://miniwebtool.com/django-secret-key-generator/)
ALLOWED_HOSTS
STATIC_URL (by default '/realtime/static')
LOGIN_REDIRECT_URL (by default '/realtime/admin')
LOGOUT_REDIRECT_URL (by default '/realtime')
BASE_URL (by default 'realtime')

Update in nginx conf static location (/path/to/app/nginx/app.conf)

location ( by default '/realtime/static/')

3. Build application, make migrations and create superuser (only once at installation)

$ cd /path/to/app
$ docker-compose build
$ docker-compose run web python manage.py makemigrations
$ docker-compose run web python manage.py migrate
$ docker-compose run web python manage.py loaddata plotter/fixtures/plotter_data.json
$ docker-compose run web python manage.py collectstatic
$ docker-compose run web python manage.py createsuperuser

4. Run containers

$ docker-compose up -d

Maintenance (upgrade app)

Use the following commands when upgrading app from repo

$