{"id":36704979,"url":"https://github.com/teamjorge/eskomlol","last_synced_at":"2026-01-12T11:41:51.738Z","repository":{"id":46031710,"uuid":"421870131","full_name":"teamjorge/eskomlol","owner":"teamjorge","description":"Eskom Loadshedding API package","archived":false,"fork":false,"pushed_at":"2021-11-18T20:03:19.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-08-12T17:25:10.382Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/teamjorge.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-10-27T15:20:01.000Z","updated_at":"2021-11-18T20:02:03.000Z","dependencies_parsed_at":"2022-09-14T11:12:57.524Z","dependency_job_id":null,"html_url":"https://github.com/teamjorge/eskomlol","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/teamjorge/eskomlol","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teamjorge%2Feskomlol","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teamjorge%2Feskomlol/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teamjorge%2Feskomlol/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teamjorge%2Feskomlol/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/teamjorge","download_url":"https://codeload.github.com/teamjorge/eskomlol/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teamjorge%2Feskomlol/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28338972,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T10:58:46.209Z","status":"ssl_error","status_checked_at":"2026-01-12T10:58:42.742Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-12T11:41:51.679Z","updated_at":"2026-01-12T11:41:51.732Z","avatar_url":"https://github.com/teamjorge.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eskomlol\n\nEskom Loadshedding API package\n\n`eskomlol` (eskom lekker ol' loadshedding)\n\n## Overview\n\n`eskomlol` provides a thin wrapper around the existing Eskom API for loadshedding. This package attempts to simplify using the not-so-friendly base API. Please note that changes of the API will potentially break this package. If we don't expect Eskom to properly maintain powerstations, we probably can't expect them to maintain an API.\n\n## Usage\n\n```go\npackage main\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\t\"log\"\n\t\"time\"\n\n\t\"github.com/teamjorge/eskomlol\"\n)\n\nfunc main() {\n\t// Creating a new client with no options\n\tclient := eskomlol.New()\n\n\t// Creating a client with some options\n\tclient = eskomlol.New(eskomlol.WithTimeout(60 * time.Second))\n\n\t// Get current loadshedding stage\n\tstage, err := client.Status(context.Background())\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tfmt.Println(\"Stage\\n\", stage)\n\n    // Hopefully prints -1 or 0 :D\n}\n```\n\nAdditional calls you can make are:\n\n* `Municipalities`\n* `Suburbs`\n* `SearchSuburbs` (Similar to Suburbs but does not require a municipality)\n* `Schedule`\n\n## Notes\n\nDuring testing I've noticed that some of the suburbs do not have schedules available. I'm not 100% sure if this is due to the municipalities not making them available or if it's just Eskom not having them. I'm not sure how ESP are sourcing their info, but I'm assuming it's via scraping. That could potentially be added later if there's demand for it.\n\n## Contributing\n\nIf you find bugs or have feature requests, don't be afraid to gooi a PR or create a new issue. I'm happy to improve this if folks are actually using it.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteamjorge%2Feskomlol","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fteamjorge%2Feskomlol","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteamjorge%2Feskomlol/lists"}