GithubHelp home page GithubHelp logo

odect's Introduction

ODECT

The Open Dynamic Electricity Composition Tracker (ODECT) was developed to create real-time insight in the variable environmental impact of electricity consumption. The model collects and models generation and import data for a complete electricity mix. This mix can be converted into environmental impact using impact factors. ODECT v1.0, is focussed dynamic Global Warming Potential (gCO2eq/kWh) of the Dutch electricity mix.

ODECT was developed as part of the master's thesis of Bas Jansen at Energy Management Research group of the University of Twente, Enschede, The Netherlands. For more information on the group's research, please visit: https://www.utwente.nl/en/eemcs/energy/

We believe that we can only transition to a sustainable society through transparency and openness. Hence we decided to make our efforts open source, such that society can fully benefit from and contribute to science. We invite everybody to join us in this cause.

Knowledge resources

ODECT is developed as part of the master's thesis. The thesis is openly available here

How to cite

When using ODECT for publications, please cite:

  • B. Jansen, "Modelling the dynamic greenhouse gas emission intensity of the Dutch electricity mix", Master's Thesis, Univeristy of Twente, Enschede, the Netherlands. Available here

Installation

The software requires Python 3.x (3.8 is tested) (https://www.python.org/) and depends on the Python libraries found in the requirements.txt file.

Install the dependencies: python -m pip install -r requirements.txt

Copy the template settings.py.example and rename into settings.py. Then insert personal API keys for ENTSO-e and KNMI databases in settings/config.py.

Running ODECT

The software can be run by executing main.py with the following flags:

python main.py
-s, --start: Start date in YYYYMMDD
-e, --end: End date in YYYYMMDD
-g, --graphs: Plots graphs
-j, --json: outputs emissions in JSON
-d, --influxdb: Writes output to an Influx 1.x database as specified in the config
--prune: Prunes the data folder to start clean

Usage example:

python main.py -s 20230314 -e 20231212 -g

Docker

A DockerFile and example docker-compose files are provided to create a docker image. The container can be build and started as follows:

docker build -t odect .

After succesful building, copy the example docker-compose.yaml.example file and rename to docker-compose.yaml. Enter your API keys and deploy using the following command:

docker-compose up -d 

Embedding this in your own docker-compose file, including a Grafana service and InfluxDB 1.x service is encouraged.

License

This software is made available under the Apache version 2.0 license: https://www.apache.org/licenses/LICENSE-2.0

The software depends on external software and libraries. These external packages are likely to contain other software which may be licenced under other licenses. It is the user's responsibility to ensure that the use of external software and libraries complies with any relevant licenses. A list of used Python libraries can be found in the requirements.txt file

Contact

In case of any ODECT related questions, please reach out to me:

Bas Jansen

odect's People

Contributors

genetx avatar ghoogsteen avatar basjjansen avatar

Stargazers

 avatar  avatar  avatar Mayk Thewessen avatar

Watchers

Aditya Pappu avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.