NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Information Community Announcements v
« Previous 1 … 27 28 29 30 31 … 56 Next »
GBPVRcli - access GB-PVR information from the command line

 
  • 0 Vote(s) - 0 Average
GBPVRcli - access GB-PVR information from the command line
Mister Slimm
Offline

Senior Member

Posts: 437
Threads: 41
Joined: Nov 2005
#61
2006-08-24, 02:25 PM
Rayman Wrote:Mister Slimm
ok some further information -
removing the GBPVR_LCDSmPlugin.dll from the plugins directory removes the
exception condition -
so definate incompatability between the two -
The above DLL is only active if GBPVR window is up of course - should have realised that one last night -

The plugin DLL is loaded whenever GBPVRcli loads because GBPVRcli loads GBPVR library routines to perform its functions. These libraries run an initialisation which includes parsing plugins. Perhaps because GBPVR isn't actually loaded the initialisation routines in the LCD plugin crash. Perhaps you could get confirmation or otherwise of this from the developer of that plugin.
[SIZE="1"]Akasa Zen case, AMD Phenom II X3 720, 4.00Gb Ram, Sapphire ATI Radeon 4890, Terratec Terratec Cinergy 2400i Twin Digital Tuner, 1050Gb storage, Windows 7 Home Premium.
See my blog for releases, HD wallpapers, movie, game and anime reviews and more.[/SIZE]
Mister Slimm
Offline

Senior Member

Posts: 437
Threads: 41
Joined: Nov 2005
#62
2006-08-24, 03:21 PM
Rayman Wrote:ok now for more wierdness (dll above removed)
open a "dos" shell - can run the bat file - eg ParallelProcessing.bat - first time
it will print out and run the first gbpvrcli command ok - doesnt execute the second -
subsequent attempts to run the bat file do nothing - no echo of command - nothing.
running manually from command line - ie each command is ok though

closing and opening a new shell - start again.
tried adding errorlevel catches - no change

Puzzling indeed. Try this version and let me know if it fixes it on your system aswell.

Slimm GBPVR beta for v9707+ Direct download link
[SIZE="1"]Akasa Zen case, AMD Phenom II X3 720, 4.00Gb Ram, Sapphire ATI Radeon 4890, Terratec Terratec Cinergy 2400i Twin Digital Tuner, 1050Gb storage, Windows 7 Home Premium.
See my blog for releases, HD wallpapers, movie, game and anime reviews and more.[/SIZE]
replaytv
Offline

Senior Member

Posts: 352
Threads: 22
Joined: Oct 2004
#63
2006-08-24, 07:08 PM (This post was last modified: 2006-08-24, 07:15 PM by replaytv.)
MisterSlimm,

This is what I want to achieve which I was able to do with recstatus.exe and want to use your utility to do this since I move to sqllite database.

I have 2 capture card PVR150. For example, I have two concurrent recording one 30 mins, another 60 mins. In pararrelprocessing.bat, I already have a line to create c:\recording.dat every time it executed.

At the end of the 30 mins recording ends, I want to use your utility in postprocessing.bat to test for the recording status to see if there are other recording in progress (which recstatus.exe does) then I create c:\recording.dat or remove c:\recording.dat depending on the return status. In this case, postprocessing.bat won't hibernate pc at the end of 30 mins recording because recording in progress, but it will hibernate at the end of 60 mins recording.

Is it possible with GBPVRcli.exe? Thanks.

Dan L.
Dell Dual Core 6400 XP Pro, PVR500, HVR-1600, MVPs on Belkin wireless bridge
Mister Slimm
Offline

Senior Member

Posts: 437
Threads: 41
Joined: Nov 2005
#64
2006-08-24, 09:44 PM
replaytv Wrote:MisterSlimm,

This is what I want to achieve which I was able to do with recstatus.exe and want to use your utility to do this since I move to sqllite database.

I have 2 capture card PVR150. For example, I have two concurrent recording one 30 mins, another 60 mins. In pararrelprocessing.bat, I already have a line to create c:\recording.dat every time it executed.

At the end of the 30 mins recording ends, I want to use your utility in postprocessing.bat to test for the recording status to see if there are other recording in progress (which recstatus.exe does) then I create c:\recording.dat or remove c:\recording.dat depending on the return status. In this case, postprocessing.bat won't hibernate pc at the end of 30 mins recording because recording in progress, but it will hibernate at the end of 60 mins recording.

