Logo Lanfrica
  • Home
  • Atlas
  • Insights
  • Docs
  • Sign in

© 2026 Lanfrica. All rights reserved. All copyrights of the resources shown on the Lanfrica website belong to the original copyright holders, unless explicitly stated otherwise.

MosesChirusha/day_6_electricity_cost_calculator

Domain:

environment and energy

Record type:

softwaretools
Creator:
Mos
Host:
A simple, offline-first electricity consumption calculator for African households. Track appliance usage, calculate costs, and reduce your electricity bill. # Electricity Cost Calculator - Africa A simple, offline-first electricity consumption calculator for African households. Track appliance usage, calculate costs, and reduce your electricity bill. **Live Demo**: Demo URL **Medium Article**: Link ## Quick Start ```bash # Clone and run git clone github.com cd day_6_electricity_cost_calculator open index.html ``` No build tools, no dependencies, no npm install. ## Features - **20+ African countries** with local currencies and rates - **18 appliance presets** (TV, fridge, AC, lights, etc.) - **Real-time cost calculations** (daily, weekly, monthly, yearly) - **Personalized saving tips** based on your usage - **Export reports** to CSV - **100% offline** functionality - **Mobile-responsive** design ## Supported Countries **East Africa:** Kenya, Tanzania, Uganda, Rwanda, Ethiopia **West Africa:** Nigeria, Ghana, Senegal, Côte d'Ivoire, Mali **Southern Africa:** South Africa, Zimbabwe, Zambia, Botswana **North Africa:** Egypt, Morocco, Tunisia **Central Africa:** Cameroon, DR Congo ## Tech Stack - **HTML5** - Structure - **CSS3** - Styling (Grid, Flexbox) - **Vanilla JavaScript** - All functionality - **localStorage** - Data persistence **Why vanilla?** Zero dependencies, works everywhere, easy to customize. ## Contributing 1. Fork the repo 2. Create feature branch: `git checkout -b feature-name` 3. Make changes (vanilla JS only) 4. Test on mobile devices 5. Commit: `git commit -m "Add feature"` 6. Push: `git push origin feature-name` 7. Open Pull Request ### Code Guidelines - Use vanilla JavaScript (no frameworks) - Comment complex calculations - Keep functions small and focused - Maintain mobile responsiveness - Test across browsers - Preserve offline functionality ## Common Appliance Power Ratings | Appliance | Power (Watts) | Typical Usage | |-----------|---------------|---------------| | LED Bulb | 10W | 5 hrs/day | | CFL Bulb | 15W | 5 hrs/day | …

Visit

github.com

Similar

MosesChirusha/day_22_rainfall_data_visualizerMosesChirusha/day_29_pest_identification_guideMosesChirusha/day_30_reading_comprehension_quizMosesChirusha/day_31_currency_converterMosesChirusha/day_36_harvest_yield_estimatorMosesChirusha/day_39_maternal_health_tracker

MosesChirusha/day_22_rainfall_data_visualizer

A lightweight web application that pulls real satellite-based rainfall data from the NASA POWER API

MosesChirusha/day_29_pest_identification_guide

A lightweight, offline-first web application that helps farmers, schools, and agricultural extension

MosesChirusha/day_30_reading_comprehension_quiz

An offline-friendly, interactive reading comprehension web app designed to help students improve lit

MosesChirusha/day_31_currency_converter

A lightweight, browser-based currency converter built to support cross-border traders, small busines

MosesChirusha/day_36_harvest_yield_estimator

Accurate harvest yield predictions for African farmers to plan logistics, storage, labor, and market

MosesChirusha/day_39_maternal_health_tracker

A lightweight, offline-friendly web application that helps pregnant women track pregnancy progress,