SpicyDave Posted March 15, 2023 Share Posted March 15, 2023 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 ... Quote Link to comment Share on other sites More sharing options...
WannabeSolarSparky Posted March 15, 2023 Share Posted March 15, 2023 Here is the api end point I use for my dashboard https://loadshedding.eskom.co.za/LoadShedding/GetStatus system32 1 Quote Link to comment Share on other sites More sharing options...
WannabeSolarSparky Posted March 15, 2023 Share Posted March 15, 2023 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 Quote Link to comment Share on other sites More sharing options...
WannabeSolarSparky Posted March 15, 2023 Share Posted March 15, 2023 46 minutes ago, SpicyDave said: Want to integrate the schedule into monitoring app ... This is most likely closer to what you are looking for? https://github.com/swartjean/ha-eskom-loadshedding Quote Link to comment Share on other sites More sharing options...
WannabeSolarSparky Posted March 15, 2023 Share Posted March 15, 2023 Or even here https://documenter.getpostman.com/view/1296288/UzQuNk3E Quote Link to comment Share on other sites More sharing options...
system32 Posted March 22, 2023 Share Posted March 22, 2023 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/ mzezman and WannabeSolarSparky 2 Quote Link to comment Share on other sites More sharing options...
mzezman Posted March 22, 2023 Share Posted March 22, 2023 1 hour ago, system32 said: @WannabeSolarSparky Free & opensource: https://eskomcalendar.co.za https://github.com/beyarkay/eskom-calendar/ this is the one SolarAssitant started using recently WannabeSolarSparky and system32 2 Quote Link to comment Share on other sites More sharing options...
shovelhead Posted March 22, 2023 Share Posted March 22, 2023 I assume the SolarAssistant screenshot below is of a Beta version as I don't see this view? Quote Link to comment Share on other sites More sharing options...
MeepMoop Posted March 22, 2023 Share Posted March 22, 2023 17 minutes ago, mzezman said: this is the one SolarAssitant started using recently This looks nice! Where do you configure that on SolarAssistant? Quote Link to comment Share on other sites More sharing options...
mzezman Posted March 22, 2023 Share Posted March 22, 2023 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 MeepMoop and WannabeSolarSparky 2 Quote Link to comment Share on other sites More sharing options...
slipx Posted March 22, 2023 Share Posted March 22, 2023 If you are running Home Assistant ... https://github.com/wernerhp/ha.integration.load_shedding/blob/master/README.md mzezman 1 Quote Link to comment Share on other sites More sharing options...
beyarkay Posted April 5, 2023 Share Posted April 5, 2023 On 2023/03/22 at 2:39 PM, system32 said: @WannabeSolarSparky Free & opensource: https://eskomcalendar.co.za https://github.com/beyarkay/eskom-calendar/ 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 WannabeSolarSparky, mzezman, DaveAWalker and 3 others 5 1 Quote Link to comment Share on other sites More sharing options...
DaveAWalker Posted April 6, 2023 Share Posted April 6, 2023 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 Quote Link to comment Share on other sites More sharing options...
react01 Posted April 7, 2023 Share Posted April 7, 2023 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 Quote Link to comment Share on other sites More sharing options...
CyberJoe Posted April 7, 2023 Share Posted April 7, 2023 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? Quote Link to comment Share on other sites More sharing options...
beyarkay Posted April 8, 2023 Share Posted April 8, 2023 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 DaveAWalker 1 Quote Link to comment Share on other sites More sharing options...
beyarkay Posted April 8, 2023 Share Posted April 8, 2023 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. CyberJoe 1 Quote Link to comment Share on other sites More sharing options...
WannabeSolarSparky Posted April 8, 2023 Share Posted April 8, 2023 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 Quote Link to comment Share on other sites More sharing options...
DaveAWalker Posted April 11, 2023 Share Posted April 11, 2023 On 2023/04/08 at 1:51 PM, beyarkay said: 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 Yes it is fixed.. Quote Link to comment Share on other sites More sharing options...
beyarkay Posted April 11, 2023 Share Posted April 11, 2023 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? Quote Link to comment Share on other sites More sharing options...
Mamod1 Posted May 4, 2023 Share Posted May 4, 2023 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 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] Quote Link to comment Share on other sites More sharing options...
Mamod1 Posted May 4, 2023 Share Posted May 4, 2023 39 minutes ago, 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] The above question also goes to @beyarkaywould appreciate any assistance Quote Link to comment Share on other sites More sharing options...
system32 Posted May 5, 2023 Share Posted May 5, 2023 19 hours ago, 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] Broken, just like everything else at Eskom Quote Link to comment Share on other sites More sharing options...
WannabeSolarSparky Posted May 6, 2023 Share Posted May 6, 2023 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. Quote Link to comment Share on other sites More sharing options...
Mamod1 Posted May 6, 2023 Share Posted May 6, 2023 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) DaveAWalker and WannabeSolarSparky 2 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.