This is a pretty simple dockerized php page. It shows you the stats of your balance and device amount and displays it on a nice page with a few graphs.
It uses the repocket api to get the data and stores it in a database, once a minute. It then uses the database to display the data on the page. And the docker container uses the alpine-php-webserver docker image to host the page easily.
Using Docker:
docker run -d -p 8070:8080 \
--name=repocket_stats \
-e NAME="<Your nickname>" \
-e EMAIL="<repocket-email>" \
-e PASSWORD="<repocket-password>" \
-v /repocket_stats:/var/www/html/config \
hibenji/repocket_stats
Give access to the config folder (where the database is stored):
sudo chown nobody:nogroup /repocket_stats
Things in <> should be changed, everything else can be leaved as is.
8070: The port it will be hosted at. You can change this to whatever you want.
<Your nickname>: The name you want to be displayed on the page.
<repocket-email>: The email you use to login to repocket.
<repocket-password>: The password you use to login to repocket.
/repocket_stats: The path where the config will be stored. You can change this to whatever you want.
You can access the page by going to http://<your-ip>:8070 (or whatever port you chose).
A screenshot of a sample looking dashbaord.
Content type
Image
Digest
sha256:f9a20eb9f…
Size
26.2 MB
Last updated
almost 3 years ago
docker pull hibenji/repocket_stats