goodev / android-xbmcremote

Automatically exported from code.google.com/p/android-xbmcremote
1 stars 0 forks source link

Automatically enable correct EventServer settings via HTTPAPI #161

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Feature suggestion:

I have seen a lot of users that have trouble to setup the device for one or
another reason. So I suggest a Setup Wizard.

A wizard that will not only configure the remote, but also tell the user
what to do in XBMC and after that test the settings to decide if that
specific step in the wizard is complete.

For the Eventserver part I suggest to first configure Webserver and then
configure Eventserver and test it like this:
- Poll http://xbox/xbmcCmds/xbmcHttp?command=GetVolume and store the results.
- Send 'Mute' through Eventserver.
- Poll GetVolume and compare with the previously results.
- Do this a couple of times to ensure that it's not a coincident that the
user has pressed 'Mute' on their remote control.
- Send 'Mute' even times so the volume is restored to its original value.
Tada... we now know if the Eventserver is working.

IF you have plans to remove the Eventserver, please consider to do this
wizard and later on delete eventserver step instead of waiting for the
removal of the eventserver.. Who knows what year that will be :)

// Cheers

Original issue reported on code.google.com by bolin.andreas@gmail.com on 31 Jan 2010 at 8:50

GoogleCodeExporter commented 9 years ago
After telling users over and over how to enable the EventServer I think this 
will be
a great enhancement.

Original comment by till.ess...@googlemail.com on 1 Feb 2010 at 10:10

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
To test if the eventserver is running:
http://xbmc/xbmcCmds/xbmcHttp?command=getguisetting(1;services.esenabled)
Returns boolean

To get eventserver port:
http://xbmc/xbmcCmds/xbmcHttp?command=getguisetting(3;services.esport)
Returns port as string

thanks the_alien!

Original comment by bolin.andreas@gmail.com on 12 Feb 2010 at 6:42

GoogleCodeExporter commented 9 years ago
To see if setting 'Allow programs on this system to control XBMC' is on or off:
http://192.168.0.2:8080/xbmcCmds/xbmcHttp?command=GetGUISetting(1;services.esena
bled)

To enable 'Allow programs on this system to control XBMC':
http://192.168.0.2:8080/xbmcCmds/xbmcHttp?command=SetGUISetting(1;services.esena
bled;true)

To see if setting 'Allow programs on others system to control XBMC' is on or 
off:
http://192.168.0.2:8080/xbmcCmds/xbmcHttp?command=GetGUISetting(1;services.esall
interfaces)
To enable 'Allow programs on others system to control XBMC':
http://192.168.0.2:8080/xbmcCmds/xbmcHttp?command=SetGUISetting(1;services.esall
interfaces;true)

Now we can make eventserver fully automatic :)

Original comment by bolin.andreas@gmail.com on 12 Feb 2010 at 7:19

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
These should return the MAC address if xbmc can read it:

http://192.168.0.2:8080/xbmcCmds/xbmcHttp?command=GetSystemInfo(191)
and
http://192.168.0.2:8080/xbmcCmds/xbmcHttp?command=GetSystemInfoByName(network.ma
caddress)

Original comment by bolin.andreas@gmail.com on 13 Feb 2010 at 1:29

GoogleCodeExporter commented 9 years ago
I hate wizards. ;)

I guess resetting the ES settings via HTTPAPI/JSONRPC is reasonable.

Original comment by phree...@gmail.com on 5 Mar 2010 at 5:09

GoogleCodeExporter commented 9 years ago
This could be sent automatically on every init, right? Shouldn't be much hassle 
to 
implement.

Original comment by phree...@gmail.com on 21 Apr 2010 at 8:27

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Any news on this the_alien?

Original comment by bolin.andreas@gmail.com on 17 Jul 2010 at 3:16

GoogleCodeExporter commented 9 years ago
Sorry, having no time until september. :-( 

Original comment by till.ess...@googlemail.com on 17 Jul 2010 at 4:38

GoogleCodeExporter commented 9 years ago
Quick news:
r690, r691 and r692 added a new setup wizard, which will read the gui setting 
of xbmc for the eventserver and will try to use the eventserver with reading 
the volume, muting and reading volume again.
Thanks for the research!

Original comment by till.ess...@googlemail.com on 24 Aug 2010 at 8:33

GoogleCodeExporter commented 9 years ago
sweet :)

Original comment by bolin.andreas@gmail.com on 24 Aug 2010 at 9:06

GoogleCodeExporter commented 9 years ago
Any news on this?

Original comment by phree...@gmail.com on 20 Feb 2011 at 10:09

GoogleCodeExporter commented 9 years ago
Sorry for being so lazy lately...

The wizard should work, maybe i should just sent and check the mute command 
more then once.

Original comment by till.ess...@googlemail.com on 21 Feb 2011 at 11:31

GoogleCodeExporter commented 9 years ago
Can you re-enable it then and commit? Then I'll test it. Thanks!

Original comment by phree...@gmail.com on 22 Feb 2011 at 7:26

GoogleCodeExporter commented 9 years ago
Nothing happens when I press Host Wizard for me in v0.8.5-beta1. Is it disable?
//StarChild
HTC Magic @ android 1.5

Original comment by bolin.andreas@gmail.com on 22 Feb 2011 at 11:51

GoogleCodeExporter commented 9 years ago
Yes, the wizard is disabled.

Original comment by till.ess...@googlemail.com on 23 Feb 2011 at 8:52

GoogleCodeExporter commented 9 years ago
r776 and r777 enabled the wizard again. 

Original comment by till.ess...@googlemail.com on 8 Jun 2011 at 7:12

GoogleCodeExporter commented 9 years ago
sweet :)

Original comment by bolin.andreas@gmail.com on 10 Jun 2011 at 6:30