external start of WebEPG (MP 1.1.0) (1 Viewer)

grubi

Portal Pro
June 16, 2007
1,216
80
127.0.0.1
Home Country
Germany Germany
AW: Re: external start of WebEPG (MP 1.1.0)

If you schedule WebEPG to run on 00:00, it will run on first chance if missed. However it is not possible to configure WebEPG not to wake up for grabbing. As long as PowerScheduler is enabled and WebEPG schedule is due, the system will wake up from suspend/hibernation.

Hi.

Thank's for confirmation.
Tonight I tested it and have to say that it behaves exaclty as you described.
In addition to that the grabber does not prevent the system from hibernating (which I do not understand entirely / see log).
As the download normally tooks quite long it is interrupted and started again the next time you switch on the machine so the wakeu at night is quite useless.

IMHO a big step back.
I really missed the flexibility I had with 1.0.2 where I had a seperate exe.
There I was able to schedule the process much more flexible on OS basis and also were able
to integrate a manual call into the MP GUI (via seperate plugin).

Code:
2010-01-09 03:00:22.570000 [18]: WebEPGImporter: WebEPG schedule 3:0 is due: 3:0
2010-01-09 03:00:22.639000 [WebEPGImporter]: plugin:webepg: Telling PowerScheduler standby is allowed: False, timeout is one hour
2010-01-09 03:00:22.641000 [WebEPGImporter]: plugin:webepg importing
2010-01-09 03:00:22.642000 [WebEPGImporter]: WebEPG: Using directory C:\ProgramData\Team MediaPortal\MediaPortal TV Server

//snip

2010-01-09 03:12:25.900000 [Powerscheduler Timer]: PowerScheduler: System is unattended and idle - initiate suspend/hibernate
2010-01-09 03:12:25.901000 [Powerscheduler Timer]: PowerScheduler: Manual system suspend requested by 
2010-01-09 03:12:25.902000 [Powerscheduler Timer]: PowerScheduler: Entering shutdown Hibernate ; forced: False -- kick off shutdown thread
2010-01-09 03:12:25.903000 [Powerscheduler Suspender]: PowerScheduler: Shutdown thread is running: Hibernate, force: False
2010-01-09 03:12:25.903000 [Powerscheduler Suspender]: PowerScheduler: Informing handlers about UserShutdownNow
2010-01-09 03:12:25.931000 [Powerscheduler Suspender]: PowerScheduler: Source: ; shutdown is allowed True ; forced: False
2010-01-09 03:12:25.931000 [Powerscheduler Suspender]: PowerScheduler: SetWakeupTimer
2010-01-09 03:12:25.942000 [Powerscheduler Suspender]: PowerScheduler: Set wakeup timer to wakeup system in 1426,56765 minutes
2010-01-09 03:12:25.943000 [Powerscheduler Suspender]: PowerScheduler: Entering shutdown Hibernate ; forced: False
2010-01-09 03:12:25.944000 [WinController exit thread]: WindowsController: Performing ExitWindows Hibernate, force: False
2010-01-09 03:12:26.320000 [WebEPGImporter]: HTMLPage: GetInternal encoding: UTF-8
2010-01-09 03:12:26.322000 [WebEPGImporter]: WebEPG: Getting sublinked data sucessful
2010-01-09 03:12:26.323000 [WebEPGImporter]: WebEPG: Guide, Program Info: 20100111121500 / 20100111130000 - ARD-Buffet
2010-01-09 03:12:26.323000 [WebEPGImporter]: WebEPG: Program already in db
2010-01-09 03:12:26.325000 [WebEPGImporter]: WebEPG: SubLink Request http://www.tvtoday.de/programm/?format=detail&sid=107001511764 POST: 
2010-01-09 03:12:26.482000 [PowerEventThread]: OnPowerEvent: PowerStatus: Suspend
2010-01-09 03:12:26.483000 [PowerEventThread]: OnPowerEventHandler: PowerStatus: Suspend
2010-01-09 03:12:26.483000 [PowerEventThread]: Stopcard
2010-01-09 03:12:26.484000 [PowerEventThread]: dvb:StopGraph called
2010-01-09 03:12:26.484000 [PowerEventThread]: tvcard:FreeAllSubChannels
2010-01-09 03:12:26.485000 [PowerEventThread]: Stopcard
2010-01-09 03:12:26.486000 [PowerEventThread]: dvb:StopGraph called
2010-01-09 03:12:26.486000 [PowerEventThread]: tvcard:FreeAllSubChannels
2010-01-09 03:12:26.487000 [PowerEventThread]: dvb:StopGraph filterstate already stopped, returning.
2010-01-09 03:12:26.487000 [PowerEventThread]: Stopcard
2010-01-09 03:12:26.488000 [PowerEventThread]: PowerScheduler: System is going to suspend
2010-01-09 03:12:26.490000 [PowerEventThread]: Controller: epg stop
2010-01-09 03:12:26.491000 [PowerEventThread]: PowerScheduler: SetWakeupTimer
2010-01-09 03:12:26.527000 [PowerEventThread]: PowerScheduler: Set wakeup timer to wakeup system in 1426,55805 minutes
2010-01-09 03:12:28.928000 [WebEPGImporter]: HTMLPage: GetInternal encoding: UTF-8
2010-01-09 03:12:28.930000 [WebEPGImporter]: WebEPG: Getting sublinked data sucessful
2010-01-09 03:12:28.930000 [WebEPGImporter]: WebEPG: Guide, Program Info: 20100111130000 / 20100111140000 - ZDF-Mittagsmagazin
2010-01-09 03:12:28.931000 [WebEPGImporter]: WebEPG: Program already in db
2010-01-09 03:12:28.931000 [WebEPGImporter]: WebEPG: SubLink Request http://www.tvtoday.de/programm/?format=detail&sid=107001511999 POST: 
2010-01-09 03:12:30.176000 [WebEPGImporter]: HTMLPage: GetInternal encoding: UTF-8
2010-01-09 03:12:30.177000 [WebEPGImporter]: WebEPG: Getting sublinked data sucessful
2010-01-09 03:12:30.178000 [WebEPGImporter]: WebEPG: Guide, Program Info: 20100111140000 / 20100111141000 - Tagesschau
2010-01-09 03:12:30.178000 [WebEPGImporter]: WebEPG: Program already in db
2010-01-09 03:12:30.180000 [WebEPGImporter]: WebEPG: SubLink Request http://www.tvtoday.de/programm/?format=detail&sid=107001511759 POST:

