This is an unmodified repository to show the results of a PoC using GPT-Pilot to create the base line of a new consumer App using the GreenPowerIndex. The API costs were arround 65$ to generate the results in aprox. 10 iterations. The implementation to this step saved aprox 6 days of development. We stopped the initial implementation at this stage to create a MVP with some tweaking out of it.
The GrünstromIndex 2.0 PWA (Progressive Web Application) empowers users to plan their electricity consumption with an eye toward environmental sustainability. It integrates real-time CO2 intensity forecasts allowing users to optimize their electricity usage, such as charging electric vehicles or running appliances during times of lower carbon footprint, thus contributing to a more sustainable environment.
This application leverages a minimalist Express.js backend to serve static assets while the frontend, a rich Progressive Web Application, delivers dynamic content and offline capabilities. Integration with the GrünstromIndex API provides real-time CO2 intensity forecasts. Key technologies include service workers for offline functionality, Bootstrap for styling, and vanilla JavaScript for frontend logic and API interactions.
- Forecast Viewing: Access up-to-date CO2 intensity forecasts to plan electricity consumption.
- Consumption Planning and Tracking: Log start and end times of electricity usage, calculate the CO2 footprint, and view past consumption events including detailed statistics.
- Interactive Forecast Chart: Utilize Chart.js to visualize CO2 intensity over time, aiding in efficient consumption planning.
- Event History with Pagination: Review past electricity consumption events stored in the browser's IndexedDB, including timestamps, consumed Wh, CO2 footprint, and pagination for easy navigation.
- Node.js
- npm (Node Package Manager)
- Clone the repository to your local machine.
- Navigate to the project directory.
- Run
npm install
to install the dependencies. - Execute
npm start
to launch the server. - Open
http://localhost:3000
in a browser to view the application.
Copyright (c) 2024 STROMDAO GmbH.