Skip to content

Aggregated Product Price Monitor for Graphic Cards (6600 XT, 6700 XT, 3060, 3060 TI)

License

Notifications You must be signed in to change notification settings

MatthiasDE/ProductPriceMonitor.py

Repository files navigation

ProductPriceMonitor.py

Aggregated Product Price Monitor for Graphic Cards

In a Nutshell

What you get

Nice graphic with the aggregated price statistics updated 7-8 times a day.

CLICK HERE for an example page with the service result

How to setup in a picture

Build'n'Run

Backend - Connector

Build

docker build --no-cache -t ppm-dsc-hpv-gcm.py .

Run

According to baseline:

docker run --entrypoint <entrypoint.sh> <image:tag> <arg1> <arg2> <arg3>
-v [host directory]:[container directory]

Option 1: Interactive with TTY

docker run -v ~:/usr/src/app/db -it --entrypoint python ppm-dsc-hpv-gcm.py ./PPM-DSC-HeisePV-GCM.py -f ./db/product_price_monitor.db -r 3

Option 2: In Background

docker run -d -v ~:/usr/src/app/db ppm-dsc-hpv-gcm.py

Backend - Exporter

Build

docker build --no-cache -t ppm-iv-hpv-gcm.py .

Run

docker run -d -v ~:/usr/src/app/db -v /srv/nginx:/usr/src/app/img ppm-iv-hpv-gcm.py

Frontend - URL Endpoint

Run

docker pull nginx
docker run --name my-nginx -v /srv/nginx:/usr/share/nginx/html:ro -d -p 80:80 nginx

The Graphics created by the Backend Components are accessible in your browser with:

http://<yourserverip>/daily.png
http://<yourserverip>/intraday.png

Monitoring

docker logs <container name>
docker inspect <container name>
docker exec -it <container name> sh

You might be interested that you use "-f" with the logs command to follow the logs continuously.

Cleaning up

docker container stop ppm-dsc-hpv-gcm.py
docker container rm ppm-dsc-hpv-gcm.py
docker volume rm <volumename>