pyronear / pyro-platform

Detection & monitoring platform of wildfires
https://platform.pyronear.org/
Apache License 2.0
10 stars 11 forks source link

Using real calculated risk scores for each department to be displayed on the map #34

Closed nrslt closed 3 years ago

nrslt commented 3 years ago

Hi guys,

This PR adds real risk scores data to the web app.

At this point, the data is retrieved in a 'static' way from here 'https://github.com/pyronear/pyro-risks/releases/download/v0.1.0-data/pyrorisk_20200901.json'

Note that 3 departments do not have risk scores, though it won't be a problem for the presentation as they're all located in the Ile de France region.

When I'll have time I'll look for a better way to store the data in a dcc.Store() object while launching the app, then using it to 'populate' the risk map.

ezgif-4-1014a5943b3a

Tell me if you have any remark, and thanks @frgfm for the help!

@frgfm @Akilditu

frgfm commented 3 years ago

@nrslt also I'm a tiny bit suspicious of that failed test. Could you try to run:

gunicorn --workers 1 -b 0.0.0.0:8050 --chdir ./app main:server

on your branch please? If this fails, we need to fix it

nrslt commented 3 years ago

Thanks @frgfm @Akilditu I added a gif of how the app renders.

@frgfm the gunicorn command works on my side, though there is still this docker-gunicorn failed test.. We can discuss it quickly today if you want.