tubleronchik / service-robonomics-carbon-footprint

Service to offset CO2 footprint by burning tokens in Statemine network

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Robonomics Carbon Footprint Service

Service to offset CO2 footprint by burning tokens in Statemine network. 1 MWh of non-renewable electricity produces 1 ton of C02. 1 ton of C02 is covered by consuption of 1 token.

Installing

Clone the repository and edit config file.

gir clone https://github.com/tubleronchik/service-robonomics-carbon-footprint.git
cd service-robonomics-carbon-footprint
cp config/config_template.yaml config/config.yaml 

Configuration description

Do not edit config/config_template.yaml!

robonomics:
  seed: <seed for account in Robonomics Network where Digital Twin will be created>
statemine:
  seed: <seed for admin account with green tokens in Statemine Netowrk>
  endpoint: <statemine endpoint>
  token_id: <id of the token which will be burned>
  ss58_format: <format of address in Polkadot (for Statemine Network is 2)>

service:
  interval: <how often data from devices will be collected>

Coefficients for non-renewable energy have been taken from Eurostat and stored in utils/coefficients.py.

Launch

docker-compose up

docker-compose up doesn't rebuild the container. If you change something, use docker-compose up --build to rebuild the container image.

About

Service to offset CO2 footprint by burning tokens in Statemine network

License:Apache License 2.0


Languages

Language:Python 96.5%Language:Dockerfile 3.5%