/citypower-loadshedding-schedule

Quick hack job to make API of City Power 2 hour loadshedding schedules

Primary LanguageTypeScript

City Power Loadshedding Schedule API

Quick and dirty API that exposes the City Power 2 hour loadshedding schedule found here

This is a Node.js Azure Function using TypeScript, but the logic could be easily copied into any JS framework.

Disclaimer: It's very possible that the schedule will be changed and this could become out of date.

Why?

Eskom exposes an API containing the current level at https://loadshedding.eskom.co.za/LoadShedding/GetStatus and there are some similar APIs for schedules but not for City Power.

I use this in my Home Automation system to keep me up to date on loadshedding and my personal schedule.