Skip to content

Send alert with libnotify when events::invalid_scrobble is triggered #74

@justwheel

Description

@justwheel

Summary

When a events::invalid_scrobble warning event triggers, send a notification to a Linux desktop user's notification system

Background

Sometimes a scrobble fails. For the most part, this is a silent error and I might miss when something crashed the scrobbler or if I am listening offline. For scripts, I use notify-send, which is provided by the libnotify library.

Details

I'm not sure what a clean implementation of this would look like with libnotify. I use it for these types of things with shell scripts and Python programs, but not sure how it would work for a C project.

The event to watch for is already captured in the logs:

May 30 10:14:02 localhost mpris-scrobbler[5005]: WARNING events::invalid_scrobble

Outcome

Easier to catch scrobbling issues in real-time when they fail for whatever reason

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions