Skip to main content

Mopidy-Notify

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

Metadata

Release files for Mopidy-Notify 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Mopidy-Notify 0.2.2
File Size Uploaded
mopidy_notify-0.2.2.tar.gz 13.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for Mopidy-Notify 0.2.2
File Interpreter ABI Platform
mopidy_notify-0.2.2-py3-none-any.whl Python 3 none any Details

Total release size: 25.7 kB

Release files / mopidy_notify-0.2.2.tar.gz

Download URL mopidy_notify-0.2.2.tar.gz
Size 13.9 kB
Tags Source
SHA-256 checksum
How to use checksums
897b8d432c828d221b86ed2fe5cb4822f7904caff36ab87d701bac043951ce92
BLAKE2b-256 checksum
How to use checksums
58d47937a1636314bf858186197f5a8b8ba52905f9abd6fdad2aa9d15563fd4a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.11

Release files / mopidy_notify-0.2.2-py3-none-any.whl

Download URL mopidy_notify-0.2.2-py3-none-any.whl
Size 11.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3beb8f79d511e2f686de35004a638a2692b7c0f9155a8900ce401f07519f7a5b
BLAKE2b-256 checksum
How to use checksums
cc4dabb1848845620af1a21bf32d286b9254e5bfea7e7f0cbbc3d40c75cfbdd1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.11

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 release files

0.2.1

2 release files

0.2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page