Inspiration

Climate change has always been a big issue I wanted to fight, so a carbon calculator was a very fitting project idea.

What it does

EcoTracker is a way to accurately quantify your carbon footprint, compare it to the carbon footprint of others, and measure your improvement or regression over time. Using our carbon calculator, you can determine how much any particular carbon-emitting activity damages our environment.

 After setting up an account and logging in, a logger will be available to document your carbon emissions in real-time. These measurements will be saved, and used to generate statistics to track your emissions and hold you accountable for your contributions to our global struggle.

 To encourage you to maintain lower carbon emissions, a task system has been implemented to walk you through sustainable practices in bite-sized assignments rather than forcing large commitments and lifestyle changes.

How we built it

The app was built with Flask, python, html5, css3, and sqlite3. The SQLite database holds user data on carbon emissions and handles login/logout/signup. The Python scripts perform calculations for the carbon footprint. Flask manages redirects and receives form inputs to be given to the Python scripts.

Challenges we ran into

This was the first time that I worked on a frontend/web design, and I did it alone. Figuring out how to manage data and sending it from the html page to Python scripts was a big struggle for me; I am used to text-based Python scripts, so this was a step outside of my comfort zone. Working with SQLite was also a big challenge; I usually work with pandas for data storage, so using a database was a new experience. The login system was a great struggle, as I had a lot of struggle trying to manipulate and fetch data from the database through a Python script and send that information back to the front end.

Accomplishments that we're proud of

I am very proud of the web design, as well as the login system. Getting the SQL files to work was a big accomplishment.

What we learned

I learned how to work with Flask and SQLite, and how to make a front end and back end cooperate.

What's next for EcoTracker

I would like to program more visually appealing statistics, such as bar or line graphs. I would also like to create some kind of script to identify problem areas and specify tasks to those problem areas.

Share this project:

Updates