PDA

View Full Version : Power On from Remote UI. Boxee Box.


sydinstaller
May 23rd, 2011, 02:23 AM
Hi,

I am in the process of starting a control widget for a Nevo S70 remote.
Just to be clear, this is for the actual Boxee Box hardware not the software version.

I can do basic nav commands but I have run into an issue with the power control...

How do I turn the Boxee Box back ON using a http command (or similar)?

I can turn it off:
http://xxx.xxx.xxx.xxx:8800/xbmcCmds/xbmcHttp?command=Shutdown()

It would appear that the Boxee Box completely shuts down and only the original remote (or button on top) can be used to power it back on.

Can something be changed in f/w to keep the Ethernet port active?

Or is there a work around that I am missing?


Thanks
Daniel.

bartsidee
May 23rd, 2011, 03:13 AM
No I do not think you can use anything to boot it up other then the remote. (you can set reboot/sleep/hibernate)

Also just a comment on the code you show, it is not adviced to use the old xbmc http api, it is depreciated. The new json-rcp api is released in 1.1 and will have future support.

See also:
http://developer.boxee.tv/JSON_RPC

There is a nice module for it on the boxee github:
https://github.com/Boxee/Boxee-Tools/blob/master/python/boxeeboxclient.py

sydinstaller
May 23rd, 2011, 08:13 AM
Hi bartsidee,

Thanks for the info.

I am a little stuck though.

After reading the info it looks like I need to pair with the Boxee. Unfortunately I cannot do this with the S70.

One of the last lines mentions that you can send raw TCP commands to the boxee. This I can do but I have not been able to make it work.

I have tried Putty and Hercules but with no luck. Can you possible give me some pointers?


Thanks
Dan.

bartsidee
May 23rd, 2011, 08:40 AM
Why not buy an ir transmitter, the box seems the work with the mce remote commands.

sydinstaller
May 23rd, 2011, 09:02 AM
Where is the fun in that :)

Seriously though.

IP is a much better platform to work with. I was also hoping to have a widget with some basic feedback. Maybe current item playing with some cover art.

Once the Nevo widget was finished I was going to try a Vantage driver then an AXIUM driver.

The Nevo is a stepping stone.


Dan.

sydinstaller
May 23rd, 2011, 08:32 PM
Hi,

So I have a little more progress.

Using both Hercules and Hyperterminal I can talk to the Boxee. No go with PuTTY.

Sending:
{"jsonrpc":"2.0","id":1,"method":"Device.PairChallenge","params":{"deviceid":"12345","applicationid":"6789","label":"Nevo Test","icon":"http://www.mynevo.com/images/uploaded_images/nevo%20logo.jpg","type":"remote"}}

Replys:
{"id":1,"jsonrpc":"2.0","result":{"success":true}}{0A}

And the OSD shows a PIN number.

Sending:
{"jsonrpc":"2.0","id":1,"method":"Device.PairResponse","params":{"deviceid":"12345","code":"4947",}}

With the appropiate PIN number added in "Code"
Replys:
{"error":{"code":-32700,"message":"Parse error."},"id":1,"jsonrpc":"2.0"}{0A}

Any ideas why I would be getting the Parse error?

Screen grab here:
http://www.mediafire.com/?70sr7r5ghkd5v


Thanks
Dan.

bartsidee
May 24th, 2011, 04:01 AM
Deviceid without the quotes?

But that is probably not causing the parse error. I noticed you used a comma just before closing the object (last comma) you should remove this. Json can be very picky about this.

sydinstaller
May 24th, 2011, 07:36 PM
That was it.

The last comma after the "code"

Thank you.

sydinstaller
May 25th, 2011, 06:41 PM
Hi,

Ok. I have made some progress.

I can now successfully pair the Nevo to the Boxee.
I have basic navigation control with more to follow.

A few things though.

Who do we ask/inform to update the developerís wiki?

I have found a command that is vital but not listed:

