SDG 7 [What to build](https://logicpacks.io/build) · 3 ideas

# Goal 7: Affordable and clean energy

Affordable, reliable, sustainable and modern energy for all.

Load-shedding shapes daily life and business in many countries, and families are buying solar with little guidance. Schedules, outage logs and honest sizing tools are small builds with daily use.

Roman Urdu: Load-shedding roz ka masla ha aur log bina rehnumai ke solar lete hein. Schedule alert aur sahi solar hisaab wala tool roz kaam aata ha.

Official page: [UN Sustainable Development Goal 7](https://sdgs.un.org/goals/goal7)

1.  [Load-shedding schedule notifier](#load-shedding-notifier)
2.  [Honest home solar sizing calculator](#solar-sizing)
3.  [Crowd-reported outage log](#outage-crowd-log)

Idea 1

## Load-shedding schedule notifier

Load-shedding WhatsApp-first Low-end Android Local languages

The problem

Outage schedules are published per feeder or zone in hard-to-find places and change often. Shops and households cannot plan charging, pumping water or cooking around them.

Who it helps

Households and small businesses in places with scheduled outages, for example Pakistan, Bangladesh, South Africa or Nigeria.

Weekend version

Pick your area once; get a WhatsApp or push message 15 minutes before each scheduled cut, and a one-line daily summary in the morning.

Tools (free tier or local mock)

-   [WhatsApp Cloud API](https://developers.facebook.com/docs/whatsapp/pricing) (Meta): priced per message. Messages users send you are free, and each business number gets 1,000 free service messages a month; template messages you start are charged. Use a local mock while building.
-   [Firebase Spark plan](https://firebase.google.com/pricing): no cost, with daily Firestore read and write limits; Cloud Messaging push notifications are free.
-   [Cloudflare Workers](https://developers.cloudflare.com/workers/platform/pricing/) free plan: 100,000 requests a day, plus a free D1 SQLite database tier.

Data

-   Schedules published by your local utility, entered by an admin or volunteers; never scrape a site that forbids it. Keep the source link on every schedule.

Starter prompt (for the reader to paste into their own coding agent):

```text
Build a load-shedding notifier as a Cloudflare Worker with a D1 database and a cron trigger. Model areas, schedules (weekday, start, end, source link, last verified date) and subscribers. Every 5 minutes, find cuts starting in the next 15 minutes and send one message per subscriber; send a morning summary at 7am local time. Add an admin page to paste a schedule as a table. Mock the WhatsApp sender locally and add a Firebase Cloud Messaging adapter for a PWA. Done means tests cover time zones, overnight cuts that cross midnight and duplicate prevention.
```

Idea 2

## Honest home solar sizing calculator

Load-shedding Low-end Android Local languages Patchy internet

The problem

Families buying solar panels and batteries often rely on the seller's word and end up with too little battery for the night or panels that cannot run a fan in winter.

Who it helps

Households and shopkeepers deciding on a solar purchase, for example in Pakistan, Kenya, Nigeria or the Philippines.

Weekend version

List your appliances and hours of use, enter your location, and get panel watts, battery size and a plain warning for the worst month, in your language, as a page that works offline after first load.

Tools (free tier or local mock)

-   [PVGIS API](https://joint-research-centre.ec.europa.eu/photovoltaic-geographical-information-system-pvgis/getting-started-pvgis/api-non-interactive-service_en) (EU Joint Research Centre): solar output estimates for Africa and Asia; worked without a key when we tested it, limited to 30 calls a second per IP.
-   [NASA POWER API](https://power.larc.nasa.gov/docs/services/api/): solar and weather history by coordinates; worked without a key when we tested it.
-   [Workbox](https://developer.chrome.com/docs/workbox) (open source) for an offline-first PWA; see the free [web.dev PWA course](https://web.dev/learn/pwa/).

Data

-   [PVGIS](https://joint-research-centre.ec.europa.eu/photovoltaic-geographical-information-system-pvgis/getting-started-pvgis/api-non-interactive-service_en): monthly solar output for a location and panel size.
-   [Global Solar Atlas](https://globalsolaratlas.info/) (World Bank): solar potential maps to check results against.

Starter prompt (for the reader to paste into their own coding agent):

```text
Build a solar sizing PWA with Vite and vanilla JavaScript. The user enters appliances (watts, hours per day, day or night use) from a preset list in English and Urdu or Swahili, plus their location. Call the PVGIS PVcalc API for 1 kW of panels to get monthly output, size panels for the worst month, and size the battery for night load with a stated depth of discharge. Show assumptions in plain words. Cache the last result for offline use. Done means unit tests cover the sizing maths against 3 hand-calculated examples and the PVGIS call is mocked with a saved JSON fixture.
```

Idea 3

## Crowd-reported outage log

Load-shedding Low-end Android WhatsApp-first Patchy internet

The problem

Unscheduled outages are not recorded anywhere people can see, so residents cannot show how many hours they actually lost when they complain to the utility.

Who it helps

Residents, market associations and local reporters, for example in Lagos, Karachi or Dhaka.

Weekend version

Tap "power off" and "power on" (or send it by message); the app shows hours lost per area per week, with each report counted once per household.

Tools (free tier or local mock)

-   [Supabase](https://supabase.com/pricing) free plan: 2 projects, 500 MB database each; free projects pause after a week with no activity.
-   [WhatsApp Cloud API](https://developers.facebook.com/docs/whatsapp/pricing) (Meta): priced per message. Messages users send you are free, and each business number gets 1,000 free service messages a month; template messages you start are charged. Use a local mock while building.
-   [Leaflet](https://leafletjs.com/) (open source) with [OpenStreetMap](https://www.openstreetmap.org/) tiles for the map; light enough for low-end phones.

Data

-   Reports from the users themselves; show how many households reported each outage so readers can judge it.

Starter prompt (for the reader to paste into their own coding agent):

```text
Build an outage log with Supabase (run it locally with the Supabase CLI) and a small PWA. A household registers an area once; "off" and "on" taps create events, queued in IndexedDB when offline and synced later with their original timestamps. Merge reports into outages per area when at least 2 households agree within 10 minutes. Show a weekly table of hours lost per area and a Leaflet map. Add a local mock of the WhatsApp webhook for "off" and "on" messages. Done means tests cover offline queueing, merging overlapping reports and the weekly totals.
```

New to agents? Start with the [install guides](https://logicpacks.io/install).

[Previous : Goal 6: Clean water and sanitation](https://logicpacks.io/build/clean-water) [Next : Goal 8: Decent work and economic growth](https://logicpacks.io/build/decent-work)

---

Canonical URL: https://logicpacks.io/build/clean-energy

Developed by TechRealm (techrealm.online), the software team. Operated by Al Jash Trading (Establishment), Abu Dhabi, since 1994, the legal entity that hosts and is responsible for the service. Economic licence CN-1030597, Abu Dhabi Registration Authority. Address: Office 5, Bani Yas West 4, Bani Yas, Abu Dhabi, UAE. Website: https://aljashtrading.com. Contact: hello@logicpacks.io, security@logicpacks.io, WhatsApp +1 713 632 2262 (https://wa.me/17136322262).

Machine-readable index: [/llms.txt](https://logicpacks.io/llms.txt). Plain facts: [/about.md](https://logicpacks.io/about.md). Safety: [/safety.md](https://logicpacks.io/safety.md).
