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.
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.
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?
Re: Onkyo volume OSD?
The 51 is the payload of the event
Try as the text
Try
Code: Select all
Onkyo Volume {eg.event.payload}Re: Onkyo volume OSD?
Bartman wrote:The 51 is the payload of the event
Tryas the textCode: Select all
Onkyo Volume {eg.event.payload}
Re: Onkyo volume OSD?
you can do all kinds of calculation in the curly braces
Re: Onkyo volume OSD?
Got it working, thanks.Bartman wrote:you can do all kinds of calculation in the curly braces
Another quick question, can I get the OSD to show me the time?
Re: Onkyo volume OSD?
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
You can find the tags you can use to format the time with strftime at http://docs.python.org/library/time.html
-jinxdone
- Bitmonster
- Site Admin
- Posts: 2239
- Joined: Mon Feb 06, 2006 10:28 pm
Re: Onkyo volume OSD?
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')}jinxdone wrote:Sure. Use {eg.Utils.time.strftime('%c')}
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!