Searching SteamDB for Free Games and Activating them using ArchiSteamFarm
A Workaround is being implemented. (Currently broken See: #41)
- Steam Web Api Key here
- ArchiSteamFarm running with IPC Enabled
Python: 3.9
CPU-Tested: AMD64, ARM64
You need to enable the IPC interface.
Put this in your ASF.json:
{
"IPC": true
}
and
You need to edit the Config file: mv steamconfig.py.example steamconfig.py
nano steamconfig.py
class config:
boturl = 'http://127.0.0.1:1242'
botip = '127.0.0.1'
bots = ["main"]
fetch_games_url = "https://store.steampowered.com/search/?specials=1&maxprice=free"
# Get your Key here: https://steamcommunity.com/dev/apikey
steam_api_key = "ADD YOUR STEAM API KEY HERE"
-
You need ArchiSteamFarm running on
127.0.0.1:1242
-
Download the Script and Config:
git clone git@github.com:Nickwasused/FreeGamesonSteam.git steam
-
Go into the Directory
cd steam
-
Install Dependencies
pip3 install -r requirements.txt
-
Create the Service and timer file:
- Path:
/etc/systemd/system/steam.service
- Content :
[Unit] Description=Steam service After=network.target StartLimitIntervalSec=0 [Service] Type=simple User=pi ExecStart=/usr/bin/python3 /home/pi/steam/steam.py WorkingDirectory=/home/pi/steam/ [Install] WantedBy=multi-user.target
- Path:
/etc/systemd/system/steam.timer
- Content :
[Unit] Description=Execute Steam [Timer] OnCalendar=*-*-* 18:00:00 Unit=steam.service [Install] WantedBy=multi-user.target
- Path:
-
Enable and Start the Services:
sudo systemctl enable steam.service
sudo systemctl enable steam.timer
sudo systemctl start steam.service
sudo systemctl start steam.timer
The Service assumes that the Script is located here: /home/pi/steam/steam.py
And the Service assumes that the Config is located here: /home/pi/steam/steamconfig.py