Thx for this advice. Make sure you add port number 3000.
A simple way to automate this is to make a shell script. I use the following with irexec for my remote. It takes a playlist ID as input or picks a random playlist when no ID is given. You have to add your favourite playlists to the playlists.
#!/bin/bash
playlists=("37i9dQZF1DXcBWIGoYBM5M" "37i9dQZF1EVHGWrwldPRtj" "37i9dQZF1DXa1BeMIGX5Du" )
if [ -n "$1" ]; then
playlistid="$1"
else
# random ID
index=$((RANDOM % ${#playlists[@]}))
playlistid=${playlists[$index]}
fi
/usr/bin/curl "http://xxx.xxx.xxx.xxx:3000/api/v1/replaceAndPlay" \
-H "Content-Type: application/json" \
-X POST \
-d '{"uri":"spotify:playlist:'${playlistid}'"}'