Skip to content

Latest commit

 

History

History
100 lines (70 loc) · 2.97 KB

README.adoc

File metadata and controls

100 lines (70 loc) · 2.97 KB

CSGO Price Item Tracker

1. Installation

This Application ships as a docker image or can be used directly by cloning this repository.

1.1. Docker

All available versions & pull-links can be found here: Container Registry

You can simply run the container like this:

docker pull ...
docker run --rm -it -v $PWD/sv.db:/usr/src/app/sv.db <image> python main.py

You could easily add a new weapon to track like this:

docker pull ...
docker run --rm -it -v $PWD/sv.db:/usr/src/app/sv.db <image> python main.py --create

After issuing this, you need to follow the instructions.

1.2. Cloning

You can simply clone this repository and install all requirements by running

python -m pip install --no-cache-dir -r requirements.txt

After this you can simply run the main.py with the required arguments.

2. Usage

2.1. Help

Usage main.py -svpdlchr
 options:
  -h, --help             displays this help information
  -v                     increases the log level by 10
  -s                     decreases the log level by 10
  -p, --process          runs the processor to fetch prices from Steam and SkinBaron
  -c, --create           interactive creation of a weapon
  -l, --list             lists all items
  -r, --remove [id]      removes the weapon by id
  -d, --generate-charts  generates the charts and sends them per mail

2.2. Creating a Weapon to track

To create a new Weapon, you need to call the main.py with the -c|--create argument and follow the instructions.

The Weapon Name is the name in the market e.g.: AWP | The Prince (Field-Tested) or M4A4 | Asiimov (Field-Tested).

The Variant ID is a bit more complicated. You need to go to https://skinbaron.de and lookup the requested weapon by typing its name and clicking on it. After this you can see the variantId in the url (like this for the AWP Asiimov https://skinbaron.de/?appId=730&variantId=38906&sort=BP38906).

The other values are related to skin baron as well and are used to only select a certain type of weared weapons.

You can check the creation of the items by calling the main.py with -l|--list.

Tip
You can chain the create and list argument for verification simply by calling python3 main.py -cl.

2.3. Processing the data

To resolve the prices for your weapons simply call the main.py with -p|--process.

2.4. Generating the charts and send the mail

To generate the charts simply call the main.py with -d|--generate-charts.

Warning
You need some environment variables set to use this feature (to send the mail)
Environment Variables
export MAIL_SMTP_HOST=smtp.example.com
export MAIL_SMTP_PORT=587
export MAIL_SMTP_TLS=1
export [email protected]
export MAIL_SMTP_PASSWORD=csgotrackeruser
export [email protected]
charts 1
Figure 1. Example Chart