Git Product home page Git Product logo

Comments (4)

beyarkay avatar beyarkay commented on August 25, 2024 1

Hey! Thanks for your feedback. Having a look now.

(edit:)
Yup, you've found a bug. Thanks!

You can see the issue by curling machine_friendly.csv and noting that each loadshedding event is only the last one in the schedule you pasted:

$ curl -Ls https://github.com/beyarkay/eskom-calendar/releases/download/latest/machine_friendly.csv \
    | grep "city-power-" \
    | grep "2022-09-21"
city-power-16,2022-09-21T22:00:00+02:00,2022-09-22T00:30:00+02:00,5,"https://twitter.com/Eskom_SA/status/1572254543668281344"
city-power-9,2022-09-21T08:00:00+02:00,2022-09-21T10:30:00+02:00,5,"https://twitter.com/Eskom_SA/status/1572254543668281344"
city-power-3,2022-09-20T22:00:00+02:00,2022-09-21T00:30:00+02:00,5,"https://twitter.com/Eskom_SA/status/1572254543668281344"
city-power-8,2022-09-21T06:00:00+02:00,2022-09-21T08:30:00+02:00,5,"https://twitter.com/Eskom_SA/status/1572254543668281344"
city-power-4,2022-09-21T00:00:00+02:00,2022-09-21T02:30:00+02:00,5,"https://twitter.com/Eskom_SA/status/1572254543668281344"
city-power-15,2022-09-21T20:00:00+02:00,2022-09-21T22:30:00+02:00,5,"https://twitter.com/Eskom_SA/status/1572254543668281344"
city-power-10,2022-09-21T10:00:00+02:00,2022-09-21T12:30:00+02:00,5,"https://twitter.com/Eskom_SA/status/1572254543668281344"
city-power-7,2022-09-21T04:00:00+02:00,2022-09-21T06:30:00+02:00,5,"https://twitter.com/Eskom_SA/status/1572254543668281344"
city-power-6,2022-09-21T02:00:00+02:00,2022-09-21T04:30:00+02:00,5,"https://twitter.com/Eskom_SA/status/1572254543668281344"
city-power-14,2022-09-21T18:00:00+02:00,2022-09-21T20:30:00+02:00,5,"https://twitter.com/Eskom_SA/status/1572254543668281344"
city-power-11,2022-09-21T12:00:00+02:00,2022-09-21T14:30:00+02:00,5,"https://twitter.com/Eskom_SA/status/1572254543668281344"
city-power-13,2022-09-21T16:00:00+02:00,2022-09-21T18:30:00+02:00,5,"https://twitter.com/Eskom_SA/status/1572254543668281344"
city-power-12,2022-09-21T14:00:00+02:00,2022-09-21T16:30:00+02:00,5,"https://twitter.com/Eskom_SA/status/1572254543668281344"

So for example, there's only this line for block 14, because block 14 is the last entry in the list for 18h-20h30:

city-power-14,2022-09-21T18:00:00+02:00,2022-09-21T20:30:00+02:00,5,"https://twitter.com/Eskom_SA/status/1572254543668281344"

Likewise, there's only one entry for blocks 6, 10, and 11 because they're the last elements in their respective lists.

It shouldn't be too hard to fix, so hopefully will have it patched in a few hours.

from eskom-calendar.

Jbenci avatar Jbenci commented on August 25, 2024 1

Incredible speed. I can confirm its working. Youre the best. Thank you!

from eskom-calendar.

beyarkay avatar beyarkay commented on August 25, 2024

Should be being fixed now by b5a7fbe. You can watch the build here if you want, but it should finish in about 5 minutes. Once it's finished, your calendar app will pull down the changes.

If you're impatient and your calendar app isn't updating, some calendars allow you to 'force update', otherwise you can delete the old calendar, resubscribe, and then it will be forced to download the new schedule.

from eskom-calendar.

beyarkay avatar beyarkay commented on August 25, 2024

Yup, it all looks good to me. Thanks for raising the issue! these things are really tricky to spot on my own since I can't monitor every area all the time.

For posterity, here's the machine_friendly.csv curl of city-power-11 now that it's fixed:

$ curl -Ls https://github.com/beyarkay/eskom-calendar/releases/download/latest/machine_friendly.csv \
    | grep "city-power-11" \
    | grep "2022-09-21"
city-power-11,2022-09-21T02:00:00+02:00,2022-09-21T04:30:00+02:00,5,"https://twitter.com/Eskom_SA/status/1572254543668281344"
city-power-11,2022-09-21T10:00:00+02:00,2022-09-21T12:30:00+02:00,5,"https://twitter.com/Eskom_SA/status/1572254543668281344"
city-power-11,2022-09-21T12:00:00+02:00,2022-09-21T14:30:00+02:00,5,"https://twitter.com/Eskom_SA/status/1572254543668281344"
city-power-11,2022-09-21T18:00:00+02:00,2022-09-21T20:30:00+02:00,5,"https://twitter.com/Eskom_SA/status/1572254543668281344"

from eskom-calendar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.