Green Power Clock
Waqar Ahmad
Published
The Green Power Clock is a client-side web application that allows users to check the real-time carbon intensity of electricity in their UK region by entering a postcode. The application consumes live data from the UK National Grid Carbon Intensity API and calculates estimated grid emissions based on the regional energy generation mix.
Using vanilla HTML, CSS, and JavaScript, the app fetches forecast data asynchronously, processes fuel-type emission factors, and dynamically updates the UI to show carbon intensity levels (Low, Medium, High). Visual indicators such as a colour gradient bar, arrow marker, and contextual recommendations help users understand when it is more environmentally friendly to use electricity. The project demonstrates API integration, async/await handling, DOM manipulation, conditional rendering, and responsive UI design