Schneider | 21 Dec 14:22
Picon
Gravatar

About getting what's playing

I wonder if it's possible to get information about what I'm playing, to put on a conkyrc or something. Herrie stores this kind of info, puts on a file or something?

Thanks.

Ed Schouten | 21 Dec 14:48
Picon
Gravatar

Re: About getting what's playing

Hello,

* Schneider <dudektria <at> gmail.com> wrote:
> I wonder if it's possible to get information about what I'm playing, to put
> on a conkyrc or something. Herrie stores this kind of info, puts on a file
> or something?

The latest Herrie snapshot has DBus-support, so if we would add this, we
should do this through DBus. Unfortunately I'm *very* busy lately (work,
school, etc). Any volunteers?

--

-- 
 Ed Schouten <ed <at> 80386.nl>
 WWW: http://80386.nl/
Steve Jothen | 21 Dec 23:40
Picon

Re: About getting what's playing

On Sun, Dec 21, 2008 at 5:48 AM, Ed Schouten <ed <at> 80386.nl> wrote:

Hello,

* Schneider <dudektria <at> gmail.com> wrote:
> I wonder if it's possible to get information about what I'm playing, to put
> on a conkyrc or something. Herrie stores this kind of info, puts on a file
> or something?

The latest Herrie snapshot has DBus-support, so if we would add this, we
should do this through DBus. Unfortunately I'm *very* busy lately (work,
school, etc). Any volunteers?

--
 Ed Schouten <ed <at> 80386.nl>
 WWW: http://80386.nl/

I've attached a patch that adds support for this using DBus. I think just locking the GUI mutex should be enough, but I'm not sure if the song information is updated in other places? Here are some examples of using it:

Nothing playing:

% dbus-send --dest=info.herrie.Herrie --print-reply /info/herrie/Herrie info.herrie.Herrie.getSong
method return sender=:1.38 -> dest=:1.40 reply_serial=2
   string ""

Something playing:

% dbus-send --dest=info.herrie.Herrie --print-reply /info/herrie/Herrie info.herrie.Herrie.getSong
method return sender=:1.38 -> dest=:1.41 reply_serial=2
   string "J. S. Bach - Menuett G-Dur, BWV Anh. 116"

Feel free to change it if you like,

Steve
 

Attachment (herrie-dbus-song.diff): text/x-diff, 1561 bytes
Schneider | 22 Dec 06:03
Picon
Gravatar

Re: About getting what's playing

Hey, that's better than I expected :D
I will build it with the patch, thanks!

Schneider

2008/12/21 Steve Jothen <sjothen <at> gmail.com>
On Sun, Dec 21, 2008 at 5:48 AM, Ed Schouten <ed <at> 80386.nl> wrote:
Hello,

* Schneider <dudektria <at> gmail.com> wrote:
> I wonder if it's possible to get information about what I'm playing, to put
> on a conkyrc or something. Herrie stores this kind of info, puts on a file
> or something?

The latest Herrie snapshot has DBus-support, so if we would add this, we
should do this through DBus. Unfortunately I'm *very* busy lately (work,
school, etc). Any volunteers?

--
 Ed Schouten <ed <at> 80386.nl>
 WWW: http://80386.nl/

I've attached a patch that adds support for this using DBus. I think just locking the GUI mutex should be enough, but I'm not sure if the song information is updated in other places? Here are some examples of using it:

Nothing playing:

% dbus-send --dest=info.herrie.Herrie --print-reply /info/herrie/Herrie info.herrie.Herrie.getSong
method return sender=:1.38 -> dest=:1.40 reply_serial=2
   string ""

Something playing:

% dbus-send --dest=info.herrie.Herrie --print-reply /info/herrie/Herrie info.herrie.Herrie.getSong
method return sender=:1.38 -> dest=:1.41 reply_serial=2
   string "J. S. Bach - Menuett G-Dur, BWV Anh. 116"

Feel free to change it if you like,

Steve
 



Gmane