Is it possible with GBPVRcli.exe? Thanks.

Dan L.

If I've understood correctly, then you may already have installed an item that will do that trick. The Slimm GB-PVR tray utility has a feature to turn off / standby / whatever the computer when a recording session finishes. Take a look at the documentation and see if that is what you need. The documentation is installed under the GB-PVR\Documentation start group.
[SIZE="1"]Akasa Zen case, AMD Phenom II X3 720, 4.00Gb Ram, Sapphire ATI Radeon 4890, Terratec Terratec Cinergy 2400i Twin Digital Tuner, 1050Gb storage, Windows 7 Home Premium.
See my blog for releases, HD wallpapers, movie, game and anime reviews and more.[/SIZE]
replaytv
Offline

Senior Member

Posts: 352
Threads: 22
Joined: Oct 2004
#65
2006-08-24, 10:16 PM
I am aware of the SlimGBPVR tray utility has this option, but it requires user interaction. I want to use GBPVRcli in batch to achieve same result with no user action.

In the morning when I am not home, I wants computer to hibernate as soon as recording is done. When I am home, I use psshutdown utility to allow 2 hours to hibernate after recording is done. I schedule a batch file to create dummy c:\now file in the morning and remove this c:\now in the afternoon. I monitor whether recording in progress and now or not now file in the postprocessing.bat to allow fast or slow hibernate after a recording finished.

The problem I run into now is without recstatus.exe. The postprocessing.bat in the morning will hibernate after recording is done even with the 2nd recording is in progress. I want to prevent that by using your GBPVRcli in the batch file.

I hope this makes sense.

Thanks.

Dan L.
Dell Dual Core 6400 XP Pro, PVR500, HVR-1600, MVPs on Belkin wireless bridge
Mister Slimm
Offline

Senior Member

Posts: 437
Threads: 41
Joined: Nov 2005
#66
2006-08-24, 10:43 PM
replaytv Wrote:I am aware of the SlimGBPVR tray utility has this option, but it requires user interaction. I want to use GBPVRcli in batch to achieve same result with no user action.

In the morning when I am not home, I wants computer to hibernate as soon as recording is done. When I am home, I use psshutdown utility to allow 2 hours to hibernate after recording is done. I schedule a batch file to create dummy c:\now file in the morning and remove this c:\now in the afternoon. I monitor whether recording in progress and now or not now file in the postprocessing.bat to allow fast or slow hibernate after a recording finished.

The problem I run into now is without recstatus.exe. The postprocessing.bat in the morning will hibernate after recording is done even with the 2nd recording is in progress. I want to prevent that by using your GBPVRcli in the batch file.

I hope this makes sense.

Thanks.

Dan L.

Right.

How about something along these lines. Please note I don't know much about writing batch files.

In postprocessing:
Code:
@GBPVRcli /inprogress /message "@GOTO exitbatchfile" >hibernate.bat
@ECHO @ECHO shutting down 'puter >>hibernate.bat
@ECHO @shutdownputer.exe >>hibernate.bat
@ECHO @:exitbatchfile >>hibernate.bat
@CALL hibernate.bat

Let's presume I got all that right; this is how it works.

If there is an inprogress recording, GBPVRcli creates the message "GOTO exitbatchfile" and squirts it to the file hibernate.bat. There doesn't have to be any tokens in there, it just renders the text as is.

If there are no inprogress recordings, GBPVRcli creates an empty file called hibernate.bat.

The other lines are added onto what GBPVRcli dumped out. The next two are added to hibernate.bat and echo a "shutting down 'puter" message and then call the .exe that shuts down the computer. The last line is added to hibernate.bat and is a label.

If there are in progress recordings, the first line will have put a GOTO command at the beginning of hibernate.bat that jumps to the end of hibernate.bat. hibernate.bat will look like this:
Code:
@GOTO exitbatchfile
@ECHO shutting down 'puter
@shutdownputer.exe
@:exitbatchfile
If there are no in progress recordings, the first GOTO line will not exist and the computer shutdown code will fire. hibernate.bat will look like this:
Code:
@ECHO shutting down 'puter
@shutdownputer.exe
@:exitbatchfile
Instead of a 'now' text file, perhaps your scheduler could create a shutdown.bat. This shutdown.bat is called on this line above:
Code:
@ECHO @shutdownputer.exe >>hibernate.bat
becomes
Code:
@ECHO @CALL shutdown.bat >>hibernate.bat
For the morning shutdown.bat contains:
Code:
shutdown.exe /hibernate /immediately
For the afternoon shutdown.bat contains:
Code:
shutdown.exe /hibernate /in a couple of hours

