https://github.com/opencastsoftware/if-water-generation
https://github.com/opencastsoftware/if-water-generation
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/opencastsoftware/if-water-generation
- Owner: opencastsoftware
- License: mit
- Created: 2024-08-18T16:56:21.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-11T17:08:41.000Z (over 1 year ago)
- Last Synced: 2025-05-17T14:09:22.951Z (about 1 year ago)
- Language: JavaScript
- Size: 197 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# if-water-generation

## 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