NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Add-ons (3rd party plugins, utilities and skins) Old Stuff (Legacy) DVB-T Radio v
1 2 3 Next »
Timer

 
  • 0 Vote(s) - 0 Average
Timer
hansol123
Offline

Member

Posts: 245
Threads: 44
Joined: Feb 2008
#1
2009-05-03, 09:58 AM
Dear Brian

The program is working well.

My wife is nagging me to record programs when we are out of the house.

Is there any way of running a script from scheduler that would fire up PRX2 and the radio plugin set permanently at say radio 4.

Thanks for your assistance

Maurice
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,583
Threads: 384
Joined: Dec 2004
#2
2009-05-03, 08:39 PM
hansol123 Wrote:Is there any way of running a script from scheduler that would fire up PRX2 and the radio plugin set permanently at say radio 4.
Hi Maurice,

Well there wasn't but...

Try the attached. Unzip to a temp folder and simply drag'n'drop the Plugins folder it contains to the gbpvr install folder (stop the dvb radio service first).

To use:

Create a new entry in the DvbRadio.xml <settings> section...
Quote:<AutoPlay>BBC Radio 4</AutoPlay>
...or what ever station - use the name of the station as you see it in the DVB Radio plugin although it's not case-sensitive.

Create a scheduled task to run the AutoStart.bat file I've included - make sure the task is set to "Start in" the Plugins\DvbRadio folder (the scheduled task wizard should do this by default).

NOTE: I haven't spent much time on this but I've tested it a few times and it seems OK. It basically emulates starting pvrx2, selecting the plugin and manually playing the channel so it should be pretty harmless.

NOTE: If you have an <AutoPlay> setting in the DvbRadio.xml file it will automatically play that channel even if you start pvrx2 and the plugin manually - it has no way of telling. It can be disabled by deleting the <AutoPlay> setting or by editing to <AutoPlay>off</AutoPlay>.

NOTE: If you want to use this for recording purposes, it's up to you to stop the playback and find the gbnetradio mp3 file etc.

Cheers,
Brian
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#3
2009-05-04, 03:19 AM (This post was last modified: 2009-05-04, 04:30 AM by pBS.)
can't he just use the autoplay with 'pvrx2.exe -direct “plugin name” ' in scheduler?
that will start pvrx2 and go straight to your plugin,autoplay is up to plugin tho...Smile
guess that's basically what you did, n/m...Big Grin
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
hansol123
Offline

Member

Posts: 245
Threads: 44
Joined: Feb 2008
#4
2009-05-04, 09:16 AM
Dear Brian

Batch file runs fine but when I run it from scheduler PRX2 uses 100% of resources and never starts. Scheduler on XP requires an account with a password so a while back a setup a user named schedule with a password just for controlling scheduled tasks, this works ok for closing of the PC automatically in the evening etc. Any idea aboout the resource problem.

Thanks

Maurice
hansol123
Offline

Member

Posts: 245
Threads: 44
Joined: Feb 2008
#5
2009-05-04, 09:54 AM
Ok setup password on the main account and scheduler/PRX2 now works ok.

Next qustion is it possible to setuo batch file that will close down PRX2 so that I can close down the recording at the time it finishes using scheduler.

The next stage would be to use the EPG, pity that radio can not be built into the main system !!!

Thanks again Brian.

Maurice
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,583
Threads: 384
Joined: Dec 2004
#6
2009-05-04, 07:33 PM
hansol123 Wrote:Next qustion is it possible to setuo batch file that will close down PRX2 so that I can close down the recording at the time it finishes using scheduler.
Nothing simple springs to mind unless you use something extreme like PKill (process kill) to forcefully kill the pvrx2exe process.

I could add a time period option and close things down but that isn't as simple as it sounds.

To be honest I don't really want to go any further along this line (for recording purposes anyway). I only added the AutoPlay function because it didn't take much work and it seemed it may be of some use to some people.

More sophisticated recording capability is on my todo list but I'm still trying to work out the best approach.

Cheers,
Brian
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode