MCERP event mapper - example please (1 Viewer)

Mercurial

Portal Member
September 18, 2006
17
0
Home Country
United Kingdom United Kingdom
Hi Aaron,

Great plugin :D . I have got most of it sussed. I am having trouble with the syntax on the event mapper though.
What I am trying to do (amongst other things) is when I go to the DVD screen in MP, I want to switch my surround sound amp to the correct setting. I can get it to do this using the CD_Inserted event, no problem. But, this does not involve any entries in the parameter and value fields. I have searched quite extensively for an example on the forum, to no avail.
Could you give me a couple of examples of events that use these functions, so I can get my head around it, please.

Regards

John
 

Mercurial

Portal Member
September 18, 2006
17
0
Home Country
United Kingdom United Kingdom
Worked around this to get it to do what I need.

To get it to change to my amps DVD setting I have used the Event Recorder_stop_radio, this fires off every time the DVD, TV, music or video selections are made. So, it will initially set amp to DVD setting for any scenario.

Using the Event Playback_started, I can then get my amp setting to TV. Playback_started occurs when TV/video/music are selected, but not DVD.
All a little bit brute force and not much finesse, but it works everytime.

Haven't yet managed to set any parameters to get events to occur when I expect them to. So, any pointers in that direction anyone?
 

Edna

Portal Member
October 8, 2006
34
1
55
Home Country
Denmark Denmark
I already use this great plugin to turn on my amp and to change my tv to the right source on mp resume.
I would like to change my amp settings so that I disable the DSP when listening to music but enable it for Video. I have no idea what event/param to use - any suggestions?

how/where can I learn more about events and parameters - I read the documentation and searched the forum but did not find much. I have the feeling that what I want to do should be easily done accomplished with the event mapper - but so far no luck.
 

Mercurial

Portal Member
September 18, 2006
17
0
Home Country
United Kingdom United Kingdom
Hi Edna,

I'm a bit f a novice on this, but I have used similar actions on my amp to those you are trying to do.

First learn the IR commands:
Go to IR commands tab select 'New' and using the remote for your amp, get your blaster to learn each command you want to use one by one.

Macro:
If a sequence of IR blasts are required, create them under the Macro tab.

Next set up Event mapping:
The two events I have got working for my own use are;
Playback_started - I use this to set my amp to virtual surround sound for watching TV (broadcast with only 2 channels) and listening to music.
Recorder_Stop_radio -I use this to set amp to dolby digital for watching DVD's.

Add the event; highlight it; select the command (your IR blast commands/macros should appear in the dropdown, if you have saved them) and hit set; try it out.

I worked out that these events occur everytime I switch to TV or DVD or music by looking in the log file ( found here be default C:\Program Files\Team MediaPortal\MediaPortal\Log). Someone with a bit more knowhow will hopefully explain better, but basically if an event occurs everytime you carry out an action you want to automate test it in 'Event Mapper' and see if it works.

Haven't sussed out the parameter entry bit, don't think I have been using the right syntax.

Hope this is of some help and I hope someone can provide some additional information. Because, that would help me aswell.

Regards

John
 

elconejito

Portal Pro
April 28, 2005
164
5
Falls Church, VA
Home Country
United States of America United States of America
Hey Mercurial, I've had similar lack of success with events (see my thread here). I can't seem to find any documentation on what/when/where/how the events are triggered. I've been *this close* to downloading the source code and seeing if I can figure out how it works, but just havent had the time to learn a new language :)
 

and-81

Retired Team Member
  • Premium Supporter
  • March 7, 2005
    2,257
    183
    Melbourne
    Home Country
    Australia Australia
    Unfortunately the Event mapper requires some dark magic to get it working. You really need to be able to look through MediaPortal's source code and find the parameters and events that you need.

    Basically, if MediaPortal sends an event for something Event Mapper should let you act on that event. It means that if you have some thing that you want to do and you know MediaPortal is internally sending an event that you want to look out for then Event Mapper should let you do that. This is all very abstract, but that's what Event Mapper is, it's abstract. It's not there for any one reason, it's there to do whatever people figure out they can do with it. I don't even know what it's capable of.

    I might be able to put together some "serving suggestions", a simple guide to some popular uses of Event Mapper... once I get some of the other things I'm working on sorted out.

    And I am in the middle of putting in Time-Based schedules. Things like, Every 10 minutes do this ... Every Monday, do this ... That sort of thing.

    That's still probably a little way off, but I'll let everyone know when it's in.

    So much to do ... :)

    Cheers,
     

    Users who are viewing this thread

    Top Bottom