XBMC Command Line Tool

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
nad Offline
Team-XBMC Developer
Posts: 265
Joined: Feb 2004
Reputation: 0
Post: #1
I have just uploaded to

http://sourceforge.net/project/showfiles..._id=198866

a program, XBMCCmd, that allows XBMC HttpApi commands to be sent directly from a Windows command line.

e.g.
Quote:XBMCCmd GetCurrentlyPlaying
Quote:XBMCCmd getdirectory(smb://mypc/c/)
Quote:XBMCCmd "getdirectory&parameter=smb://mypc/c/"

See the readme.txt file included in the package for further instructions.

Nad

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]
find quote
SleepyP Offline
Posting Freak
Posts: 2,282
Joined: Nov 2005
Reputation: 4
Location: Portland, Oregon
Post: #2
awesome. out of curiosity, what inspired you to make this?
find quote
nad Offline
Team-XBMC Developer
Posts: 265
Joined: Feb 2004
Reputation: 0
Post: #3
I guess I'm a bit of a command line junkie. However, for anyone slightly familiar with a command line, XBMCCmd provides a mechanism for exploiting the power of XBMC from your PC.

For example create a batch file, called xplay.bat, with the contents similar to:
Quote:xbmccmd playfile(smb://myPC/c/%1)

and you will be able to type something like:

Quote:xplay movies\geewizmove.avi

It is also useful for writing test scripts.

However, if you want a Windows interface to XBMC, have a look at XBMCControl which is also on SourceForge. Among lots of other functionality it can play media with a link copied to the clipboard, e.g. right click on an mp3 stored on your PC's hard disk, chose Copy and then XBMC will start playing it (if XBMCControl is configured to turn this function on).

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]
find quote
SleepyP Offline
Posting Freak
Posts: 2,282
Joined: Nov 2005
Reputation: 4
Location: Portland, Oregon
Post: #4
hehe figured as much, just thought there might have been some specific tasks that made you want it. Smile
find quote