{"id":49072444,"url":"https://github.com/garybake/power_usage","last_synced_at":"2026-04-20T08:06:57.097Z","repository":{"id":72035576,"uuid":"579783379","full_name":"garybake/power_usage","owner":"garybake","description":"download power usage data","archived":false,"fork":false,"pushed_at":"2024-05-21T06:40:22.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-06T20:38:23.053Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/garybake.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2022-12-18T22:33:41.000Z","updated_at":"2024-05-21T06:40:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"6792867c-61ce-437b-97a2-7548b45472dd","html_url":"https://github.com/garybake/power_usage","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/garybake/power_usage","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garybake%2Fpower_usage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garybake%2Fpower_usage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garybake%2Fpower_usage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garybake%2Fpower_usage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/garybake","download_url":"https://codeload.github.com/garybake/power_usage/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garybake%2Fpower_usage/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32038483,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T00:18:06.643Z","status":"online","status_checked_at":"2026-04-20T02:00:06.527Z","response_time":94,"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":"2026-04-20T08:06:55.129Z","updated_at":"2026-04-20T08:06:57.091Z","avatar_url":"https://github.com/garybake.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Small script to download energy usage data using the octopus energy api.\n\nAPI docs  \nhttps://developer.octopus.energy/docs/api/\n\nDashboard  \nhttps://octopus.energy/dashboard/developer/ \n\nUse the dashboard to obtain api keys.\n\nCreate a .env file and populate as in the example below with your own values\n\n    DB_FILE=logs.db\n    BASE_URL=https://api.octopus.energy/v1/\n\n    API_KEY=***\n    ELECTRICITY_MPAN=***\n    ELECTRICITY_SERIAL=***\n\nOutputs a sqlite db with a CONSUMPTION table showing half hourly usage.\n\nTo read into a dataframe (for science!)\n\n    con = sqlite3.connect(db_file)\n    df = pd.read_sql_query(\"SELECT * from CONSUMPTION\", con)\n    con.close()\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgarybake%2Fpower_usage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgarybake%2Fpower_usage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgarybake%2Fpower_usage/lists"}