Inspiration
The increasing carbon emissions have been a major concern for the planet's sustainability, and lack of awareness is one of the primary causes behind it. To address this issue, we wanted to create an interactive and easy-to-use platform that can help people track their carbon emissions and raise awareness about the impact of their daily activities. The primary goal of this project was to encourage people to adopt sustainable habits and reduce their carbon footprint.
What it does
Root Energy is a web app that uses text classification (OpenAI) to determine the type of activity a user is doing and calculate their carbon footprint based on their input. Users can input any activity or habit, and the app provides them with an estimate of the carbon emissions generated by that activity. The app also allows users to track their sustainable habits over time and provides insights into how they can reduce their carbon footprint.
How we built it
Root Energy is built using Next.js, a popular React-based framework for building web applications. The frontend is designed with TailwindCSS, a utility-first CSS framework that makes it easy to create responsive and customizable user interfaces.
The app uses OpenAI's natural language processing API to classify user input into different activities. The app then calculates the carbon emissions associated with each activity using data from reputable sources, such as the EPA and the International Energy Agency.
Challenges we ran into
One of the primary challenges we faced was working with the OpenAI model, including connection issues and efficiently using the paid API. We also had to handle and process the data efficiently and write appropriate prompts for text classification.
Accomplishments that we're proud of
We are proud to have learned about text classification and writing efficient prompts to achieve specific tasks. Additionally, we are happy that we were able to build a functional app that can help people track their sustainable habits and reduce their carbon footprint.
What we learned
During the development of Root Energy, we learned how to work with OpenAI's model and how to write efficient prompts for text classification. We also learned more about working with Next.js and TailwindCSS, and how to use these tools to build a flexible and responsive web app around the enviornment.
What's next for Root Energy
Our next steps for Root Energy include completing the project at home, self-hosting it, and optimizing it for the general public. Once this is done, we plan to make the app available for everyone to use with their own API key.
Note: The GitHub repository for Root Energy is currently private due to API key issues. Once we have resolved this issue, we will make the source code available to the public.
Built With
- next.js
- openai
- tailwindcss
Log in or sign up for Devpost to join the conversation.