Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/opencastsoftware/if-water-generation


https://github.com/opencastsoftware/if-water-generation

Last synced: 13 days ago
JSON representation

Awesome Lists containing this project

README

        

# if-water-generation

![MIT License](https://img.shields.io/badge/license-MIT-brightgreen)

## Overview
An IF plugin for calculating the water consumption for power generation. It currently uses the energy consumed multiplied by the amount of hydro powered electricity using Electricity Maps API.

## Usage
To run the plugin, you must first create an instance of `water-generation`. Then, you can call the `execute()`.

```javascript
const { fetchPowerConsumption } = require('./electricityMap');

const WaterGeneration = (globalConfig) => {
const metadata = {
kind: "execute",
};

const execute = async (inputs, config) => {
var result = [];

for(i=0; i