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
#51
2006-08-20, 11:11 PM
martynw Wrote:If possible, could you add a {DescriptionWithoutLineFeeds} token (or a better name maybe!)

This would simply be the same as the {Description} token but with line feeds / carriage returns replaced with a single space. Or even better might be to have {DescriptionWithoutLineFeeds:<br>} where the characters after the : are used instead of line feeds / carriage returns.

I'm piping the output from gbpvrcli to another commandline program that accepts input on stdin, and the line feeds that occur in the description field are messing up my input :eek:


Thanks,

Martyn

Thanks for suggestion. Here is a quick fix version with a new token called {DescriptionNoWrap}.

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]
martynw
Offline

Junior Member

Posts: 30
Threads: 4
Joined: Apr 2006
#52
2006-08-20, 11:46 PM
Mister Slimm Wrote:Thanks for suggestion. Here is a quick fix version with a new token called {DescriptionNoWrap}.

Slimm GBPVR beta for v9707+ Direct download link

Fantastic! Cheers to late night coding Smile

(In case people are curious as to my usage, it's to output gbpvr status over xAP which is a home automation protocol (more info at http://www.xapautomation.org/wiki/index....n_protocol)

I've now got gbpvr status info available to anything that's xAP aware Big Grin

Would it be possible to add another switch to the utility? This one would be called "/nowshowing" (or similar) and would output records in the same way as the "/pending" or "/inprogress" switches but this time for anything in the EPG that is "on now"?

Martyn
Mister Slimm
Offline

Senior Member

Posts: 437
Threads: 41
Joined: Nov 2005
#53
2006-08-20, 11:49 PM
martynw Wrote:Would it be possible to add another switch to the utility? This one would be called "/nowshowing" (or similar) and would output records in the same way as the "/pending" or "/inprogress" switches but this time for anything in the EPG that is "on now"?

This is a whole new chunk of code but is something I am looking to implement at some time.
[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]
Rayman
Offline

Member

Posts: 75
Threads: 8
Joined: Nov 2005
#54
2006-08-23, 02:02 PM
MisterSlimm -
having a problem with the last release of GBPVRcli -
i can run from command line and get the output for pending / inprogress etc -
however - running from the bat file , in particular Particular from ParallelProcessing.bat - the first invokation is run - ie inprogress, but the pending is not - this is caused by an exception being generated that is causing the bat file to terminate -

seems whatever i run gbpvrcli with - i get the exception - the information requested in the command is output - but obviously the exception prevents multiple commands being invoked-

GBPVRcli has encountered a problem and needs to clode etc
Eventtype is clr20r3

Exception Information
Code 0xe0434f4d Flags 0x00000001
Record 0x0000.. Address 0x000000007c81eb33

Any ideas ?
Rayman
Mister Slimm
Offline

Senior Member

Posts: 437
Threads: 41
Joined: Nov 2005
#55
2006-08-23, 03:13 PM
Rayman Wrote:MisterSlimm -
having a problem with the last release of GBPVRcli -
i can run from command line and get the output for pending / inprogress etc -
however - running from the bat file , in particular Particular from ParallelProcessing.bat - the first invokation is run - ie inprogress, but the pending is not - this is caused by an exception being generated that is causing the bat file to terminate -

seems whatever i run gbpvrcli with - i get the exception - the information requested in the command is output - but obviously the exception prevents multiple commands being invoked-

GBPVRcli has encountered a problem and needs to clode etc
Eventtype is clr20r3

Exception Information
Code 0xe0434f4d Flags 0x00000001
Record 0x0000.. Address 0x000000007c81eb33

Any ideas ?
Rayman

Please could you post the GBPVRcli command lines and, if there is one, the GBPVRcli*.log files.

The above error message is a generic .NET error message that simply says a .NET program has crashed.

As a possible stop-gap, isn't there a flag we can set in a batch file that tells it to not to halt on errors?
[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]
Rayman
Offline

Member

Posts: 75
Threads: 8
Joined: Nov 2005
#56
2006-08-24, 12:02 AM
will check - been a while (years) since I delt with the old "dos" bat files -
Will get more debug for you tonight -

Another thought i did have this morning is, I run a couple of plugins that you more than likely
have not tested with:
DboxRecorder - which should be fine i would hope-
and i also am simultaneously using the GBPVRLcd beta - i suspect there may be some potential conflict there -

I'll pop GBPVRLcd out of the way tonight also and try to see if this removes the exception.

Regards
Rayman
replaytv
Offline

Senior Member

Posts: 352
Threads: 22
Joined: Oct 2004
#57
2006-08-24, 06:30 AM
MisterSlimm,

I want to use your gbpvrcli program to create a dummy file c:\recording.dat when the recording in progress, and remove c:\recording.dat if not recording. Is there anyway I can do this? Thanks.


I use this line in my postprocessing.bat, but it always produce the c:\recording.dat with data when recording in progress and empty when no recording.

gbpvrcli.exe /inprogress 1 /message "{Status}\n{Title}\n{SubTitle}\n{EndTime:t}\n{EndTime:HH}\n{EndTime:mm}"> c:\recording.dat

Help please. 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
#58
2006-08-24, 11:11 AM
replaytv Wrote:MisterSlimm,

I want to use your gbpvrcli program to create a dummy file c:\recording.dat when the recording in progress, and remove c:\recording.dat if not recording. Is there anyway I can do this? Thanks.


I use this line in my postprocessing.bat, but it always produce the c:\recording.dat with data when recording in progress and empty when no recording.

gbpvrcli.exe /inprogress 1 /message "{Status}\n{Title}\n{SubTitle}\n{EndTime:t}\n{EndTime:HH}\n{EndTime:mm}"> c:\recording.dat

Help please. Thanks.

Dan L.

In ParallelProcessing.bat:
Code:
gbpvrcli.exe /inprogress 1 /message "{Status}\n{Title}\n{SubTitle}\n{EndTime:t}\n{EndTime:HH}\n{EndTime:mm}"> c:\recording.dat

In PostProcessing.bat:
Code:
del c:\recording.dat
[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]
Rayman
Offline

Member

Posts: 75
Threads: 8
Joined: Nov 2005
#59
2006-08-24, 01:55 PM
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 -

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

no errors in GBPVRcli.exe.log.

puzzled - but at least the exception is gone (along with some functionality)

Regards
Rayman
Mister Slimm
Offline

Senior Member

Posts: 437
Threads: 41
Joined: Nov 2005
#60
2006-08-24, 02:22 PM (This post was last modified: 2006-08-24, 02:39 PM by Mister Slimm.)
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

Hmmm, I'll get back to you on that! Running GBPVRcli seems to have turned off all ability to run a batch file!
[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 … 4 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,104 2009-08-04, 03:49 AM
Last Post: mvallevand
  UK Listings - XMLTV Access to DIGIGUIDE systemshark 6 7,705 2008-06-14, 02:42 PM
Last Post: garymeds
  now CDAUDIO access from video library :) pBS 1 1,681 2008-01-01, 08:34 AM
Last Post: kayleigh
  SSL enabled GBPVR web access? Interested? Networker 4 2,766 2005-06-16, 10:52 AM
Last Post: betlit
  Tuning Microsoft Access KingArgyle 1 1,779 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