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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file Mopidy-Notify-0.2.1.tar.gz.

File metadata

  • Download URL: Mopidy-Notify-0.2.1.tar.gz
  • Upload date:
  • Size: 13.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for Mopidy-Notify-0.2.1.tar.gz
Algorithm Hash digest
SHA256 f054f83b8934c04b1d1c0d6f25a396f546a627740bc8ee3b1f02f95dc494dcf7
MD5 d6a7db57b06b436a4dd1638c97fbbe33
BLAKE2b-256 4681d932035a4b833742be35f6e31426d1cb44f7d2a19fc32fb8b53158ad8e61

See more details on using hashes here.

Provenance

File details

Details for the file Mopidy_Notify-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for Mopidy_Notify-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5a3913e98dd7588b207bb545e9d47980fbed94a20cef4d33b542f25d45b23421
MD5 ebda4a68426b45cc531fbd49a7ac9a29
BLAKE2b-256 ae2a56af1058c2f3e7a03a10028e7e844c9682152cefa6e04a77c3c1f6b8e980

See more details on using hashes here.

Provenance

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