2009-05-27, 09:20
I'm trying to use the XBMC webapi as documented on http://www.xbmc.org/wiki/?title=WebServe...s_Commands.
The issue I run in that the xbmcCmds commands does not seem to be availible.
I enabled the webserver under the server settings and set the port to 8080. Default user is still xbmc with no password. What could be wrong? I'm using XBMC Live 9.04
The issue I run in that the xbmcCmds commands does not seem to be availible.
I enabled the webserver under the server settings and set the port to 8080. Default user is still xbmc with no password. What could be wrong? I'm using XBMC Live 9.04
Code:
xbmc@XBMCLive:~$ curl "http://localhost:8080/xbmcCmds/xbmcHttp?command=Action(199)"
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta>
<title>404 Not Found</title>
<style type="text/css">
#powered_by {
margin-top: 20px;
border-top: 2px solid black;
font-style: italic;
}
#traceback {
color: red;
}
</style>
</head>
<body>
<h2>404 Not Found</h2>
<p>The path '/xbmcCmds/xbmcHttp' was not found.</p>
<pre id="traceback">Page handler: "The path '/xbmcCmds/xbmcHttp' was not found."
Traceback (most recent call last):
File "/var/lib/python-support/python2.5/cherrypy/_cphttptools.py", line 121, in _run
self.main()
File "/var/lib/python-support/python2.5/cherrypy/_cphttptools.py", line 256, in main
page_handler, object_path, virtual_path = self.mapPathToObject(path)
File "/var/lib/python-support/python2.5/cherrypy/_cphttptools.py", line 326, in mapPathToObject
raise cherrypy.NotFound(objectpath)
NotFound: 404
</pre>
<div id="powered_by">
<span>Powered by <a href="http://www.cherrypy.org">CherryPy 2.3.0</a></span>
</div>
</body>
</html>