Mopidy plugin to automate music playback based on time of day
Project description
Mopidy plugin to automate music playback.
Can be used in restaurants to play fitting music depending on time of day with no user input required.
Only tested with file backend.
Consists of a frontend and simple web client.
Frontend
If no tracks are playing and a play event is received, or if playback ends, a random album will be added to the tracklist and playback started.
Album is chosen from one of 3 sections, based on time of day. After an album has been played, it will not play again until all other albums in it’s section has been played.
If volume is set higher than what is configured for the section, it will be lowered before playback starts.
Web Client
The web client is reached on url /auto/. It shows which track, artist and album is playing.
It has 2 buttons: Play / Pause and Skip to next track.
It also has a volume control.
Installation
Install by running:
pip install Mopidy-Auto
Configuration
Before starting Mopidy, you must add configuration for Mopidy-Auto to your Mopidy configuration file:
[auto] enabled = true # URI where the sections folders are located base_path = file:///Users/marcus/Media/Music/ # Max number of tracks that can be added from one folder. Set to 0 or lower to disable limit max_tracks = 15 # Sections of different music activated depending on time of day. Currently locked to 3 # At what time this section gets active s0_hour = 0 s0_minute = 0 # Folder name in where to find albums s0_folder = Rap # Decrease volume to this level if it is set higher when new folder is being played s0_max_volume = 50 s1_hour = 11 s1_minute = 0 s1_folder = Trip Hop s1_max_volume = 80 s2_hour = 18 s2_minute = 30 s2_folder = Rock s2_max_volume = 80
Project resources
Changelog
v0.1.0
Initial release.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for Mopidy_Auto-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 31cf192f7d90cd66bd55f6c0a5d991dfd5b13def4f676055c8b2f64e9564bffd |
|
MD5 | 727d18414b475ce1272058afded08937 |
|
BLAKE2b-256 | cdff59a9df5179bd1523bc3e53b2f536537d97af73c83d2cf0aae3371bd88aa3 |