Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/energychain/node-gruenstromindex
Green Power Index (GrünstromIndex) for Node/Javascript
https://github.com/energychain/node-gruenstromindex
energymanagement gruenstromindex renewable-energy smartgrid
Last synced: about 1 month ago
JSON representation
Green Power Index (GrünstromIndex) for Node/Javascript
- Host: GitHub
- URL: https://github.com/energychain/node-gruenstromindex
- Owner: energychain
- License: apache-2.0
- Created: 2022-12-07T15:35:07.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-03-15T08:51:55.000Z (almost 2 years ago)
- Last Synced: 2024-10-07T19:07:18.856Z (3 months ago)
- Topics: energymanagement, gruenstromindex, renewable-energy, smartgrid
- Language: JavaScript
- Homepage:
- Size: 494 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# node-gruenstromindex
Green Power Index ( [GrünstromIndex](https://gruenstromindex.de/) ) for Node/Javascript## Installation
via NPM (as module):
```
npm i gruenstromindex
```via NPM (as Shell Script):
```
npm i -g gruenstromindex
```via GIT:
```
git clone https://github.com/energychain/node-gruenstromindex
npm i
```via Script Tag:
```
```
## Usage### Command-Line (CLI)
```
gruenstromindex
```### Node JS / ESM
```javascript
#!/usr/bin/env nodeimport gsi from "gruenstromindex";
const lib = gsi.gsi();
const app = async function(plz) {
const prediction = await lib.prediction(plz);
let table = [];
for(let i=0;i");
} else {
app(process.argv[2]);
}
```
### Browser/HTMLSee sample on [JSFiddle](https://jsfiddle.net/stromdao/z9m2aoh8/8/).
### Widget Development
```
cd node-gruenstromindex
npm run dev
```Point Browser to: http://localhost:9090/
## Maintainer / Imprint
STROMDAO GmbH
Gerhard Weiser Ring 29
69256 Mauer
Germany
+49 6226 968 009 0
[email protected]
Handelsregister: HRB 728691 (Amtsgericht Mannheim)## LICENSE
[Apache-2.0](./LICENSE)