List and working:
Input.Up
Input.Down
Input.Left
Input.Right
Input.Back
Input.Home

Not listed but required:
Input.Select

This is the "OK" command. Input.MouseClick does not work with Boxee Box.

Also.
Using a MCE IR remote there are discrete codes to go directly to Pictures, Music and TV Shows (nothing for Movies). I cannot find a command to do this over IP.

Do these commands exist but are not documented?


Thanks for helping me out with my issues.
Dan.

bartsidee
May 25th, 2011, 07:24 PM
I think they commands are (almost) the same as xbmc json rcp, see also:
http://wiki.xbmc.org/index.php?title=JSON_RPC

sydinstaller
May 25th, 2011, 08:07 PM
Thats great.

Thank you.

I will check it out.


Dan.

sydinstaller
May 25th, 2011, 09:14 PM
Hi,

Can someone please confirm that these commands are do not work with Boxee Box.

System.Shutdown
System.Suspend
System.Hibernate
System.Reboot

I would love to be able to "Suspend" the Boxee.
The function is available in the boxee menu but I can't make it work over IP. I do get a notification from boxee:
{"jsonrpc":"2.0","method":"Announcement","params":{"message":"Suspend","sender":"xbmc"}}
when I select the "Sleep" function in the power menu.

I also tried:
XBMC.Suspend
XBMC.Hibernate

with no luck.

Any other suggestion?
or is it just not possible?

Thanks
Dan.

MrBeanzy
September 5th, 2011, 05:19 AM
Hi Dan,

How did you get on with this, was just doing some research as i was planning on writing a S70 widget myself for home.

Is your widget available online at all?

Thanks,

Paul.

sydinstaller
September 5th, 2011, 09:56 PM
Hi,

I got the basics working:
~Hand shake and joining.
~Basic navigation

I stopped stopped there as work got in the way.

A friend of mine has taken it a lot further though. It is still in dev but it has a lot more features and functionality than mine.

I have sent him a link to this post. He should hopefully get back to you soon.


D.

jasonvp
September 6th, 2011, 07:31 AM
Hi Paul,

You can download my widget here (http://www.mediafire.com/?26vywvae06jdd0t).

As Dan said it is work in progress because the Boxee Box has limited JSON RPC methods. Also I don't own a Boxee Box (I borrowed Dan's) so I've been working on a XBMC Widget which has a lot more methods for control and feedback.

You will have to use the original remote to go into the settings of the Boxee so you can pair the S70 by entering the four digit code that appears on the Boxee GUI and use the S70 Pairing Widget to pair it.

In the Control Widget the Shuffle and Repeat buttons do not work because there are no methods for these but it does show the state.

Anyway have play and see what you think.


Cheers
Jason

EDIT
There is only Music Now Playing info at the moment but no Album Art.

MrBeanzy
September 7th, 2011, 02:18 PM
Hi Jason/Dan,

Thats awesome, you got a lot further than i did! I must say my Nevo Studio skills are rather rusty!

You still working on it Jason? Or have you stopped?

Thanks, Paul.

jasonvp
September 7th, 2011, 08:38 PM
No I'm not working on it at the moment because like I said the JSON (http://developer.boxee.tv/JSON_RPC) for the boxee is very limited and I actually don't have a boxee box to test with. I didn't do any work on feedback for video content (had to send the boxee back to Dan) but this could be added but it's a bit hard to do without a boxee box. If they improve the JSON I will probably buy a boxee box and do some more.

I'm currently working on an XBMC widget which has a lot of JSON methods (http://wiki.xbmc.org/index.php?title=JSON_RPC) but this is going to take a while because the XBMC team are currently making a lot of changes to the JSON RPC.

If you have any questions on adding to my widget I'm happy to help.


Cheers
Jason

MrBeanzy
September 16th, 2011, 10:05 AM
Thanks Jason,

I'm currently looking at XBMC as it looks to be the better option for me. Similar JSON but it looks like it has a little more to it.