Octopus Energy Coffee Checker
This repository has been archived on 2026-02-13. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
  • TypeScript 100%
Find a file
2025-07-06 19:34:48 +01:00
.vscode add readme and license 2025-05-23 16:48:53 +01:00
.editorconfig initial commit 2025-05-22 17:56:23 +01:00
.gitignore initial commit 2025-05-22 17:56:23 +01:00
.graphqlrc.yml initial commit 2025-05-22 17:56:23 +01:00
deno.json initial commit 2025-05-22 17:56:23 +01:00
LICENSE add readme and license 2025-05-23 16:48:53 +01:00
main.ts update greggs typo 2025-07-06 19:34:48 +01:00
README.md add readme and license 2025-05-23 16:48:53 +01:00
state.ts initial commit 2025-05-22 17:56:23 +01:00
webhook.ts initial commit 2025-05-22 17:56:23 +01:00

Octoplus Coffee Check

Octopus Energy give away free coffee to customers each week, but since they started releasing codes every day, rather than at the start of each week, I'm struggling to get them. This is a simple tool that will check for available coffee codes and notify via a webhook.

Usage

Setup a cronjob to run the script with deno run -A main.ts.

The following environment variables are configurable:

  • OCTOPUS_API_KEY - your Octopus Energy API key, available here
  • OCTOPUS_ACCOUNT_NUMBER - your Octopus Energy account number (like A-XXXXXXXX)
  • WEBHOOK_URL - a webhook to your messaging service of choice (e.g. Discord, Slack, etc...)
  • STATE_FILENAME - this sets the location of the script's state. By default it'll be state.json in the current working directory.