a command-line client for r/a/dio
Written in python3 using r/a/dio's api and mpv for playback.
If you are not using X, don't install xdg-utils. You will not be able to open the thread. (If you are unsure, this probably doesn't apply to you.)
sudo apt-get install python3 python3-pip xdg-utils socat mpv curl
sudo pip3 install -U requests
curl https://raw.githubusercontent.com/solinium/r-a-d.io-cli/master/install.sh > /tmp/install.sh; sh /tmp/install.shIf you don't already have it, get brew
brew install python pip mpv curl
sudo pip install -U requests
curl https://raw.githubusercontent.com/solinium/r-a-d.io-cli/master/install.sh > /tmp/install.sh; sh /tmp/install.shsudo dnf install python3 python3-pip xdg-utils socat mpv curl
sudo pip3 install -U requests
curl https://raw.githubusercontent.com/solinium/r-a-d.io-cli/master/install.sh > /tmp/install.sh; sh /tmp/install.shsudo pacman -S python python-pip xdg-utils socat mpv curl
sudo pip install -U requests
curl https://raw.githubusercontent.com/solinium/r-a-d.io-cli/master/install.sh > /tmp/install.sh; sh /tmp/install.shsudo yum install python3 python3-pip xdg-utils socat mpv curl
sudo pip3 install -U requests
curl https://raw.githubusercontent.com/solinium/r-a-d.io-cli/master/install.sh > /tmp/install.sh; sh /tmp/install.shcurl https://raw.githubusercontent.com/solinium/r-a-d.io-cli/master/uninstall.sh > /tmp/uninstall.sh; sh /tmp/uninstall.shCall radiocli with -u and a number to choose the interval in seconds that the api updates, use -v for volume (1-100), use -t to open the thread (if it exists), and use -h for help. If you are testing, use -d to run in the current directory. All flags are optional and in any order.
Example:
radiocli -v 75 -t -u 10
You may notice the timer jumping slightly. That's because by default api requests are being sent every 30 seconds. You can call radiocli with the -u option to experiment with different intervals.
For any other issues, feel free to create an issue or a pull request!