A curated list of open technology projects to sustain a stable climate, energy supply, biodiversity and natural resources.

ENERGYDATA.INFO

An open data platform created by the World Bank, providing access to datasets and data analytics that are relevant to the energy sector.
https://github.com/energy-data/energydata.info

Category: Energy Systems
Sub Category: Energy Data Accessibility and Integration

Last synced: about 15 hours ago
JSON representation

Repository metadata

energydata.info - open data and analytics for a sustainable energy future

README.md

Contributing

Requirements

Development

Initial provisioning

  1. Clone this repo
  2. cd energydata.info
  3. git submodule update --init --recursive
  4. Copy development.ini.sample to development.ini
  5. Change variables in development.ini:
    • beaker.session.secret
    • app.instance.uuid
    • ckanext.s3.*
    • Configure smtp for email
  6. Start the VM with vagrant up
  7. vagrant ssh to ssh into the VM.
  8. Fix the permissions: sudo usermod -aG docker $(whoami) && newgrp docker
    (this should be done by build_box.sh, but currently fails)
  9. source venv/bin/activate which will allow you to use the datacats command
  10. cd /vagrant
  11. datacats init to initialize the environment and choose an admin password

Booting

  1. In the repo directory vagrant up.
  2. Point your web browser to 192.168.101.99 (the address of the VM)
  3. Modifications to the CSS & templates will be reloaded automatically using vagrant sync. Adding templates or changing configuration files will not cause a server restart, check the next section to restart the server

Restarting the server

If you're adding new templates or new functionality to CKAN, you might need to restart the CKAN server.

  1. vagrant ssh to ssh into the VM
  2. source venv/bin/activate which will allow you to use the datacats command
  3. cd /vagrant (this is the synced folder with the git repo)
  4. ./reload-server.sh to reload the server

Styles (Less)

Less is compiled in the local machine, not vagrant.
The resulting styles should be committed to the repo.

Requirements

  • Node (v4.2.x) & Npm (nvm usage is advised)

The versions mentioned are the ones used during development. It could work with newer ones.

After these basic requirements are met, run the following commands in the website's folder:

npm install

Watch for changes

npm run less-watch

Starts the watcher and recompiles when files change.

Deploy instructions

This assumes a base OS of Ubuntu 16.04

  1. Clone this repo on the target machine
  2. Follow the instructions in build-box/build_box.sh, changing vagrant to this repository's source directory
  3. Copy development.ini.sample to development.ini
  4. Change variables in development.ini:
    • beaker.session.secret
    • app.instance.uuid
    • ckanext.s3.*
    • Configure smtp for email
  5. cd wbg-energydata
  6. datacats init and choose an admin password
  7. datacats reload
  8. datacats paster -d celeryd
  9. For HTTPS, install Let's Encrypt and uncomment the HTTPS section of the nginx configuration

New iteration

To deploy a new iteration of the data platform to the production environment, follow these steps:

  1. ssh into the machine
  2. cd wbg-energydata
  3. git checkout master
  4. git pull origin master
  5. [only if you enable a new plugin] datacats install
  6. ./reload-server.sh to restart the server

Setting up the harvester

  1. cd wbg-energydata
  2. datacats tweak --add-redis
  3. datacats reload
  4. cd ckanext-harvest
  5. datacats paster harvester initdb
  6. datacats paster -d harvester gather_consumer
  7. datacats paster -d harvester fetch_consumer

Adding a new DCAT-JSON ArcGIS harvest source

  1. cd wbg-energydata/ckanext-harvest
  2. datacats paster harvester source energy-gis-arcgis http://data.energy-gis.opendata.arcgis.com/data.json dcat-json "Energy Sector GIS Working Group" true energy-sector-gis-working-group
  3. datacats paster harvester job-all to create and run a harvest job

Owner metadata


GitHub Events

Total
Last Year

Committers metadata

Last synced: 6 days ago

Total Commits: 239
Total Committers: 10
Avg Commits per committer: 23.9
Development Distribution Score (DDS): 0.682

Commits in past year: 0
Committers in past year: 0
Avg Commits per committer in past year: 0.0
Development Distribution Score (DDS) in past year: 0.0

Name Email Commits
Olaf Veerman o****n@g****m 76
Marc Farra m****a@g****m 67
Ricardo Mestre r****o@d****g 52
Naichen Zhao n****o@g****m 19
David Read d****d@h****m 14
Daniel da Silva d****l@d****g 4
Dylan D****n@d****g 3
carderne c****e@w****g 2
Drew Bollinger d****w@d****g 1
Dylan d****n@d****g 1

Committer domains:


Issue and Pull Request metadata

Last synced: 1 day ago

Total issues: 206
Total pull requests: 87
Average time to close issues: 4 months
Average time to close pull requests: 1 day
Total issue authors: 9
Total pull request authors: 3
Average comments per issue: 2.64
Average comments per pull request: 0.34
Merged pull request: 87
Bot issues: 0
Bot pull requests: 0

Past year issues: 2
Past year pull requests: 0
Past year average time to close issues: about 3 hours
Past year average time to close pull requests: N/A
Past year issue authors: 2
Past year pull request authors: 0
Past year average comments per issue: 0.0
Past year average comments per pull request: 0
Past year merged pull request: 0
Past year bot issues: 0
Past year bot pull requests: 0

More stats: https://issues.ecosyste.ms/repositories/lookup?url=https://github.com/energy-data/energydata.info

Top Issue Authors

  • olafveerman (92)
  • yanntanvez (40)
  • Naigege (27)
  • ClaraIV (21)
  • kamicut (9)
  • ojknight (9)
  • carderne (6)
  • bulhakovolexii (1)
  • Ly0n (1)

Top Pull Request Authors

  • olafveerman (45)
  • kamicut (24)
  • ricardoduplos (18)

Top Issue Labels

  • priority (36)
  • bug (6)
  • enhancement (3)

Top Pull Request Labels


Dependencies

package.json npm
  • less ^2.7.1 development
  • less-watch-compiler ^1.2.3 development
ckanext-extrafields/setup.py pypi
  • pycountry *

Score: 5.85793315448346