pydoro icon indicating copy to clipboard operation
pydoro copied to clipboard

Support for notification daemon

Open UddipakBhuyan opened this issue 6 years ago • 7 comments

Is it possible to implement a system to send a notification after the timer counts to zero using notification daemon like dunst. Also is the program suppose to play a sound when the timer finishes?

UddipakBhuyan avatar Nov 04 '19 11:11 UddipakBhuyan

Program is supposed to play a sound. Although there is a change to make it optional happening already. 🤗

I'm not sure about the dunst. Can you explain what kind of advantages we have for using it?

JaDogg avatar Nov 04 '19 13:11 JaDogg

The sound is not working in my case. Is there any further need for configuration to get the sound working after installing with pip install pydoro[audio]

A use case of a dunst like notification is when someone would like a visual notification instead of a aural notification in case of silent environment like a library. If one wants to switch off the sound, he would require some visual information of when the timer finishes in case the TUI is in a different workspace.

UddipakBhuyan avatar Nov 04 '19 16:11 UddipakBhuyan

What is the OS / Python version you are using? dunst sound like an interesting idea.

JaDogg avatar Nov 04 '19 17:11 JaDogg

OS: Arch Linux (5.3.8-arch1-1 kernel) with i3 window manager Python Version: 3.7.4

UddipakBhuyan avatar Nov 04 '19 17:11 UddipakBhuyan

Probably some issue is happening that's silenced 😢 will need to figure out a way to troubleshoot audio. One way to do it by default supress errors and have a custom parameter to test audio and exit.


Can you try manually installing PyGObject. https://pygobject.readthedocs.io/en/latest/getting_started.html#arch-logo-arch-linux Better way to do is add a pacman package that install these for you. That require too much work that I don't have time for 😭

JaDogg avatar Nov 04 '19 18:11 JaDogg

Manual installation didn't help.

UddipakBhuyan avatar Nov 05 '19 05:11 UddipakBhuyan

The sound issue is solved. It was probably a dependency issue of GStreamers. Installing the gst-plugins-bad package from arch repository installed the following packages

sdl libdv mjpegtools chromaprint celt libdca libofa libsrtp rtmpdump libmpeg2 ladspa libfdk-aac soundtouch spandsp neon libdc1394 zvbi libbs2b gssdp gupnp gupnp-igd libnice srt raptor liblrdf zbar aalib gst-plugins-good gst-plugins-bad

which seems to fixed it. I am listing the packages in case it might help you to troubleshoot sound issue with linux. Thanks for the help

UddipakBhuyan avatar Nov 05 '19 06:11 UddipakBhuyan