Skip to content

badele/world-datas-analysis

Repository files navigation

world-datas-analysis

Miscellaneous worlds data and analysis

grafana

Requirements

Installing prerequisites on various distributions

./install_requirements.sh

Works on :

  • Alpine
  • Archlinux
  • Ubuntu

Usage

View on Grafana

INFO: While waiting for DuckDB support in Grafana and to speed up data access from Grafana (especially for accessing views), the data is exported to the PostgreSQL database.

just import     # Import data to PostgreSQL (used by Grafana)
just chart      # Open Grafana (admin/admin)
just stop       # Stop the Grafana server

Note: The Grafana account credentials are admin/admin.

For developers: Convert data to Parquet format

Before having a dataset viewable in Grafana, you need to download and convert it to Parquet format. This reduces size and improves performance in DuckDB. Learn more about Parquet.

just download
just update

Scopes reference

When you add new data to this project, you can sync with reference data by scope.

For example, if you import a new dataset associated with cities, you can link them with geonames city elements

provider dataset wda_scope source nb_variables nb_entries
geonames wda_geonames_cities city https://geonames.org 98 534217
geonames wda_geonames_countries country https://geonames.org 20 252

Providers

provider description website nb_datasets nb_observations
vigilo Observations of the collaborative citizen application https://vigilo.city 1 25548

Datasets

provider real_provider dataset wda_scope wda_scope_ref description source nb_variables nb_observations nb_scopes
opendata3m opendata3m wda_opendata3m_ecocompteur_observations city wda_geonames_cities ecocompteur observations https://data.montpellier3m.fr/dataset/comptages-velo-et-pieton-issus-des-eco-compteurs/resource/edf3e04f-9409-40fe-be66 107 54149 11
vigilo vigilo wda_vigilo_observations city wda_geonames_cities vigilo citizen observations https://vigilo.city 111 25548 173

Todo

Status Category Scope Description
[x] Geonames Cities Geonames
[x] bike counter Montpellier Montpellier 3M
[x] vigilo Montpellier Vigilo
[ ] Enterprise Countries Sirene
[ ] Covid Countries Johns Hopkins University
[ ] NASA Countries Anormal température
[ ] Population Cities insee estimation
[ ] Population Cities insee
[ ] Population Countries United nation
[ ] Rental bike Montpellier Montpellier 3M
[ ] Weather Cities European Centre for Medium-Range Weather Forecasts
[ ] Weather Cities European Climate Assessment & Dataset
[ ] universitetetioslo Countries CO2 emissions

Project commands

justfile commands:
    browse                  # Browse world datas
    chart                   # Open browser to grafana page
    db-reset                # Reset duckdb database
    doc-update FAKEFILENAME # Update documentation
    docker-build            # Build the wda docker image
    docker-duckdb           # Run duckdb cli on docker
    docker-push             # Push the wda docker image to docker hub
    docker-run CMD=""       # Run the wda docker image
    help                    # This help
    import                  # Import datasets to sqlite
    lint                    # Lint the project
    packages                # Show installed packages
    precommit-check         # precommit check
    precommit-install       # Setup pre-commit
    precommit-update        # Update pre-commit
    reset                   # Reset grafana storage
    start                   # Start grafana
    stop                    # Stop grafana
    update                  # Update datasets