Giter VIP home page Giter VIP logo

cf's Introduction

Green with Groot

A web application which enables users to keep a tab on their monthly Carbon footprint using their electricity, LPG, and fossil fuel usage data.

Calculation of carbon footprint:

4 factors have been taken into account:

  • Units of electricity (in KWh)- elec_units
  • LPG consumed (in Kg)- LPG
  • Petrol consumed (in L)- petrol
  • Diesel consumed (in L)- diesel

Emmision factors for the above factors are extracted from trusted recources of -
Central Electricity Authority
Green House Gas Protocol

Emission_Factor_Electricity = 0.8 Kg/KWh;
Emission_Factor_Petrol = 2.296 Kg/L;
Emission_Factor_Deisel = 2.653 Kg/L;
Emission_Factor_LPG = 2.983 Kg/Kg;

Net Kg of CO2 can be calculated as the sum due to individual sources elec_cf + petrol_cf + diesel_cf + LPG_cf which when divided by 1000 will give the Tonnes of CO2.

Calculation of Coins:

We are following the policy which ensures that the more regularly a user reduces carbon footprint, the more rewards a he/she would receive. To maintain, a non overflowing, readable value of Total coins- the following factor has been used- 0.5 * streak * 100

This is multiplied to the difference of current and previous month's carbon footprint, and rounded of to the nearest integer-

add_to_balance = Math.round((past_cf - cf_basic) * scaling_factor);

cf's People

Contributors

pranabp-bit avatar

Watchers

 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.