:D
 

arion_p

Retired Team Member
  • Premium Supporter
  • February 7, 2007
    3,373
    1,626
    Athens
    Home Country
    Greece Greece
    To prevent the server from hibernating while grabbing EPG, you have to check "Prevent standby when grabbing EPG"

    Using Windows scheduler to wake up the system for EPG grabbing has always caused problems to TVServer, that is why TVServer uses its own scheduler.
     

    grubi

    Portal Pro
    June 16, 2007
    1,216
    80
    127.0.0.1
    Home Country
    Germany Germany
    AW: Re: external start of WebEPG (MP 1.1.0)

    To prevent the server from hibernating while grabbing EPG, you have to check "Prevent standby when grabbing EPG"

    Using Windows scheduler to wake up the system for EPG grabbing has always caused problems to TVServer, that is why TVServer uses its own scheduler.

    That option was indeed unchecked.
    I was not aware that this setting is also related to WebEPG.

    What I still miss is IMHO the most natural way to update the EPG.
    Update EPG via WEB once a day (maybe at a specific time) but only when the PC is running.
    If it is switched of during that time it would immediatle catched up as soon as the pc is started again.

    The only option you have currently to keep WebEPG up to date is
    to boot it up once a day at a specific time only for that purpose. IMHO this isn't optimal
    esp. in the days of Green PC.

    Thanks again for looking into that issue.

    Cheers,
    grubi.
     

    arion_p

    Retired Team Member
  • Premium Supporter
  • February 7, 2007
    3,373
    1,626
    Athens
    Home Country
    Greece Greece
    Re: AW: Re: external start of WebEPG (MP 1.1.0)

    The only option you have currently to keep WebEPG up to date is
    to boot it up once a day at a specific time only for that purpose. IMHO this isn't optimal
    esp. in the days of Green PC.

    This is what most people do, and for a good reason. You need your EPG to always be up to date, or else the scheduler will not know of upcoming recordings and will not wake up for them.
     

    grubi

    Portal Pro
    June 16, 2007
    1,216
    80
    127.0.0.1
    Home Country
    Germany Germany
    AW: Re: AW: Re: external start of WebEPG (MP 1.1.0)

    The only option you have currently to keep WebEPG up to date is
    to boot it up once a day at a specific time only for that purpose. IMHO this isn't optimal
    esp. in the days of Green PC.

    This is what most people do, and for a good reason. You need your EPG to always be up to date, or else the scheduler will not know of upcoming recordings and will not wake up for them.

    You are right for the usecase of recording recurring episodes, however for me personally the reduced flexibility to schedule is a step backward. Don't want to stress that one to much, maybe I'm in the minority here.

    Thanks for taking the time looking into it.

    Cheers,
    grubi.
     

    usualsuspect

    Portal Pro
    May 12, 2009
    631
    98
    Home Country
    Germany Germany
    AW: external start of WebEPG (MP 1.1.0)

    maybe I'm in the minority here.
    I am a member of this minority, too.
    i'm using gmps to do all the wakeup and standby stuff because it's very flexible and (my personal experience) more reliable as the internal powerscheduler. additionally it gives you the away mode which is not supported by power scheduler.
    so for me the possibility to externally trigger epg-grabbing would be perfect!

    off topic: additionally I do not quite get most of the internal plugins totally rely on the powerscheduler pluing and do not use windows power management events which would imo make things a lot easier and more flexible...
     

    Fredd_1001

    Portal Pro
    October 28, 2007
    79
    0
    Almere
    Home Country
    Netherlands Netherlands
    If you schedule WebEPG to run on 00:00, it will run on first chance if missed. However it is not possible to configure WebEPG not to wake up for grabbing. As long as PowerScheduler is enabled and WebEPG schedule is due, the system will wake up from suspend/hibernation.

    @Arion_P:

    Is it a problem to make a schedule in WebEPG and Powerscheduler at the same time? see screendumps.
    I have a problem that my system goes to suspend during WepEPG grabbing at night (https://forum.team-mediaportal.com/...n-pc-too-early-during-web-epg-grabbing-77478/)
     

    Attachments

    • WebEPG setup.jpg
      WebEPG setup.jpg
      97 KB
    • Powerscheduler setup for WebEPG.jpg
      Powerscheduler setup for WebEPG.jpg
      105.6 KB

    arion_p

    Retired Team Member
  • Premium Supporter
  • February 7, 2007
    3,373
    1,626
    Athens
    Home Country
    Greece Greece
    It shouldn't be a problem, it will just run twice. If the scheduled times are too close to each other only the first one will run, the second will be skipped. However I have not personally tested this configuration. But if you need to configure a schedule in PowerScheduler/EPG why do it in WebEPG as well? The schedule in PowerScheduler/EPG is enough (WebEPG will follow that schedule).
     

    Users who are viewing this thread

    Top Bottom