EventGhostPlus (5 Viewers)

jonathantwynham

Portal Pro
March 27, 2013
81
3
41
Home Country
United Kingdom United Kingdom
the biggest thing that would help would to be able to send the channel id being watched by the client.

currently when switching to a channel the client sends a mediaportal.tv.play to EG and then the payload consists of its own ip address and the current stream it is watching. i currently use the stream id to determine the channel (as i have 1 channel per tuner, hence 1 per stream id).

is there anyway of using EGP to send the actual channel number as used by the tv guide instead of the stream id. that way i only need one tuner as it would switch properly.

cheers.

jonathan
 

TiboTv

Portal Pro
June 22, 2009
244
39
Home Country
Belgium Belgium
Can EventGhostPlus can help me to do this job :
I want to run a batch file when I put my computer sleeping or when I shutdown the computer. I want that computer wait for the end of the batch file before shutdown or sleeping.
I saw these events in the wiki :
MediaPortal.System.Standby
MediaPortal.System.Resume
Can I do something with these events?

Thank you for help
 
Last edited:

DaBIGOne

Portal Pro
January 16, 2012
59
162
127.0.0.1
Home Country
Netherlands Netherlands
These events are triggered when the system is going to standby or resumes from standby.
The event MediaPortal.Plugin.Stop is called when the EventGhostPlus plugin is stopped (thus when MediaPortal is closed).

If you are using local EventGhost on your HTPC there is a good chance that there is not enough time to execute your batchfile as the shutdown/standby process has already started, these events are very useful to monitor the state of the HTPC if you are using an EventGhost server.

I think you are better off using local group policy to run your batch file on shutdown (http://support.microsoft.com/kb/307882).
For standby it's a little more challenging I think you could let your computer lock on standby and you can set the Task Scheduler to start a command (or batchfile) on computer lock. I'm not sure if this will work though.

What action would you like to be run on shutdown / standby ?[DOUBLEPOST=1371997093][/DOUBLEPOST]
the biggest thing that would help would to be able to send the channel id being watched by the client.

currently when switching to a channel the client sends a mediaportal.tv.play to EG and then the payload consists of its own ip address and the current stream it is watching. i currently use the stream id to determine the channel (as i have 1 channel per tuner, hence 1 per stream id).

is there anyway of using EGP to send the actual channel number as used by the tv guide instead of the stream id. that way i only need one tuner as it would switch properly.

cheers.

jonathan


I see I didn't reply you yet. Sorry about that.
It's clear to me what you are looking for now, I'm currently not using TV on MediaPortal, but I'll go find out how to get something in my test-environment to see if I can let EventGhostPlus send the channel number with a channel change.
 

TiboTv

Portal Pro
June 22, 2009
244
39
Home Country
Belgium Belgium
I think you are better off using local group policy to run your batch file on shutdown (http://support.microsoft.com/kb/307882).

For standby it's a little more challenging I think you could let your computer lock on standby and you can set the Task Scheduler to start a command (or batchfile) on computer lock. I'm not sure if this will work though.



What action would you like to be run on shutdown / standby ?

I want to start a syncback action to make a copy of thumbs and database when closing MP. The goal is to let databases and thumbs in local on client but make a copy on a NAS. When starting each client, I first get back the last copy on the client and then start MP. It's a kind of safe multi-seat setup because when sharing databases directly with my 3 clients, I sometimes get MivingPictures of TVSeries databases corrupted. I tried also MPSync plugin but sometimes MP crashes with this method. So I'm thinking about a new solution... Of course my method is not ideal for wathing status cause they are the ones on the last client which shutdown.

Already try gpedit to execute a batch file on windows shutdown but it seems that it doesn't wait till the end of the task. Maybe I'm not using it correctly. And the problem with this method is also that I've got to shutdown the computer instead of standby.
 

DaBIGOne

Portal Pro
January 16, 2012
59
162
127.0.0.1
Home Country
Netherlands Netherlands
I have a similar setup, I robocopy the changes in C:\Program Files\Team Mediaportal and D:\Program Data\Team Mediaportal to my server every time my HTPC shuts down (just for backup).
I have set this up with the shutdown group policy, the only thing different in my setup is that I'm running a windows domain, I have set the group policy with Active Directory, this works perfectly, it waits until the copy is done before shutting down. In a stand alone configuration it could be that it's not working, I have not tried that, I thought it would work though.

Maybe you should rethink your setup and use a separate database for every HTPC you have, MovingPictures and TVSeries will automatically look for new files on your NAS, you just need to name the new files correctly so that Moving Pictures and TVSeries will import them correctly.
If your problem is the watched flags you could use Trakt to sync the watched flags, just install the Trakt plugin with the same account on every HTPC and Trakt will sync the watched flags for movies and TV Series.
In case you have made a big change like a catagory in Moving Pictures you could always copy the database manually, I don't think you'll need to do that very often.
 

TiboTv

Portal Pro
June 22, 2009
244
39
Home Country
Belgium Belgium
Just make some new tests with group policy on a stand alone config. I added a timeout -t 30 cmd in the batch file and windows wait the end of the timeout. I've got a problem with the syncback profil, probably because it's to late in the shutdown process. So robocopy should be a good alternative, I'll give a try to this solution.
Concerning TVSeries watched status, Track could be a good solution but I never saw this option for moving pictures?

Thank you for your advices and new ideas. I'll do some tests to find my better solution.
 

Junkmail

Portal Member
April 1, 2007
12
2
Home Country
Canada Canada
Hi I'm just trying to setup my mce remote with my new usb-uirt, and I've come into a bit of a problem. I can't get my keys to repeat anymore. Holding left/right/up/down only presses once. Other than that it works great! setup was easy as well :)
 

vuego

Documentation Group
  • Team MediaPortal
  • August 5, 2006
    1,641
    764
    Göteborg
    Home Country
    Sweden Sweden
    In the USB-UIRT plugin settings you should select "Pass short repeat codes as enduring events" and in your macro you should add an "Autorepeat current macro" action.
     

    Junkmail

    Portal Member
    April 1, 2007
    12
    2
    Home Country
    Canada Canada
    Perfect, works great. It's nice to have every once in a while something involving the HTPC that isn't a pain to setup; thanks so much!
     

    Users who are viewing this thread

    Top Bottom