No description
  • Python 84.4%
  • Dockerfile 15.6%
Find a file
renovate[bot] 9e3607092e
Update python:3.14-alpine Docker digest to faee120 (#140)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-09 06:03:51 +00:00
.github/workflows Updated to Flask v2 2022-10-11 15:02:52 +01:00
.harness Update pipeline Build boilerjuice-tank-api 2025-10-13 15:00:03 +00:00
app Added total percentage to prometheus metrics endpoint 2023-12-07 21:41:03 +00:00
img Initial Commit 2021-08-02 14:29:51 +01:00
.env.example Updated to Flask v2 2022-10-11 15:02:52 +01:00
.gitignore Updated to Flask v2 2022-10-11 15:02:52 +01:00
docker-compose.yml Updated to Flask v2 2022-10-11 15:02:52 +01:00
Dockerfile Update python:3.14-alpine Docker digest to faee120 (#140) 2026-02-09 06:03:51 +00:00
Pipfile Update dependency prometheus-client to v0.24.1 (#138) 2026-01-19 06:50:57 +00:00
Pipfile.lock Update dependency prometheus-client to v0.24.1 (#138) 2026-01-19 06:50:57 +00:00
readme.md Update readme.md 2023-12-07 21:48:45 +00:00
renovate.json Treat docker base image updates as major bumps 2022-10-26 14:59:38 +01:00

Boilerjuice Scraping API

Intro

Boilerjuice.com has no public API, and pages are rendered via PHP with data pre-baked, as a result - to get information back from the site about your Oil Tank's current level you need to auth with the site and scrape the data back from the web pages.

That is what this project does.

Function

Example input page:

My Tank page

Example API output:

{
  "capacity":"1055",
  "litres":750.0,
  "percent":"70",
  "total_litres":950.0,
  "total_percent":"90"
}

Run

Run the API:

docker run -d -p 8080:8080 -e BJ_USERNAME=my@emailaddress.com -e BJ_PASSWORD=password ghcr.io/mylesagray/boilerjuice-tank

Docker images are available on DockerHub or GitHub Container Registry:

ghcr.io/mylesagray/boilerjuice-tank
mylesagray/boilerjuice-tank

Use

Access the API:

open http://localhost:8080

Access Prometheus scraping endpoint:

open http://localhost:8080/metrics

Build

Build multiarch image:

docker buildx create --use
docker buildx build --platform linux/arm64,linux/amd64 -t mylesagray/boilerjuice-tank:v0.2 -t mylesagray/boilerjuice-tank -t ghcr.io/mylesagray/boilerjuice-tank:v0.2 -t ghcr.io/mylesagray/boilerjuice-tank --push .