A lightweight proxy that lets embedded devices (e.g., ESP32) call the Olyns API over plain HTTP.
267
A lightweight Flask‑based HTTP proxy that lets embedded devices (e.g., ESP32) call the Olyns API over plain HTTP. The proxy runs on a trusted local network and simply forwards requests to the official Olyns API, stripping away the HTTPS overhead and returning a reduced set of useful data: bin name, status and recycling levels.
Exposes a single GET REST endpoint
GET /<collector_id>
where <collector_id> is an integer ID of an Olyns collector.
Returns a reduced JSON payload:
{
"name": "Collector 170",
"status": "open",
"aluminum": 75,
"plastic": 45,
"glass": 30
}
Intended for deployment on a trusted local network; no HTTPS needed.
docker run -d \
--name olyns-proxy \
-p 8200:8200 \
wangdrew/olyns-proxy:latest
After the container starts, hit e.g.:
http://localhost:8200/170
and you’ll receive the simplified JSON for collector 170.
Content type
Image
Digest
sha256:8c93324a0…
Size
52.1 MB
Last updated
about 1 year ago
docker pull wangdrew/olyns-proxy