Kodi Community Forum
WebServer HTTP API (HttpApi): for PocketPC and Web-client Remote Control Apps - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93)
+--- Thread: WebServer HTTP API (HttpApi): for PocketPC and Web-client Remote Control Apps (/showthread.php?tid=8760)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38


- NeoMorph - 2007-10-23

GOT IT WORKING GOT IT WORKING GOT IT WORKING GOT IT WORKING GOT IT WORKING GOT IT WORKING GOT IT WORKING GOT IT WORKING GOT IT WORKING GOT IT WORKING GOT IT WORKING GOT IT WORKING GOT IT WORKING GOT IT WORKING GOT IT WORKING GOT IT WORKING GOT IT WORKING GOT IT WORKING GOT IT WORKING GOT IT WORKING GOT IT WORKING

It's funny what happened when it started working... Song played had the lyrics "Are you happy now! Look who's happy now!"

Oh god I'm a moron... I kept trying to set the IP to that of the XBOX... I bet that is what was upsetting it. Guess I should RTFM instead of quickly browsing the darn readme file.

I don't suppose you have a vb6 version of the program.. I think your example is vb.net and I don't have that. Other than that thank you for putting up with a moron. The broadcast function is going to be one hell of a help with my touch panel project.


- NeoMorph - 2007-10-23

Oh.. one thing...

Quote:<b>OnPlayBackStoped;1</b>

... it should be <b>OnPlayBackStopped;1</b> I think. Wink

At least one thing as gone right today... I broke my glue gun (trigger snapped) so I decided to solder wire around the broken link and my soldering iron heating element failed... both on the same day in the middle of me modding my xbox into a new case.


No Song Change Using Net Radio... - NeoMorph - 2007-10-23

Broadcast works fine for local music but it needs a tweak for NetRadio.

One thing that the Broadcast needs to add is checking for songname changing when using NetRadio and when it does change for it to output a "NewSong" udp message. Currently it shows the first song that was played or the IP and it stays that way while on the xbox the Artist and Tracknames are changing.


- NeoMorph - 2007-10-23

NeoMorph Wrote:I don't suppose you have a vb6 version of the program...

Forgot to mention I downloaded the free VB.Net 2008 Express beta and used that to add my event generator for Girder so I don't need a vb6 version. Cool


- nad - 2007-10-23

NeoMorph: good to hear you got broadcast working.

Thanks for letting me know abou the typo.

If you do need to go back to VB6 then you will find a VB6 client for calling the httpapi here:

http://sourceforge.net/project/showfiles.php?group_id=87054&package_id=198866

Though it doesn't have the Listener broadcast functionality it should give you a step in the right direction.

I'll have a look into your NetRadio request.


- NeoMorph - 2007-10-24

The VB.Net version of your Listener prog is fine. The VB.Net 2008 Express free download allowed me to add the extra bit I needed to make it generate the events I needed.

The RecordStarted and RecordStopped events work perfect too. Other than the netradio problem it's great and has reduced the processing load on my server now it's not polling the xbox all the time. Big Grin


- nad - 2007-10-28

Additional events for the NetRadio request have been uploaded to svn.


- NeoMorph - 2007-10-28

*NeoMorph does a little dance*

Thanks Nad... You are the best. No doubt about it... Team XBMC are the best. Nod


- NeoMorph - 2007-10-28

Just a quick query about getting the CPU/GPU temps... Why do they report with a wierd character between the number and the degree sign?

Like when I call "http://xbox/xbmcCmds/xbmcHttp?command=GetSystemInfo&parameter=162" I get this...

Quote:56°C



- NeoMorph - 2007-10-28

Here's a bug that keeps happening to me... it happens with the web browser version as well as my panel.

Sometimes you have been playing from a playlist and you press stop. Then press play and nothing happens... next, prev all don't work. You have to empty out the playlist and then select the music again... it then starts to work fine again until you press stop once more then it's time to clean the playlist out again.


- NeoMorph - 2007-10-28

That stop bug has plagued me for weeks and just after I posted an idea came to me...

I got the non-functioning playbutton again... I then sent a message to the xbox to use playlist 0 and play works again.

It seems that when you press stop it's switching to a different playlist than the one that is currently playing.


- NeoMorph - 2007-10-28

Confirmed... Pressing stop sets the playlist type to -1. Looks like a bug there somewhere.


- asg - 2007-10-31

Hi,

theres a little bug in xbmc.executehttpapi when using from xbmc_pc. The executehttpapi will only work when the webserver is enabled. it also stops working after sending a httpapi command and you have to re-enable the built-in webserver in order to test it again..

Fixing this "bug" would really help to save some time while coding and trying.

Maybe theres also a method to assign a thumbnail to the currently created source/bookmark?

regards
asg


- nad - 2007-11-04

NeoMorph: As discussed via PM I won't address the '-1' issues since we both can work around them on our clients.

As for your other requests I have just submitted to the SVN:

changed: broadcast event TitleChanged to MediaChanged and added check and broadcast of artist
added: httpapi commands GetMusicLabel and GetVideoLabel

I have updated the online manual to reflect the above two additions but basically what (I believe) you are after is: GetMusicLabel(217), i.e. the current audio codec.


- NeoMorph - 2007-11-06

Nad, as I've said before... you rock! Gonna try out the GetMusicLabel command out in a bit but it sounds like it will let me know whether to enable the recording button correctly.


FYI, my current panel is now looking like this (click on image to get a full sized one)...


Image
The big red and blue buttons at the top left are just placeholders for testing stuff. The reason the buttons are so big is that it's a touchscreen layout.

I just have a few logic glitches to work through and then add some updated graphics for the covers display, artist bio display and web lookup display to do and then version 1 will be ready for release to NetRemote/Girder users.