https://github.com/dcronqvist/co2tracker
🌱 A four week project at Chalmers University of Technology, in collaboration with Ericsson
https://github.com/dcronqvist/co2tracker
co2-emissions ericsson
Last synced: over 1 year ago
JSON representation
🌱 A four week project at Chalmers University of Technology, in collaboration with Ericsson
- Host: GitHub
- URL: https://github.com/dcronqvist/co2tracker
- Owner: dcronqvist
- Created: 2020-11-17T09:19:34.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-12-19T00:56:20.000Z (over 5 years ago)
- Last Synced: 2025-01-06T01:29:09.564Z (over 1 year ago)
- Topics: co2-emissions, ericsson
- Language: Python
- Homepage:
- Size: 82 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Global Supply Chain CO2 Tracker 🌱
A four week project at Chalmers University in collaboration with Ericsson in the Course Sustainable development and ethics for computer science.
 
[Front end Demo is right here](https://co2demo.dcronqvist.se/)
[API Endpoints](https://co2.dcronqvist.se/)
## Vision 💡
The idea is to design a system that enables sustainable purchasing decisions by being able to track CO2 emissions throughout the supply chain. This will make it easier for consumers and producers to make more informed decisions regarding their purchases and visualize their impact in a growing circular economy.
We envision a system that calculates the accumulated amount of CO2 emissions by looking at two components, namely processes and transport. These affect the accumulated CO2 value of an end product. If you visualize this as a tree, you can imagine the nodes as products and the edges as either transport or a process. Where process is a change from one product to another, eg a raw material used to manufacture a new product. This enables a large tracking opportunity by following a product's path through the tree, however, this relies on reliable standards for product identification.
In practice, we want to structure a database that holds information about different processes and transports and how much CO2 they emit. Furthermore, we will create an API to communicate with this database - which enables producers and carriers to continuously update the amount of CO2 emissions made per process / mode of transport. In the database, we imagine that a process should depend on other processes, which will create this tree-like structure, from the end product at the top, and the basic raw materials at the bottom.
## Getting set up
Start by cloning the repo down locally
```shell
$ git clone https://github.com/dcronqvist/co2tracker
```
Then go to the folder and install required libs (flask, pymongo.. etc.)
```shell
$ cd co2tracker
$ python3 -m pip install -r requirements.txt
```
Then you should be set up.
All you have to do is make a copy of the config_template.json file and name it config.json. Remember to paste the connection string from MongoDB in the config.json file. You can of course change the port and host on which it is run if you want to.
To run the server you simply run:
```shell
$ python3 server.py
```
## Course page
[ENM156 - Sustainable development and ethics for computer science](https://student.portal.chalmers.se/en/chalmersstudies/courseinformation/pages/searchcourse.aspx?course_id=28619&parsergrp=3)
## Contributors
