Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jwflory opened this issue May 30, 2020 · 0 comments
Open

Comments

@jwflory
Copy link
Contributor

jwflory commented May 30, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants