Skip to content

Commit

Permalink
1. Removed charts which could be obsolete in future. Added reference …
Browse files Browse the repository at this point in the history
…to crontab folder from em-public dashboard. 2. Added note to update once issue e-mission#1048 is checked in.  3. Removed instructions to use mongodb directly.
  • Loading branch information
iantei committed Mar 19, 2024
1 parent 9a85c62 commit 3909eb2
Showing 1 changed file with 3 additions and 18 deletions.
21 changes: 3 additions & 18 deletions docs/dev/publicdashboard/Working_with_public_dashboard.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ services:
This will load the dataset saved in the MongoDB as `Stage_database`.

What if we want to load a different dataset than staging, and test for a different program/study.
Let us consider the example below:
Let us consider the example below:
(Note: This might need to updated once https://github.com/e-mission/e-mission-docs/issues/1048 issue is checked-in.)
```
services:
notebook-server:
Expand Down Expand Up @@ -103,13 +104,8 @@ Execution of notebooks
```
$ (emission) root@06f07def2c0e:/usr/src/app/saved-notebooks# PYTHONPATH=.. python bin/update_mappings.py mapping_dictionaries.ipynb
$ (emission) root@06f07def2c0e:/usr/src/app/saved-notebooks# PYTHONPATH=.. python bin/generate_plots.py generic_metrics.ipynb default
$ (emission) root@06f07def2c0e:/usr/src/app/saved-notebooks# PYTHONPATH=.. python bin/generate_plots.py generic_metrics_sensed.ipynb default
$ (emission) root@06f07def2c0e:/usr/src/app/saved-notebooks# PYTHONPATH=.. python bin/generate_plots.py generic_timeseries.ipynb default
$ (emission) root@06f07def2c0e:/usr/src/app/saved-notebooks# PYTHONPATH=.. python bin/generate_plots.py mode_specific_metrics.ipynb default
$ (emission) root@06f07def2c0e:/usr/src/app/saved-notebooks# PYTHONPATH=.. python bin/generate_plots.py mode_specific_timeseries.ipynb default
$ (emission) root@06f07def2c0e:/usr/src/app/saved-notebooks# PYTHONPATH=.. python bin/generate_plots.py energy_calculations.ipynb default
```
The above script will generate all the charts from all the notebooks. Execute one notebook script at a time.
Refer to additional charts from https://github.com/e-mission/em-public-dashboard/blob/main/viz_scripts/docker/crontab

Then go to http://localhost:3274/

Expand All @@ -121,18 +117,7 @@ and test.
Note: Make sure the Year and Month parameter for the executing notebook is not None. If it's set to None, it will not generate the charts.

# Launch and explore the database
```
$ docker-compose -f docker-compose.yml up
$ docker ps
$ docker exec -it em-public-dashboard-db-1 mongo
$ show dbs
$ use <database_name>
$ show collections
```

Most useful collection: `Stage_analysis_timeseries`

Better way to explore and modify database:
- Through the Server code

```
Expand Down

0 comments on commit 3909eb2

Please sign in to comment.