Skip to main content

Mopidy extension for showing desktop notifications

Project description

Latest PyPI version CI build status Test coverage

Mopidy extension for showing desktop notifications on track change.

Installation

Install by running:

python3 -m pip install Mopidy-Notify

See https://mopidy.com/ext/notify/ for alternative installation methods.

Configuration

Before starting Mopidy, you must add configuration for Mopidy-Notify to your Mopidy configuration file:

[notify]
enabled = true

The following configuration values are available:

notify/max_icon_size:

Maximum icon dimensions (width/heigh) in pixels for which track images/album covers are fetched. For some tracks, images in multiple dimensions are available. Mopidy-Notify will try to use the largest image possible for a notification. Since some backends provide huge track images (as large as 3000x3000 pixels for Bandcamp MP3s), use this value to restrict which images are considered for display. If no track images are smaller than max_icon_size, the smallest image available will be used.

notify/fallback_icon:

File path to an icon or the name of a default icon used as fallback if no track image/album cover is available for the currently playing track.

notify/track_summary:

A template string used to build a notification summary. See below for values substituted.

notify/track_message:

Same as track_summary, but supplies the more detailed message content of a notification.

The following values are set by default:

[notify]
enabled = true
max_icon_size = 200
fallback_icon = notification-audio-play
track_summary = ${track}
track_message = ${artists} — ${album}

The following variables are substituted for properties of the currently playing track when encountered in an template string:

$track:

Name of the currently playing track.

$album:

The album in which this track is contained.

$artists, $composers, $performers:

Comma separated list of artists/composers/performers for this track.

$genre:

This track’s genre.

$time:

The current running time of this track, formatted [HH:]MM:SS. Hours are omitted of running time is below one hour.

$date:

Release date.

$bitrate:

Track bitrate in kbit/s.

$comment:

Track comment.

$musicbrainz_id:

Musicbrainz ID.

Project resources

Credits

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

Mopidy-Notify-0.2.1.tar.gz (13.5 kB view hashes)

Uploaded Source

Built Distribution

Mopidy_Notify-0.2.1-py3-none-any.whl (11.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page