{"id":19862979,"url":"https://github.com/energychain/node-gruenstromindex","last_synced_at":"2025-08-03T11:08:04.949Z","repository":{"id":81274237,"uuid":"575472161","full_name":"energychain/node-gruenstromindex","owner":"energychain","description":"Green Power Index (GrünstromIndex) for Node/Javascript","archived":false,"fork":false,"pushed_at":"2023-03-15T08:51:55.000Z","size":506,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-01-11T15:20:38.074Z","etag":null,"topics":["energymanagement","gruenstromindex","renewable-energy","smartgrid"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/energychain.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}},"created_at":"2022-12-07T15:35:07.000Z","updated_at":"2024-05-28T09:24:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"72f23eee-f713-4ae1-acd7-c55202a880e6","html_url":"https://github.com/energychain/node-gruenstromindex","commit_stats":{"total_commits":17,"total_committers":2,"mean_commits":8.5,"dds":0.05882352941176472,"last_synced_commit":"f4e12ba027824eaa46d8ea4de347278d20c21089"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/energychain%2Fnode-gruenstromindex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/energychain%2Fnode-gruenstromindex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/energychain%2Fnode-gruenstromindex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/energychain%2Fnode-gruenstromindex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/energychain","download_url":"https://codeload.github.com/energychain/node-gruenstromindex/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241272618,"owners_count":19937091,"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":["energymanagement","gruenstromindex","renewable-energy","smartgrid"],"created_at":"2024-11-12T15:13:12.940Z","updated_at":"2025-02-28T23:15:14.352Z","avatar_url":"https://github.com/energychain.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# node-gruenstromindex\nGreen Power Index ( [GrünstromIndex](https://gruenstromindex.de/) ) for Node/Javascript\n\n## Installation\n\nvia NPM (as module):\n```\nnpm i gruenstromindex\n```\n\nvia NPM (as Shell Script):\n```\nnpm i -g gruenstromindex\n```\n\nvia GIT:\n```\ngit clone https://github.com/energychain/node-gruenstromindex\nnpm i\n```\n\nvia Script Tag:\n```\n    \u003cscript src=\"https://unpkg.com/gruenstromindex/public/js/main.js\"\u003e\u003c/script\u003e\n```\n## Usage\n\n### Command-Line (CLI)\n```\ngruenstromindex \u003cPostleitzahl\u003e\n```\n\n### Node JS / ESM\n```javascript\n#!/usr/bin/env node\n\nimport gsi from \"gruenstromindex\";\n\nconst lib = gsi.gsi();\n\nconst app = async function(plz) {\n   const prediction = await lib.prediction(plz);\n   let table = [];\n   for(let i=0;i\u003cprediction.forecast.length;i++) {\n    const row = {\n        date: new Date(prediction.forecast[i].timeStamp).toLocaleString(),\n        gsi: prediction.forecast[i].gsi,\n        co2: prediction.forecast[i].co2_g_standard\n    };\n    table.push(row);\n   }\n   console.table(table); \n}\n\nif(process.argv.length \u003c 3) {\n    console.error(\"usage: gruenstromindex \u003cPostleitzahl\u003e\");\n} else {\n    app(process.argv[2]);\n}\n```\n### Browser/HTML\n\nSee sample on [JSFiddle](https://jsfiddle.net/stromdao/z9m2aoh8/8/).\n\n### Widget Development\n```\ncd node-gruenstromindex\nnpm run dev\n```\n\nPoint Browser to: http://localhost:9090/\n\n## Maintainer / Imprint\n\u003caddr\u003e\n\u003ca href=\"https://stromdao.de/\"\u003eSTROMDAO GmbH\u003c/a\u003e\u003cbr/\u003e\nGerhard Weiser Ring 29  \u003cbr/\u003e\n69256 Mauer  \u003cbr/\u003e\nGermany \u003cbr/\u003e\n  \u003cbr/\u003e\n+49 6226 968 009 0  \u003cbr/\u003e\n  \u003cbr/\u003e\nkontakt@stromdao.com  \u003cbr/\u003e\n  \u003cbr/\u003e\nHandelsregister: HRB 728691 (Amtsgericht Mannheim)\n\u003c/addr\u003e\n\n\n## LICENSE\n[Apache-2.0](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenergychain%2Fnode-gruenstromindex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fenergychain%2Fnode-gruenstromindex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenergychain%2Fnode-gruenstromindex/lists"}