Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kkulma/carbon-intensity-app
A web app showing how much electricity is made from renewable sources in different parts of UK
https://github.com/kkulma/carbon-intensity-app
carbon-footprint dataforgood docker githubactions rstats shiny
Last synced: about 2 months ago
JSON representation
A web app showing how much electricity is made from renewable sources in different parts of UK
- Host: GitHub
- URL: https://github.com/kkulma/carbon-intensity-app
- Owner: KKulma
- Created: 2021-02-17T21:56:15.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-06-11T06:15:12.000Z (6 months ago)
- Last Synced: 2024-06-11T17:30:31.877Z (6 months ago)
- Topics: carbon-footprint, dataforgood, docker, githubactions, rstats, shiny
- Language: R
- Homepage: http://kasiakulma.shinyapps.io/carbon-intensity-app
- Size: 85.1 MB
- Stars: 23
- Watchers: 2
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[![update data](https://github.com/KKulma/carbon-intensity-app/actions/workflows/schedule.yml/badge.svg)](https://github.com/KKulma/carbon-intensity-app/actions/workflows/schedule.yml) [![deploy](https://github.com/KKulma/carbon-intensity-app/actions/workflows/deploy.yml/badge.svg)](https://github.com/KKulma/carbon-intensity-app/actions/workflows/deploy.yml)
# How much electricity in UK comes from low-carbon sources?
Our electricity is not made equal and can be associated with higher or lower carbon intensity. How much of UK's electricity is produced using low-carbon sources? Has this proportion decreased or increased over time? [This Shiny app](https://kasiakulma.shinyapps.io/carbon-intensity-app/) will help answer these questions.
The web app and the underlying data pipeline was built using open source tools. Web app's front-end was built using Shiny, electricity composition was extracted from National Grid's [Carbon Intensity API](https://carbonintensity.org.uk/) using [{intensegRid}](https://kkulma.github.io/intensegRid/articles/intro-to-carbon-intensity.html) package. Data and deployment pipelines were developed using GitHub Actions: `schedule.yml` pulls the carbon intensity data from the API, saves it in `data/daily_ci.rds` file daily and pushes the changes to the repo; `deploy.yml` deploys the changes to the [shinyapps.io server](https://kasiakulma.shinyapps.io/carbon-intensity-app/) on push.
## Getting started
### Run locally
#### Using Docker (+ docker-compose)
Move into repository's root directory and run the following command:
```
$ docker-compose up -d dev
```Point your web browser to `http://localhost:8080`.
You can keep editing the source code: changes will be available instantly.Once you're done, run:
```
$ docker-compose down
```