Skip to content

React-based energy visualisation app with real-time dashboard, interactive carbon intensity map, and weather insights. Built using Vite, Material-UI, Leaflet, and various APIs for geospatial and energy data. Features responsive design and EnerGenius weather visualisation.

Notifications You must be signed in to change notification settings

prifinkler/react-energeo

Repository files navigation

EnerGeo

Welcome to the frontend of Energeo, a React-based web application designed to visualize real-time energy sourcing and environmental impact data. Our goal is to promote sustainable practices and raise awareness through interactive graphs and images. EnerGeo was developed during a hackathon themed "Earth, Fire, Air, Water - Where does our energy come from?". By integrating MLOps, Cloud, and AI technologies, EnerGeo channels data from various APIs and leverages advanced LLM-based technologies. We aspire to provide users with a comprehensive tool that facilitates a direct and easier understanding of the environmental impact of energy sources, and our unique take is classifying them into the four aforementioned elements. Currently EnerGeo offers visualizations of historical consumption levels in the UK (last 30 minutes and last 24 hours) and features an AI image generator that provides real-time visualizations of weather conditions in any location around the world.

Table of Contents

Project Team

Key Features

  • Real-time energy sourcing dashboard
  • Interactive carbon intensity map
  • Weather visualisation with EnerGenius
  • Responsive design for various screen sizes

Tech Stack

React Vite JavaScript HTML5 CSS3 Bootstrap

Libraries and APIs

Axios Leaflet Material UI GeoJSON MapTiler React Google Autocomplete

EnerGeo Backend GitHub Repository

EnerGeo Backend

Getting Started

Prerequisites

Before proceeding with the installation, make sure you have the following installed:

  • Node.js: version 18.x or higher
  • npm: version 7.x or higher

Installation Steps

  1. Clone the repository:
git clone https://github.com/yourusername/energeo.git
  1. Navigate to the project directory:
cd energeo
  1. Install dependencies:
npm install
  1. Create a .env file in the root directory and add your Google Maps API key:
VITE_GOOGLE_MAPS_API_KEY=your_api_key_here
  1. Start the development server:
npm run dev
  1. Open your browser and navigate to http://localhost:5173 (or the port specified by Vite).

Project Structure

  • src/: Contains the source code for the application
  • components/: Reusable React components
  • pages/: Main page components
  • styles/: CSS files
  • utils/: Utility functions and constants
  • assets/: Static assets like images
  • public/: Public assets

Key Components

  • Dashboard: Visualises energy sourcing data
  • Carbon Intensity Map: Displays real-time carbon intensity across Great Britain
  • EnerGenius: Weather visualisation tool

Data sources

Live Data

Current UK energy generation:

Elexon provide an API that offers data about the UK energy network.

Carbon intensity

The carbon intensity forecast API is made by National Grid ESO, in partnership with the Environmental Defense Fund Europe, University of Oxford, and WWF.

Solar generation

We use solar energy generation forecast data provided by University of Sheffield solar. We get solar generation forecast by PES region.

Weather Data

We query a free weather API for current weather data in a specified location.

Static Data

Historic energy generation data

We downloaded a publicly available file from National Grid ESO's data portal. Contains data up to 17th July 2024. Find link to current document below.

UK Energy Regions

Also from national grid data portal is a GeoJSON file that contains the coordinates of UK regions. We use regions current at May 2024.

Acknowledgements

  • Andrew Crossland, PhD inspired our project with his real-time web-based tool, mygridgb.co.uk, and offered us constant support and encouragement throughout the hackathon.
  • Anna Putt for organizing the MentorMe initiative and its first hackathon, "Earth, Fire, Air, Water - Where Does Our Energy Come From?", and Ben Fairbairn for coming up with the theme. We had the honour of winning the hackathon with this project!
  • Le Wagon - London trained us and provided an excellent co-working space in the heart of London for the duration of the hackathon.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

About

React-based energy visualisation app with real-time dashboard, interactive carbon intensity map, and weather insights. Built using Vite, Material-UI, Leaflet, and various APIs for geospatial and energy data. Features responsive design and EnerGenius weather visualisation.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published