Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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 node

import 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/HTML

See 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)