Jump to content

Loadshedding / Eskom API Integration !!


SpicyDave

Recommended Posts

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

 

Link to comment
Share on other sites

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/

Link to comment
Share on other sites

23 minutes ago, shovelhead said:

I assume the SolarAssistant screenshot below is of a Beta version as I don't see this view?

I am on the beta channel yes - Software version: 2023-03-21 

22 minutes ago, MeepMoop said:

This looks nice! Where do you configure that on SolarAssistant?

https://solar-assistant.io/help/grid/eskom

Link to comment
Share on other sites

  • 2 weeks later...
On 2023/03/22 at 2:39 PM, system32 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

Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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 😉

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

  • 4 weeks later...
On 2023/03/15 at 9:29 AM, WannabeSolarSparky said:

Here is the api end point I use for my dashboard

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

image.thumb.png.e6627129557fa9be3613d909870b3e53.png

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]

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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) 

Link to comment
Share on other sites

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...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...