Autonomation of mpc song playing

Setting up a music server that will load random playlists and select a specific number of random songs from that playlist, the only problem is I cant find a way to directly add those songs without some human interference. If anyone can show me the fastest or easiest way to add a song to the queue that would be fantastic. Thanks

Not quite sure what you want here, but assuming you have sorted out the first bit you could use
mpc clear;mpc load “Your Playlist”;mpc random;mpc play

or use mpc add spotify:track:2kvgmr5CFhSvleQqTjB3eP;mpc play for individual track tp be added to playlist

I guess you could put it in cron to automate it at a certain time of day.

Also depends where you are getting the songs from, local or spotify etc.

they’re all playing from Spotify, but I guess the main thing right now is
there any way to load a playlist created by Spotify. like if you go to the
"mood and genre" section and try to load one of those playlists through
mopidy. because I have already done all of those. thanks for the quick
response though

I don’t think you can, however if you have a look at ifttt.com they have a few new applets that you might be able to change to suit. I currently use the discover weekly archive which works quite well.

alright yea ill take a look, thanks for the help

Sorry, I meant to expand on my previous answer and forgot. I don’t think you can play the spotify playlists, however if you save them as your own then mopidy will play them, you can then use ifttt to make changes to the playlist on a weekly basis. Whenever new tracks are added to the spotify playlist they are automatically added to your playlist.
It still won’t help with the random playlist selection or a specific number of tracks.

Just to be really really clear (since it is a bit confusing), when we talk about “the spotify playlists” here we mean the playlists owned by the official Spotify user e.g. spotify:user:spotify:playlist:3ZgmfR6lsnCwdffZUan8EA. These playlists are special and Spotify broke the support for them in their library.

Oh, well that’s all I needed. I have a bash script that takes care of the
other stuff. thanks