Howzat sound?

P.S.: obviously, an @ECHO off might be in order instead of ten million @ symbols everywhere! Makes it look like my post is looking back at me Smile
[SIZE="1"]Akasa Zen case, AMD Phenom II X3 720, 4.00Gb Ram, Sapphire ATI Radeon 4890, Terratec Terratec Cinergy 2400i Twin Digital Tuner, 1050Gb storage, Windows 7 Home Premium.
See my blog for releases, HD wallpapers, movie, game and anime reviews and more.[/SIZE]
martynw
Offline

Junior Member

Posts: 30
Threads: 4
Joined: Apr 2006
#67
2006-08-24, 10:51 PM
If possible can you add an option to output a different message if there's no data returned as opposed to just outputting nothing?

So something like:

gbpvrcli.exe /inprogress 4 /message "Normal formatted message with recordings details etc\n" /messagenodata "There are currently no recordings in progress\n"


Thanks,

Martyn
replaytv
Offline

Senior Member

Posts: 352
Threads: 22
Joined: Oct 2004
#68
2006-08-24, 10:52 PM
Thanks. I will try your method tonight.

Dan L.
Dell Dual Core 6400 XP Pro, PVR500, HVR-1600, MVPs on Belkin wireless bridge
Rayman
Offline

Member

Posts: 75
Threads: 8
Joined: Nov 2005
#69
2006-08-25, 12:00 PM
Mister Slimm -
that seems to have fixed up the batch file weirdness-
now runs every time and runs both commands -

Thanks for that -
Regards
Rayman
AMD XP3000+ 1GB 200+200+40G ide, nvidia6200 video (purevideo): Dvico fusionHDTV+, DNTVlive pci, dreambox 500s via 100BT: modded silverstone LC11 with 4*20 Lcd: Display NEC 42XM3 - now if i can just #$%^* get spdif out to work
Mister Slimm
Offline

Senior Member

Posts: 437
Threads: 41
Joined: Nov 2005
#70
2006-08-25, 10:48 PM
Features
  • /messageifnodata switch added.
  • /msgboxifnodata switch added.
  • Token {DescriptionNoWrap} added.
  • Console output now in UTF-8 format so non-Roman characters should render properly.
Bug Fix
  • After running GBPVRcli once, no other batch file item would execute properly. Now that's a cool bug. 'twas caused by above feature outputting in UTF-8 and not switching back to ASCII before exiting. Who knew? I had a
    Console.OutputEncoding = Encoding.UTF8; at the start but needed a Console.OutputEncoding = Encoding.ASCII; before I exited. The only reason I managed to trace this bug is because this was the only change I had made in a while. Otherwise, I might have been looking forever.
Slimm GBPVR beta for v9707+ Direct download link
[SIZE="1"]Akasa Zen case, AMD Phenom II X3 720, 4.00Gb Ram, Sapphire ATI Radeon 4890, Terratec Terratec Cinergy 2400i Twin Digital Tuner, 1050Gb storage, Windows 7 Home Premium.
See my blog for releases, HD wallpapers, movie, game and anime reviews and more.[/SIZE]
« Next Oldest | Next Newest »

Users browsing this thread: 2 Guest(s)

Pages (9): « Previous 1 … 5 6 7 8 9 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  fix for network access + Interact w/desktop pBS 6 6,277 2009-08-04, 03:49 AM
Last Post: mvallevand
  UK Listings - XMLTV Access to DIGIGUIDE systemshark 6 7,984 2008-06-14, 02:42 PM
Last Post: garymeds
  now CDAUDIO access from video library :) pBS 1 1,793 2008-01-01, 08:34 AM
Last Post: kayleigh
  SSL enabled GBPVR web access? Interested? Networker 4 2,935 2005-06-16, 10:52 AM
Last Post: betlit
  Tuning Microsoft Access KingArgyle 1 1,880 2005-02-11, 06:40 PM
Last Post: KingArgyle

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

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

Linear Mode
Threaded Mode