Skip to content

noreencherono933-stack/solar-toolkit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

███████╗ ██████╗ ██╗      █████╗ ██████╗ ██████╗ ██╗   ██╗██╗     ███████╗███████╗
██╔════╝██╔═══██╗██║     ██╔══██╗██╔══██╗██╔══██╗██║   ██║██║     ██╔════╝██╔════╝
███████╗██║   ██║██║     ███████║██████╔╝██████╔╝██║   ██║██║     ███████╗█████╗  
╚════██║██║   ██║██║     ██╔══██║██╔══██╗██╔═══╝ ██║   ██║██║     ╚════██║██╔══╝  
███████║╚██████╔╝███████╗██║  ██║██║  ██║██║     ╚██████╔╝███████╗███████║███████╗
╚══════╝ ╚═════╝ ╚══════╝╚═╝  ╚═╝╚═╝  ╚═╝╚═╝      ╚═════╝ ╚══════╝╚══════╝╚══════╝

☀️ Real-Time Photovoltaic Monitoring Dashboard

React Vite TailwindCSS Recharts Netlify License: MIT

Translating raw PV energy data into intuitive visual analytics — built for engineers, designed for clarity.


📋 Table of Contents


🔍 Overview

SolarPulse Toolkit is an engineering-first web dashboard for real-time monitoring and visualization of photovoltaic (PV) system performance. It converts raw solar energy data — power output in kW, battery state-of-charge, system efficiency — into clear, actionable visual analytics.

Built to demonstrate the integration of renewable energy domain knowledge with modern full-stack web development.


✨ Key Features

Feature Description
Real-Time Metrics Live visualization of Power Output (kW), Storage Levels (%), and System Efficiency
📈 Yield Analytics Interactive area chart tracking the 24-hour diurnal solar cycle to identify peak generation windows
💓 System Heartbeat Visual diagnostic indicator confirming active hardware-to-UI connectivity
📱 Responsive UI Mobile-first design optimized for on-site field inspections and remote monitoring

🛠 Tech Stack

Frontend    →  React.js (Vite)
Styling     →  Tailwind CSS  
Charts      →  Recharts (SVG-based)
Icons       →  Lucide React
Deployment  →  Netlify

🚀 Getting Started

Prerequisites

Before you begin, ensure you have the following installed:

  • Node.js v18.0.0 or higher
  • NPM v9.0.0 or higher
  • VS Code (recommended)

Installation

1. Clone the repository

git clone https://github.com/noreencherono933-stack/solar-toolkit.git
cd solar-toolkit

2. Install dependencies

npm install

3. Start the development server

npm run dev

The dashboard will be live at http://localhost:5173 🎉


💡 Usage

The dashboard is designed for zero configuration. On launch, the Dashboard component automatically initializes the Recharts engine and renders the current day's energy profile.

// Reusable StatCard component for PV metrics
<StatCard 
  title="Current Output" 
  value="5.8 kW" 
  Icon={Zap} 
/>

⚙️ Configuration

Theme
The UI uses an Amber/Slate color scheme tailored for solar branding. Colors are easily adjustable in tailwind.config.js.

Data Source
The project currently uses a mock data array in App.jsx. To connect live data, replace it with a fetch() call to your IoT API endpoint:

// Replace mock data with a live API call
const data = await fetch("https://your-iot-api.com/metrics").then(r => r.json());

📁 Project Structure

solar-toolkit/
├── src/
│   ├── App.jsx          # Main dashboard logic & UI components
│   ├── index.css        # Tailwind directives & global styles
│   └── main.jsx         # React entry point
├── public/              # Static assets
├── index.html           # HTML template with Tailwind CDN
├── tailwind.config.js   # Styling configuration
└── package.json         # Dependencies & scripts

🔧 Troubleshooting

npm script execution error on Windows

PowerShell may block script execution due to system policy restrictions.
Fix: Use Command Prompt (cmd) instead, or adjust your Execution_Policy setting.

Tailwind styles not loading

This can occur in restricted environments where PostCSS isn't processing correctly.
Fix: A CDN-injected Tailwind link is included in index.html as a reliable fallback.


🤝 Contributing

Contributions are welcome! To get started:

  1. Fork the repository
  2. Create a feature branch
    git checkout -b feature/NewSolarMetric
  3. Commit your changes
    git commit -m "feat: add NewSolarMetric component"
  4. Push to your branch and open a Pull Request

📄 License

Distributed under the MIT License. See LICENSE for full details.


Made with ☀️ and React  ·  github.com/noreencherono933-stack/solar-toolkit

About

Moringa AI Capstone: Solar Pulse Monitoring Dashboard.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors