i cant get this to work reliably. It works 10% of the time… i’ll see if something is functioning differently on my machine than yours but i cant see that being the case. is it 100% for you?
EDIT: I know my problem. I’m running this raspotify on my rpi, and for some reason, the addition of handling shuffling was not implemented.
Result: Doesn’t work and even the usual Spotify Shuffle looses its function…
The script from grifter7 gives me this error, when i try to call it from the terminal:
➜ / sudo sh /config/spotifyrandom.sh
grep: unrecognized option: P
BusyBox v1.27.2 (2017-11-28 16:17:36 GMT) multi-call binary.
Usage: grep [-HhnlLoqvsriwFE] [-m N] [-A/B/C N] PATTERN/-e PATTERN.../-f FILE [FILE]...
Search for PATTERN in FILEs (or stdin)
-H Add 'filename:' prefix
-h Do not add 'filename:' prefix
-n Add 'line_no:' prefix
-l Show only names of files that match
-L Show only names of files that don't match
-c Show only count of matching lines
-o Show only the matching part of line
-q Quiet. Return 0 if PATTERN is found, 1 otherwise
-v Select non-matching lines
-s Suppress open and read errors
-r Recurse
-i Ignore case
-w Match whole words only
-x Match whole lines only
-F PATTERN is a literal (not regexp)
-E PATTERN is an extended regexp
-m N Match up to N times per file
-A N Print N lines of trailing context
-B N Print N lines of leading context
-C N Same as '-A N -B N'
-e PTRN Pattern to match
-f FILE Read pattern from file
curl -X PUT "https://api.spotify.com/v1/me/player/shuffle?state=true" -H "Accept: application/json" -H "Authorization: Bearer "
{
"error": {
"status": 400,
"message": "Only valid bearer authentication supported"