beyarkay / eskom-calendar

Get your loadshedding schedule in your calendar and never be left in the dark! Open-source, up-to-date, and developer friendly.
https://eskomcalendar.co.za
GNU General Public License v3.0
190 stars 35 forks source link

Add Loadshedding for Stellenbosch Farms: Cloetesville/Raithby/etc #47

Closed beyarkay closed 1 year ago

beyarkay commented 2 years ago

mich-a-b

Congrats for being on the radio. Could you also have a look at adding Stellenbosch/Cloetesville ?

Currently struggling to find a source of information about the loadshedding schedule in Cloetesville. There's this page, although I'm not sure when Stellenbosch central is shed by stellenbosch and when it's shed by Eskom

@mich-a-b could you confirm that you use the timetable in the link?

Alternatively, EskomSePush reference this link as their source of information for Cloetesville, although it doesn't seem to load:

http://stellenbosch.gov.za/news/notices/notices-engineering/6330-loadshedding-stage-1-4-schedule-2018/file

mich-a-b commented 2 years ago

Hi @beyarkay.

So your schedule for Stellenbosch Central is correct, it's because Cloetesville falls under Stellenbosch Farms (Zone 8).

I did find the following site where I could search for Cloetesville: https://loadshedding.eskom.co.za/

When I inspected the website I see it just pulls on the following endpoint:

https://loadshedding.eskom.co.za/LoadShedding/GetScheduleM/1061674/4/Western%20Cape/700

beyarkay commented 2 years ago

Ah okay, cheers. I'll get it added in the next few days, I'm just pretty busy this weekend so won't be able to get to it before Monday I'm afraid

mich-a-b commented 2 years ago

No problem at all, just glad I can help! Can't wait to uninstall ESP.

beyarkay commented 1 year ago

@ChristoViljoen left a comment also needing the stellenbosch farms area:

Would you be able to add the Raithby schedule as well. It falls under Stellenbosch.

EskomSePush has it as Raithby(8) with description Eskom Direct, Stellenbosch, Western Cape. Raithby doesn't fall under Stellenbosch's main schedule. It seems to fall under the Stellenbosch Farmers block 8 which includes:

Block 8: Cloetesville, De Zalze, Franschhoek, Jamestown, Raithby, Koelenhof, Kylemore, Kayamandi, Vlottenburg, Plankenburg, La Motte, Lanquedoc (Dwarsrivier), Lynedoch and Pniel

In terms of finding schedules, I can find this page from stellenbosch.gov.za which contains schedules for three blocks:

But it only has schedules up to stage 4, which isn't too useful. Alternatively, downloading the western cape xlsx file from this eskom.co.za website does give schedules for all of block 8.

The best way forward might be to create another scraper to download the xlsx files and parse them, although I'm not sure how easy it will be to handle xlsx. I see pandas has a pd.from_xlsx method though.

beyarkay commented 1 year ago

Hi!

This issue should be resolved, due to the creation of the project's website: https://eskomcalendar.co.za

You can either follow the link and search for an area, or you can use one of the links below:

Although there are still areas like de zalze which aren't listed.

beyarkay commented 1 year ago

This is fully fixed by 33290e3, and all areas mentioned above can now be searched for on eskomcalendar.co.za

beyarkay commented 1 year ago

As a final note, (and if you like the project), leaving a "star" (there's a button on the main page) would be much appreciated, as this helps more people discover eskom-calendar