klimatkollen-deprecated
Deprecated code for Klimatkollen's old frontend
Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (16.4%) to scientific vocabulary
Keywords from Contributors
Repository
Deprecated code for Klimatkollen's old frontend
Basic Info
- Host: GitHub
- Owner: Klimatbyran
- License: other
- Language: TypeScript
- Default Branch: staging
- Homepage: https://www.klimatkollen.se
- Size: 188 MB
Statistics
- Stars: 47
- Watchers: 4
- Forks: 49
- Open Issues: 12
- Releases: 0
Metadata Files
README.md
Klimatkollen
Please observe! This is the deprecated code for klimatkollen.se. Any improvements/changes/fixes should be made in the new repo! Only exceptions are work on the data processing pipeline, as this is used by the new site as well.
Free our climate data!
Klimatkollen is an open source and citizen-driven climate data platform aimed at visualising local climate data in Sweden.
The problem: Sweden’s 290 cities and municipalities are not slashing carbon emissions fast enough to be in line with the Paris Agreement. Climate data that can help us is often locked behind paywalls, or sits in complex government databases. If we can’t clearly see how much CO2 is being emitted, from which sources and how quickly we need to decarbonise – we can’t create a public opinion strong enough to change the course of our future. This needs to change.
That’s why we’re building a data-driven movement of climate-savvy developers to help us find and visualise climate data for the public. Climb aboard!
Join our Discord and set our climate data free!
Klimatkollen #FreeClimateData
Building and running locally
If you're starting from scratch, and working with GitHub, NodeJS and so on is new to you, read doc/getting-started.md.
We use next.js and Typescript and it's pretty straightforward to get started. After cloning the repo run:
npm ci
npm run dev
This opens up a webserver on http://localhost:3000. Just edit the code and see the live refresh.
The project can also be run with docker compose with --watch (v2.22.0+) for live refresh:
docker compose up --build --watch
Data overview
In very general terms, Klimatkollen presents:
- Detailed information about Swedish municipalities' emissions...
- ...and their remaining emission budget based on the Paris Agreement.
- Other key point indicators for sustainability transition, such as electric car charger density.
- Contextual information to help understand the significance of the above.
File overview
The toplevel directory contains a lot of files and folders. You can just ignore most of them. Take note of:
README.md- this document.data: Our data processing pipeline, written in Python. This can more or less be used/edited independently of the rest of the repository. Seedata/README.md.data/facts: Copies of source datasets.
doc: Documentation and guides, they might answer many questions.doc/getting-started.md: Detailed setup instructions for the web project.doc/contributing.md: Good to know before making your first contribution.
pagesandcomponents: Source code for almost everything visible on the website's pages.public: Files that will be served directly on the website.public/locales: Language files defining translations of the website.
Code architecture overview
How does everything fit together, code-wise?
- Copies of source datasets are under
data/facts. - We run the Python scripts under
datato producedata/output/climate-data.jsonfrom those datasets. - The latest copy of
data/output/climate-data.jsonis always checked into version control. - The rest of the website source code loads
data/output/climate-data.json. - The framework
next.jsis used to compile actual HTML pages at runtime. next.jscaches each page for serving, to serve it faster for each new visitor.
Contributing
The idea behind Klimatkollen is to give citizens access to the climate data we need to meet the goals of the Paris Agreement – and save our own future.
Do you have an idea for a feature you think should be added to the project? Before jumping into the code, it's a good idea to discuss your idea in the Discord server. That way you can find out if someone is already planning work in that area, or if your suggestion aligns with other people's thoughts. You can always submit an issue explaining your suggestion. We try to review the issues as soon as possible, but be aware that the team is at times very busy. Again, feel free to ask for a review on Discord!
Looking for ideas on what needs to be done? We appreciate help on existing issues very much. If you pick one up, remember to leave a comment saying you're working on it, and roughly when you expect to report progress. This helps others avoid double work and know what to expect.
Testing, bug fixes, typos or fact checking of our data is highly appreciated.
See doc/contributing.md before making your first contribution.
Contact
Join the Discord server in the introduction or send an email to hej@klimatkollen.se.
Supporters and Partners
This work wouldn't have been possible without the support from
Google.org, Postkodstiftelsen.
We'd also like to thank our current and former partners
ClimateView, Klimatklubben.se, Researcher's Desk, Exponential Roadmap, WWF, We Don't Have Time, Våra Barns Klimat, Argand, StormGeo, Iteam, Precisit, Climate AI Nordics.
LICENSE
This project is licensed under the terms of the Apache 2.0 © Klimatbyrån Ideell Förening.
Owner
- Name: Klimatbyrån
- Login: Klimatbyran
- Kind: organization
- Repositories: 1
- Profile: https://github.com/Klimatbyran
GitHub Events
Total
- Issues event: 49
- Watch event: 1
- Delete event: 38
- Issue comment event: 23
- Push event: 32
- Pull request review event: 1
- Pull request event: 38
- Create event: 16
Last Year
- Issues event: 49
- Watch event: 1
- Delete event: 38
- Issue comment event: 23
- Push event: 32
- Pull request review event: 1
- Pull request event: 38
- Create event: 16
Committers
Last synced: 12 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| Elvira | e****m | 281 |
| Samuel Plumppu | 6****t | 91 |
| Johanna Grahn | j****n@i****e | 42 |
| Emil Ahlbäck | e****k@i****e | 30 |
| Mikaela Lundsgård | 5****u | 16 |
| Christian Landgren | c****n@l****u | 14 |
| Ludvig Janiuk | l****k@g****m | 13 |
| Gabrielle Kamph | 7****h | 13 |
| Gabrielle Kamph | g****h@G****n | 12 |
| Rickard Natt och Dag | r****g@i****m | 11 |
| Elvira Boman | 8 | |
| Charlotta Jaunviksna | c****a@g****m | 7 |
| Kayla Woodbury | 5****y | 6 |
| datalowe | d****e@p****e | 5 |
| Elias Martinsson | 1****n | 4 |
| schweinryder | w****b@g****m | 4 |
| Johanna Månsson Grahn | j****a@J****l | 3 |
| Kristoffer Larberg | 5****g | 3 |
| Larissa Lang | 1****s | 3 |
| Mathias Bergqvist | m****v@g****m | 3 |
| Matthew Hutter | m****r@g****m | 3 |
| mdciofalo | 1****o | 3 |
| Erik Hellman | e****n@i****e | 2 |
| Adebayo Ajayi | 5****h | 2 |
| Alexander Sandström | 5****k | 2 |
| Anna Loverus | a****s | 2 |
| Simon Mossmyr | m****r@l****m | 2 |
| Simon | c****t@s****s | 2 |
| SimonAM | s****n@g****m | 2 |
| svjson | j****n@g****m | 2 |
| and 17 more... | ||
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 11 months ago
All Time
- Total issues: 69
- Total pull requests: 152
- Average time to close issues: 9 months
- Average time to close pull requests: 7 days
- Total issue authors: 13
- Total pull request authors: 23
- Average comments per issue: 1.41
- Average comments per pull request: 1.38
- Merged pull requests: 134
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 12
- Pull requests: 38
- Average time to close issues: 2 months
- Average time to close pull requests: 2 days
- Issue authors: 4
- Pull request authors: 6
- Average comments per issue: 1.5
- Average comments per pull request: 1.13
- Merged pull requests: 35
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- Greenheart (4)
- elvbom (4)
- Klimatkollen (3)
- osirisguitar (2)
- LudwikJaniuk (2)
- irony (1)
- kaylawoodbury (1)
- Abbe98 (1)
- mull (1)
- olavG91 (1)
Pull Request Authors
- elvbom (55)
- mull (29)
- mittistormen (23)
- gabriellekamph (16)
- Greenheart (15)
- mikaelaalu (6)
- mdciofalo (5)
- irony (3)
- Abbe98 (2)
- rrostt (1)
- believer (1)
- tildalundgren (1)
- kaylawoodbury (1)
- medvind (1)
- annaloverus (1)
Top Labels
Issue Labels
Pull Request Labels
Dependencies
- 1285 dependencies
- @babel/eslint-parser ^7.16.5 development
- @babel/plugin-syntax-jsx ^7.16.7 development
- @babel/preset-react ^7.16.7 development
- @iteam/eslint-config-react ^0.3.2 development
- @svgr/webpack ^6.2.0 development
- @testing-library/jest-dom ^5.16.1 development
- @testing-library/react ^12.1.2 development
- @testing-library/user-event 13.5.0 development
- @types/d3-path ^3.0.0 development
- @types/node 17.0.8 development
- @types/react 17.0.38 development
- @types/react-mailchimp-subscribe ^2.1.1 development
- @typescript-eslint/eslint-plugin ^5.9.0 development
- @typescript-eslint/parser ^5.9.0 development
- @vitejs/plugin-react 1.2.0 development
- eslint ^7.32.0 development
- eslint-config-next 12.0.7 development
- eslint-config-prettier ^8.3.0 development
- eslint-plugin-import ^2.25.4 development
- eslint-plugin-jsx-a11y ^6.5.1 development
- eslint-plugin-react ^7.28.0 development
- eslint-plugin-react-hooks ^4.3.0 development
- eslint-plugin-testing-library ^5.0.3 development
- prettier ^2.5.1 development
- typescript ^4.5.4 development
- vitest 0.7.12 development
- @danmarshall/deckgl-typings ^4.9.13
- @deck.gl/layers ^8.6.6
- @types/styled-components ^5.1.19
- @types/wikidata-sdk ^6.1.0
- axios ^0.25.0
- babel-plugin-polyfill-regenerator ^0.3.1
- babel-plugin-styled-components ^2.0.2
- bezier ^0.1.0
- bezier-curve ^1.0.0
- chart.js ^3.7.1
- csv-parse ^5.0.4
- d3-path ^3.0.1
- deck.gl ^8.6.6
- html-entities ^2.3.2
- jotai ^1.5.3
- md5 ^2.3.0
- next 12.0.7
- nextjs-progressbar ^0.0.14
- react 17.0.2
- react-chartjs-2 ^4.0.1
- react-cookie-consent ^7.4.1
- react-dom 17.0.2
- react-mailchimp-subscribe ^2.1.3
- react-map-gl ^6.1.19
- react-spring ^9.4.2
- styled-components ^5.3.3
- actions/checkout v3 composite
- actions/setup-node v3 composite
- bahmutov/npm-install v1 composite
- styfle/cancel-workflow-action 0.9.1 composite
- actions/checkout v3 composite
- actions/setup-node v3 composite
- bahmutov/npm-install v1 composite
- styfle/cancel-workflow-action 0.9.1 composite
- numpy *
- pandas *
- node 21-alpine3.18 build