![]() |
|
WebServer HTTP API (HttpApi): for PocketPC and Web-client Remote Control Apps - Printable Version +- XBMC Community Forum (http://forum.xbmc.org) +-- Forum: Development (/forumdisplay.php?fid=32) +--- Forum: Development (/forumdisplay.php?fid=93) +--- Thread: WebServer HTTP API (HttpApi): for PocketPC and Web-client Remote Control Apps (/showthread.php?tid=8760) |
- dbrood - 2006-09-05 22:52 nad - thankyou very very much ![]() ill test this tonight, how was the week break? would you mind if i reported back here if i find any more quirks/suggestions? at the moment it feels like im trying to pass a bowling ball now got every sympathy for women who have given birth!!! EDIT:- ok on initial testing it still times out, this is from the debug logfile :- 05/09/2006 22:00:00 -- Regular timeout:http://192.168.1.112/xbmcCmds/xbmcHttp?command=getcurrentplaylist :3000 ------------- 05/09/2006 22:00:00 -- getPageResult:Err:Time out the ":3000" at the end of the above url isnt a port address i take it? is it some form of numeric logging you can refer too? (after re-reading it it def. cannot be a port address lol the medication im on makes things a bit fuzzy) this is my current config :- XBoxIP=192.168.1.112 Username=xbox Password=******* BypassCache=False WipeImageReview=False WipeFolders=False SaveToFolder_jpg=False AutoStartPlayList=True AutoCheckClipboard=False CheckPeriod=10 StreamProtocol=mms:|http:|shout:|ftp:|rtsp:|rtp:|udp:| StreamExt=.asf|.wmv| ImageExt=.jpg|.bmp|.gif|.tif|.jpeg|.png| MSNMessenger=False UseXBMCExtensions=True AutoGetPictureThumbs=False Debug=True its cutdown for a reason, in vers 1.23 (the only version where authentication worked) it would moan because of the default directory config, so i used to have too delete all the folder mappings and invalid smb shares from the config, input my xbox ip and the user credentials, i would then (when it connected to the xbox) re run the 1st time setup which then re-pulled off all my bookmarks. Unfortunatley (im going to re-look into this) looks like its still not working, im going to go through the sourcecode again if thats ok step by step to see if the settings are being passed. ps i can login via web with same user credentials fine. Thanks again for this gem of an app. You must of spent some man hours in coding it, but also designing it, some thought has gone into this lol i should know ive tried but never got it to be as feature filled as yours !! ![]() EDIT 2:- ok for testing reasons i took a copy of the above config for version 1.6 and pasted it into my config for your 1.23 version, and it connected straight away, copied that config back over to the 1.6 and it still times out. - dbrood - 2006-09-07 11:21 Update:- Ok after a bit of looking at the source code so far i can tell the settings are being parsed and in your method procSetting, i can see the correct username and password being stored - Case "username" theSettings.username = vals(1) <---------- i can see my username(xbox) Case "password" theSettings.password = vals(1) <---------- i can see my password Case "timeoutlong" XBMC.timeoutLong = CInt(vals(1)) Case "timeoutshort" XBMC.timeoutShort = CInt(vals(1)) Case Else Return False So far the settings are being read, im still continuing looking... - nad - 2006-09-07 11:50 dbrood: just sent you a Private Message. Let's continue this discussion through that medium and then I'll report back here when it is resolved. - nad - 2006-09-09 15:40 For anyone interested: it turns out that Dbrood's problem was down to a configuration problem caused by moving between different versions of XBMCControl. Deleting the old folder and starting afresh fixed things. - TREX6662k5 - 2006-11-23 11:40 Slight ressurection of thread, but do you have any plans on improving getsysteminfo? I mean, compared to the amount of data xbmc can display, the httpapi is missing certian bits and pieces. - nad - 2006-11-26 23:22 Are you sure what you are after is not available through getsysteminfo? Can you give an example of what you are after? - TREX6662k5 - 2006-11-27 02:43 Mostly weather related. Only location,temperature, condition can be retrieved and its only for the first location. What would be helpful if is someone could retrieve the extra locations, weather.com status number (for the picture) ,other information (wind etc) and the 5 day forcast. Sounds like a hell of a list, but thats what I would like to retreve. - TREX6662k5 - 2006-11-27 03:23 Other things that I might point out that are missing from the httpapi (im just pointing these out) mplayer build kernel version uptime\total time Information under XBOX, video, network (Apart from IP), dvd-rom, hard disk Bugs 1 returns "rror:No information retrieved for" To 23 returns "trieved for" Depending on the parameter, those above will subtract characters from the left depending on parameter Same occurs from 25 - 31 33 - 34 124 returns "# Invalid path in xbmcTakeScreenShot - saving to Z:" until 130 (with the string subtract problem as above) 136, 139, 147, 145, 148 150 (which i expect to retrieve HDD temp) returns 0 200 - 263 some dont return an error or the error is messed up due to string subtraction 300 304 - 320 returns image/jpg;base64, (include string subtraction, 304 will make firefox attempt to display an image) 350 - 356 returns the name of the current weather picture displayed (i think because i got hot.jpg) (include string subtraction) 390 will return "# port this" title=" untill 403 (include string subtraction) 500 will return " ssing parameter" 599 will return "der" untill 601 (include string subtraction) 29998 and 29999 work the rest will return something or crash the http server Upon starting XBMC the first request over HTTP will be returned in plaintext 2nd will return html formatted Well I hope that is of some use. build date 12 november 2006 firefox browser - TREX6662k5 - 2006-11-27 03:40 Forgot to point out numbers are parameters for getsysteminfo - Drongo - 2006-11-27 12:00 Nad, if you do decide to add all this extra info for weather, can you create a new tag such as getweatherinfo and not change the getsysteminfo response. Also if you do decide to do it can you also return the thumb name & path for the weather image displayed in XBMC. Drongo |