Loadshedding API?

blunt

Expert Member
Joined
May 1, 2006
Messages
3,333
Anyone know if there is one? Can always scrape the websites but an API would be nice.
 

adam_g

Senior Member
Joined
Aug 18, 2011
Messages
832
Thing is its never accurate which sucks. If you guys could develop and accurate app that would be cool
 
Last edited:

Bosvark@

Expert Member
Joined
Sep 30, 2009
Messages
2,252
I will even go as far as paying for an SMS & email service relevant to my area. At a reasonable cost and up to date.
 

rrh

Expert Member
Joined
Nov 29, 2005
Messages
3,594
Besides Eskom you will also require APIs from all of the municipalities that control their own electrical distribution.
 

blunt

Expert Member
Joined
May 1, 2006
Messages
3,333
Indeed it looks like content scraping is the only option now. I only need it for CPT anyway, think I've found a solution.
 

Hamster

Resident Rodent
Joined
Aug 22, 2006
Messages
38,900
client wants customised alerts based on load shedding status in their area

I see there's a python script which pulls data from the json feeds on myeskom @
https://github.com/daffster/mypowerstats

will take a further look into that.

You are better off doing something like this:

Code:
var random = new Random();
while(true)
{
    Thread.Sleep(random.Next());
    SendAlert("Lights out!");
}

It'll be way more accurate.
 

blunt

Expert Member
Joined
May 1, 2006
Messages
3,333
You are better off doing something like this:

Code:
var random = new Random();
while(true)
{
    Thread.Sleep(random.Next());
    SendAlert("Lights out!");
}

It'll be way more accurate.

:D

Just going to have to scrape the wcgov site for now.
 

kianm

Honorary Master
Joined
Jan 13, 2014
Messages
10,532
Nahh not with how they flip a coin to decide whether to load shed or not
 

Rickster

EVGA Fanatic
Joined
Jul 31, 2012
Messages
18,892
For our area its rather accurate, it could be upto 1 hour late but if it says its going off on that day, its going off.
 

RaeesD

Active Member
Joined
Feb 28, 2009
Messages
70
Loadshedding is declared by Eskom when the supply cannot meet the demand, there is only one "load shedding status" for the country and municipalities follow the order. There is no coin flipping involved. In cape town our municipality is quite accurate with the schedule they published so it's quite predictable.

A guy made a CLI for getting the status here
 
Top