Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

Onkyo volume OSD?

If you have a question or need help, this is the place to be.
Post Reply
Thor
Posts: 3
Joined: Mon Jul 27, 2009 7:33 am

Onkyo volume OSD?

Post by Thor »

Hi,

I wanted to use the return value I get from my receiver, to make a volume OSD on my screen.

My Onkyo 876 comes for example with the return "OnkyoSerial.MasterVolume 51" in the eventlog. But when I pull the task over to the Configuration, the figure "51" doesnÔÇÖt come with? It's only "OnkyoSerial.MasterVolume" that comes over, so it's not useful for making a OSD?

Why is that? And am I doing something wrong?

Thanks, Morten.
Bartman
Plugin Developer
Posts: 881
Joined: Sun Feb 12, 2006 9:03 am

Re: Onkyo volume OSD?

Post by Bartman »

The 51 is the payload of the event
Try

Code: Select all

Onkyo Volume {eg.event.payload}
as the text
Thor
Posts: 3
Joined: Mon Jul 27, 2009 7:33 am

Re: Onkyo volume OSD?

Post by Thor »

Bartman wrote:The 51 is the payload of the event
Try

Code: Select all

Onkyo Volume {eg.event.payload}
as the text
:D Thanks, that works. There's no way that the payload number can be "translated" to the same db number that the receiver shows?
Bartman
Plugin Developer
Posts: 881
Joined: Sun Feb 12, 2006 9:03 am

Re: Onkyo volume OSD?

Post by Bartman »

you can do all kinds of calculation in the curly braces
Thor
Posts: 3
Joined: Mon Jul 27, 2009 7:33 am

Re: Onkyo volume OSD?

Post by Thor »

Bartman wrote:you can do all kinds of calculation in the curly braces
Got it working, thanks.

Another quick question, can I get the OSD to show me the time?
User avatar
jinxdone
Plugin Developer
Posts: 443
Joined: Tue Jan 02, 2007 4:08 pm

Re: Onkyo volume OSD?

Post by jinxdone »

Sure. Use {eg.Utils.time.strftime('%c')}

You can find the tags you can use to format the time with strftime at http://docs.python.org/library/time.html

-jinxdone
User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Re: Onkyo volume OSD?

Post by Bitmonster »

jinxdone wrote:Sure. Use {eg.Utils.time.strftime('%c')}
Clever idea to get around importing the time module, but this might break easily. So I've implemented a new object called "eg.StdLib" that allows you to dynamically access all standard lib modules directly. The above call should now be written in 0.3.7.r1170 as: {eg.StdLib.time.strftime('%c')}
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!
Post Reply