{"id":15598366,"url":"https://github.com/fluffynuts/lights-out","last_synced_at":"2025-08-18T19:08:37.127Z","repository":{"id":162994357,"uuid":"638235666","full_name":"fluffynuts/lights-out","owner":"fluffynuts","description":"A dotnet wrapper for the Eskom Se Push load-shedding api","archived":false,"fork":false,"pushed_at":"2023-05-12T15:05:02.000Z","size":179,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-01T01:38:08.674Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fluffynuts.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-09T11:12:38.000Z","updated_at":"2023-05-09T11:12:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"704e84c2-6796-45c0-ac61-9e9f6a8d5764","html_url":"https://github.com/fluffynuts/lights-out","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/fluffynuts/lights-out","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluffynuts%2Flights-out","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluffynuts%2Flights-out/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluffynuts%2Flights-out/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluffynuts%2Flights-out/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fluffynuts","download_url":"https://codeload.github.com/fluffynuts/lights-out/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluffynuts%2Flights-out/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271043832,"owners_count":24689835,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-18T02:00:08.743Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":"2024-10-03T01:38:18.163Z","updated_at":"2025-08-18T19:08:37.087Z","avatar_url":"https://github.com/fluffynuts.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"Lights Out\n---\n\ndotnet Api \u0026 tooling around the Eskom Se Push REST api\n\nYou will need to obtain an api key from:\n\nhttps://eskomsepush.gumroad.com/l/api\n\nA personal token with usage limits can be obtained for free.\n\nInstallation\n---\nUse your favorite nuget package manager to install the package `LightsOut`, eg\n\n`dotnet add package LightsOut`\n\nUsage\n---\n\n```csharp\nusing LightsOut;\n\npublic class Program\n{\n    public async Task Main()\n    {\n        // create an instance of the api with a token\n        // -\u003e if the token is ommitted, the library\n        //    will attempt to read it from the environment\n        //    variable ESP_API_TOKEN\n        var api = new Api(\"\u003cESP_API_TOKEN\u003e\");\n        var overallStatus = await api.FetchStatus();\n        Console.WriteLine($\"national status: {overallStatus[\"eskom\"].CurrentStage}\");\n\n        var areas = await api.SearchAreas(\"johannesburg\")\n        var areaId = areas.First().Id;\n        var schedule = await api.FetchAreaSchedule(areaId);\n        var next = schedule.Events.First();\n        Console.WriteLine(\n            $\"Next demonstration of Eskom ineptitude: {next.Note} at {next.Start} (until {next.End})\"\n        );\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffluffynuts%2Flights-out","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffluffynuts%2Flights-out","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffluffynuts%2Flights-out/lists"}