Jump to content

Featured Replies

Posted

Hia ll

Hope all good

Anyone have any info on exposed API's to get loadshedding schedules ??

I've tried contacting ESP without success ..

Want to integrate the schedule into monitoring app ...

var stage = msg.payload;
var greeting;
if (stage === "1") {
  greeting = "NONE"
}
else if (stage === "2"){
  greeting = "STAGE 1"
}
else if (stage === "3"){
  greeting = "STAGE 2"
}
else if (stage === "4"){
  greeting = "STAGE 3"
}
else if (stage === "5"){
  greeting = "STAGE 4"
}
else if (stage === "6"){
  greeting = "STAGE 5"
}
else if (stage === "7"){
  greeting = "STAGE 6"
}
else if (stage === "8"){
  greeting = "STAGE 7"
}
else if (stage === "9"){
  greeting = "We Are F#$%ed"
}
else greeting = "Null"

msg.payload = {Loadshedding:greeting}
return msg

 

On 2023/03/15 at 8:51 AM, SpicyDave said:

Hia ll

Hope all good

Anyone have any info on exposed API's to get loadshedding schedules ??

I've tried contacting ESP without success ..

Want to integrate the schedule into monitoring app ...

@WannabeSolarSparky

Free & opensource:
https://eskomcalendar.co.za
https://github.com/beyarkay/eskom-calendar/

  • 2 weeks later...

Boyd,

machine_friendly.csv is not being updated correctly, has stage 3 for weekend but esp had stage 1

21 hours ago, beyarkay said:

Hey! Creator of eskom-calendar here, I'm glad you like what I've made 😄 Feel free to ask me any questions you might have, or let me know if there are any issues. I'm here to help.

 

- Boyd

 

On 2023/03/15 at 8:51 AM, SpicyDave said:

Hia ll

Hope all good

Anyone have any info on exposed API's to get loadshedding schedules ??

I've tried contacting ESP without success ..

Want to integrate the schedule into monitoring app ...

Man hit me up on facebook. I am Rahaman kazembe we need to talk

On 2023/04/05 at 11:10 AM, beyarkay said:

Hey! Creator of eskom-calendar here, I'm glad you like what I've made 😄 Feel free to ask me any questions you might have, or let me know if there are any issues. I'm here to help.

 

- Boyd

I cannot find any of the Port Elizabeth / Nelson Mandela Bay schedules, what is needed to integrate that?

On 2023/04/06 at 8:25 AM, DaveAWalker said:

Boyd,

machine_friendly.csv is not being updated correctly, has stage 3 for weekend but esp had stage 1

 

Hey Dave, I'm guessing you're the same Dave who opened the issue on GitHub with the same problem. Just piping in here to say that it's all fixed 👍

On 2023/04/07 at 12:05 PM, CyberJoe said:

I cannot find any of the Port Elizabeth / Nelson Mandela Bay schedules, what is needed to integrate that?

I've got some issues open about PE/NMB, it's just a matter of me finding the time I'm afraid. Hopefully I'll get to it soon. If you click "watch" on one of those issues, then you'll be notified when they're fixed.

On 2023/04/05 at 11:10 AM, beyarkay said:

Hey! Creator of eskom-calendar here, I'm glad you like what I've made 😄 Feel free to ask me any questions you might have, or let me know if there are any issues. I'm here to help.

 

- Boyd

Awesome job :)
I have integrated the api into my home nodered monitoring it works great once I figured out how to get the correct data from the csv on a scheduled cron 🤪

I have also added the github calendar site into a simple iframe into my main website :) so visitors can do lookups right there 😉

On 2023/04/08 at 2:13 PM, WannabeSolarSparky said:

Awesome job :)
I have integrated the api into my home nodered monitoring it works great once I figured out how to get the correct data from the csv on a scheduled cron 🤪

I have also added the github calendar site into a simple iframe into my main website :) so visitors can do lookups right there 😉

Glad you're getting good use from it! What's your website URL?

  • 4 weeks later...
On 2023/05/04 at 10:37 PM, Mamod1 said:

Hey @WannabeSolarSparkythis link does not work for me I get the below error: How can I resolve? 

The requested URL was rejected. Please consult with your administrator.

Your support ID is: 825219278370810804

[Go Back]

https://loadshedding.eskom.co.za/LoadShedding/GetStatus

That works perfect my side, it does sometimes go offline due to high traffic volumes, but for api usage mostly it works great as you are only polling it every hour or 2 depending on how your api code is setup to get the info.

2 hours ago, WannabeSolarSparky said:

https://loadshedding.eskom.co.za/LoadShedding/GetStatus

That works perfect my side, it does sometimes go offline due to high traffic volumes, but for api usage mostly it works great as you are only polling it every hour or 2 depending on how your api code is setup to get the info.

@WannabeSolarSparky yes I noticed earlier today to was working but now it is broken again, guess it's best to perhaps poll the endpoint like you said then store the information until the next successful poll happens (when successful then I'll update with most recent schedule) 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...