Steam Game Idler CLI (probablyraging flavor) with Android Termux
For a friend, you know who you are! Herein lies basic instructions enabling the use of steam-game-idler Android with Termux. Only the CLI is covered since I cannot yet get the WebUI working (at all).
Read about Termux here.
- Install via GitHub, F-Droid, or GooglePlay (if you're feeling adventerous as it'a beta)
- Consider installing additional plugins like termux-styling and read the wiki!
- Open a Termux
bash
terminal.
- Clone:
git clone https://github.com/lainedfles/steam-game-idler.git && cd steam-game-idler && cd steam-game-idler
- This step is extremely important, ALWAYS AUDIT before execution:
less steam-game-idler.sh
- Once satisfied, make the file executable:
chmod +x steam-game-idler.sh
- Review the usage:
Usage: steam-game-idler.sh [-h|--help] [-a|--audit-fix] Run "npm audit fix" Otherwise use "npm install" [-c|--clear-npm] Clear NPM package-lock.json and node_modules directory [-f|--force-fix] This enables --audit-fix Run "npm audit fix --force" [-t|--tmux] Execute node with tmux Examples: steam-game-idler.sh -t -f steam-game-idler.sh --tmux --audit-fix steam-game-idler.sh --clear-npm --tmux --audit-fixx REPO_PATH=~/steam-game-idler steam-game-idler.sh --clear-npm --tmux --force-fix
- Secure dependancies with first run:
./steam-game-idler.sh --tmux --clear-npm --force-fix
Note thattmux
is a terminal multiplexer. It lets you switch easily between several programs in one terminal, detach them (they keep running in the background) and reattach them to a different terminal. This makes it essential.- You'll be asked choose the CLI or WebUI, choose CLI and remember setting
- Save credentials (optionally permantly)
- Decide to display GameName or GameID
- Enter game ID to validate (2320 = Quake II)
- Type
exit
Subsequent excution can omit the--clear-npm
argument:./steam-game-idler.sh --tmux
- Optionally update
config.json
to save your list of game IDs:nano config.json
- Update
gameIds
with a comma separated string, for example:
"gameIds": "10180, 550, 10180, 500, 2320, 2200, 25700, 18110, 485490, 531890, 2310, 227560, 400790, 45300",
- Save with CTRL+x and choose yes
- Run again to validate:
cd ~/steam-game-idler && ./steam-game-idler.sh --tmux
- You can detach from
tmux
with CTRL+b followed by thed
key
It is now running in the background and if you've saved credentials, the pgrogram will re-connect to the Steam API automatically. To reconnect use: tmux attach
.
Consider using termux-widget to add a widget for this script, to your home screen!