Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alancunningham/octopus-agile-prediction-notifier
A small script that uses the predictions from Agile Predict and sends a notification to your favourite service using Apprise when the predicted price goes below a set threshold.
https://github.com/alancunningham/octopus-agile-prediction-notifier
apprise octopus octopus-agile octopus-agile-prices python raspberry-pi
Last synced: 17 days ago
JSON representation
A small script that uses the predictions from Agile Predict and sends a notification to your favourite service using Apprise when the predicted price goes below a set threshold.
- Host: GitHub
- URL: https://github.com/alancunningham/octopus-agile-prediction-notifier
- Owner: AlanCunningham
- Created: 2024-09-29T20:45:30.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2024-10-20T21:11:22.000Z (18 days ago)
- Last Synced: 2024-10-21T01:42:30.130Z (18 days ago)
- Topics: apprise, octopus, octopus-agile, octopus-agile-prices, python, raspberry-pi
- Language: Python
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Octopus Agile Trigger
A small script that uses the predictions from [Agile Predict](https://agilepredict.com/)
and sends a notification to your favourite service using
[Apprise](https://github.com/caronc/apprise) when the predicted price goes below
a set threshold.This is intended to be run on a cronjob.
## Installation
Clone the project and install the dependencies into a python virtual environment:
```
# Clone the repository
$ git clone [email protected]:AlanCunningham/octopus-agile-prediction-notifier.git# Create a python virtual environment
$ python3 -m venv venv# Activate the virtual environment
$ source venv/bin/activate# Install the python dependencies using the requirements.txt file provided
(venv) $ pip install -r requirements.txt
```Open the settings.py and enter:
- Your [Distribution Network Operator Code](https://en.wikipedia.org/wiki/Distribution_network_operator)
- Your preferred price threshold in pence
- The Apprise services you want to notify - see the [Apprise Supported Notifications](https://github.com/caronc/apprise?tab=readme-ov-file#supported-notifications)
for the format of the service you want to add.Then run the application
```
(venv) $ python main.py
```