https://github.com/mrrfv/run-if-solar
Run an application if there's enough renewable energy available
https://github.com/mrrfv/run-if-solar
Last synced: about 1 year ago
JSON representation
Run an application if there's enough renewable energy available
- Host: GitHub
- URL: https://github.com/mrrfv/run-if-solar
- Owner: mrrfv
- License: agpl-3.0
- Created: 2024-06-20T19:13:38.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-12-29T20:24:03.000Z (over 1 year ago)
- Last Synced: 2025-02-13T08:19:21.318Z (over 1 year ago)
- Language: JavaScript
- Size: 26.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Run If Solar
Checks the output of your solar panels in Home Assistant and starts or stops an application based on it. Great if you want to run a resource intensive process when there's more renewable energy available. This is an experimental project.
## Requirements
- Home Assistant with a sensor that displays the power generated
- Node.js with native fetch (any recent version)
## Usage
1. Copy `.env.example` to `.env` and fill in the required values
2. Install dependencies with `npm install`
3. Run `index.mjs`