Closed beyarkay closed 1 year ago
@beyarkay this is a very interesting project. And I would really like to get involved in the UI side of things for this project. Would it be ok if the website is done in ReactJs? Do you have a specific theme / css framework preference?
Hey! Thanks so much for showing interest, and I'm glad you like it! Really excited about getting a more user friendly UI on this thing as well.
Some notes, questions:
Let me know if you have any questions about the structure eskom-calendar at the moment, I've tried to make it easy for people to hook into and use as a service but am happy to make changes if something would be useful.
Cheers!
Also, you'll find 46cc48a93bc9f18153127506efe8be0210596083 useful. I've made an update to the code so that the file https://github.com/beyarkay/eskom-calendar-dev/releases/download/latest/machine_friendly.csv
has machine-friendly, preprocessed loadshedding schedules which will be a lot easier to handle than anything else.
See this section in the readme for examples.
Thanks I will have a look at the links. For now I am using the GithubApi to retrieve your latest tag and in there I have the assets and a few other data that I am using ;-). Is it somehow possible to add a comma deiminated property into say which towns/areas are forming part of a certain file?
Is it somehow possible to add a comma deiminated property into say which towns/areas are forming part of a certain file?
I'm afraid not, or at least not easily. The sorry truth is that where exactly the different areas are doesn't have to correspond to any logical town/suburb division, so there's no source of truth on the matter.
However I do agree that it would be super useful. You can get some basic information from the name of the file:
{province}-{area}.ics
like eastern-cape-hofmeyer.ics
, mpumalanga-witbank_ds.ics
, or limpopo-makhado.louis_trichardt._town.ics
to name some of the more chaotic ones. These names come from these urls. The reason they're so chaotic is that the source names of the files just are chaotic 😞 and I thought best to not heavily sanitize them without reason. Most of them aren't too badly done thoughcity-power-1.ics
Again it'll be tricky to gain more information from this.This said, I'll look into it a bit more on my end to see if I can scrape some more info from eskom's websites to get better data for you. It might take a while though.
You could always query the google API to get information about suburbs, but that's quite a lot of extra work I think.
Also, if I can ask for features: Adding some sort of way to know how many unique users are accessing each calendar would be extremely helpful. Ideally though this wouldn't involve adding some privacy destroying tracking dot though.
Very basic site is up and running using GH Pages : https://ruandv.github.io/eskom-calendar/
Looking good! Where can I find the source code?
Also, if I can ask for features: Adding some sort of way to know how many unique users are accessing each calendar would be extremely helpful. Ideally though this wouldn't involve adding some privacy destroying tracking dot though.
The github api seems to keep track for you : https://api.github.com/repos/beyarkay/eskom-calendar/releases/latest There is a "download_count": 2 property for each of the files.
I have updated the "Card" on the website to also show that.
@beyarkay Im not too sure where to post this so I am doing it as part of this issue. I found a pdf/xls that lists all the suburbs and their blocks for COJ (city of joburg)
The COJ has a page that we could also maybe skim? https://www.citypower.co.za/Lists/Suburb%20%20Block/AllItems.aspx
The website eskomcalendar.co.za/ec is now live
Github releases are great, but they're a bit intimidating and unintuitive for those who don't know code. Make a frontend (probably via github pages) on which to host the links. This should include: