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.2.tar.gz (13.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mopidy_notify-0.2.2-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

Details for the file mopidy_notify-0.2.2.tar.gz.

File metadata

  • Download URL: mopidy_notify-0.2.2.tar.gz
  • Upload date:
  • Size: 13.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.11

File hashes

Hashes for mopidy_notify-0.2.2.tar.gz
Algorithm Hash digest
SHA256 897b8d432c828d221b86ed2fe5cb4822f7904caff36ab87d701bac043951ce92
MD5 3ec20decee2dfdbaf7a97813df9cb01d
BLAKE2b-256 58d47937a1636314bf858186197f5a8b8ba52905f9abd6fdad2aa9d15563fd4a

See more details on using hashes here.

File details

Details for the file mopidy_notify-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: mopidy_notify-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 11.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.11

File hashes

Hashes for mopidy_notify-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3beb8f79d511e2f686de35004a638a2692b7c0f9155a8900ce401f07519f7a5b
MD5 4fbe5051c3b3a67dc828ee140fc28efa
BLAKE2b-256 cc4dabb1848845620af1a21bf32d286b9254e5bfea7e7f0cbbc3d40c75cfbdd1

See more details on using hashes here.

Supported by

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