Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/opencastsoftware/if-water-generation
https://github.com/opencastsoftware/if-water-generation
Last synced: 13 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/opencastsoftware/if-water-generation
- Owner: opencastsoftware
- License: mit
- Created: 2024-08-18T16:56:21.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-10-11T17:08:41.000Z (3 months ago)
- Last Synced: 2024-12-27T09:16:16.856Z (13 days 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
![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