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.
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
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
.
docker-compose up
docker-compose up
doesn't rebuild the container. If you change something, usedocker-compose up --build
to rebuild the container image.