{"id":16953624,"url":"https://github.com/thisislawatts/greenchoice-usage","last_synced_at":"2026-05-11T16:03:41.994Z","repository":{"id":249700477,"uuid":"827913758","full_name":"thisislawatts/greenchoice-usage","owner":"thisislawatts","description":"Get the usage for your property yesterday","archived":false,"fork":false,"pushed_at":"2024-07-22T17:40:47.000Z","size":80,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-26T08:12:49.312Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thisislawatts.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":"2024-07-12T16:47:43.000Z","updated_at":"2024-07-22T17:40:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"6e69406d-a77a-4c20-a970-2ff969cf8236","html_url":"https://github.com/thisislawatts/greenchoice-usage","commit_stats":null,"previous_names":["thisislawatts/greenchoice-usage"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisislawatts%2Fgreenchoice-usage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisislawatts%2Fgreenchoice-usage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisislawatts%2Fgreenchoice-usage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisislawatts%2Fgreenchoice-usage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thisislawatts","download_url":"https://codeload.github.com/thisislawatts/greenchoice-usage/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244794946,"owners_count":20511516,"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","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-13T22:07:34.235Z","updated_at":"2026-05-11T16:03:36.931Z","avatar_url":"https://github.com/thisislawatts.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GreenChoice Usage\n\n## Overview\n\n\u003e![Short demo of the output when running this script. The final output is: Getting GreenChoice usage for 2024-07-21. Yesterday we spent € 5,45 on electricity and gas. 📈 This is more than the day before (€ 4,84)](docs/demo.gif)\n\nThis script automates the process of logging into the GreenChoice website, extracting consumption data for electricity and gas, and comparing costs against yesterdays data.\n\n## Prerequisites\n\n- Node.js v22\n- A GreenChoice account with valid login credentials\n- Environment variables set for the user email, password\n\n## Installation\n\n```sh\nnpm install\n```\n\n## Configuration\n\nThe script requires the following environment variables to be set:\n\n- `GC_USER_EMAIL`: Your GreenChoice user email.\n- `GC_USER_PASSWORD`: Your GreenChoice password.\n- `GC_TARGET_DATE`: (Optional) The target date for which you want to fetch the consumption data in `yyyy-MM-dd` format. If not provided, the script defaults to yesterday's date.\n\nYou can set these variables in a `.env` file at the root of your project:\n\n```\nGC_USER_EMAIL=your_email@example.com\nGC_USER_PASSWORD=your_password\nGC_TARGET_DATE=2024-07-11\n```\n\n## Usage\n\nTo run the script, use the following command:\n\n```sh\nnpm start\n```\n\n## Logging\n\nThe script uses the `debug` module for logging. To enable logging, set the `DEBUG` environment variable:\n\n```sh\nDEBUG=greenchoice.usage npm start\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthisislawatts%2Fgreenchoice-usage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthisislawatts%2Fgreenchoice-usage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthisislawatts%2Fgreenchoice-usage/lists"}