Results 1 to 6 of 6

Thread: python TCP server to remotely control Boxee

  1. #1
    Join Date
    Feb 2010
    Posts
    5

    Default python TCP server to remotely control Boxee

    Hi All,

    excuse me for this newbie question, but using the python API, would it be possible to run a TCP server on the background that interacts with Boxee so I can use this to remotely control Boxee?

    Any thoughts are greatly appreciated!
    thanks in advance.

  2. #2
    Join Date
    Aug 2008
    Location
    Cleveland, OH
    Posts
    3,712

    Default

    I think you will want to look into the Remote Control API. The Python API is for apps that run IN Boxee. The Remote API allows you to send control messages.

    It is not limited to Python, either. You can use any language to control Boxee.
    http://developer.boxee.tv/Remote_Control_Interface
    personal: boxee | twitter | boxee hq
    boxee: boxee chat | boxee wiki | boxee plugins

    i run boxee 0.9.20 on: ubuntu 9.10, windows xp sp3 (virtual machine), windows 7 and a neuros link hacked to all hell.

    what super powers does a 'super mod' have? the 'super ban'... that, and laser vision.

  3. #3
    Join Date
    Feb 2010
    Posts
    5

    Default

    Hi Agentlame! Thanks for your answer.
    I've already stumbled upon the httpAPI, but the thing is that Boxee doesn't reply with proper HTTP headers. Actually, boxee doesn't reply with HTTP headers at all.
    Webbrowsers pretty much don't care about those headers, they'll show the data anyways, but in my situation I have to receive proper HTTP. This basically means that I can't use the httpAPI directly.

    So the bottomline of my question is that I want to run a python script _in_ boxee that adds proper HTTP headers to the Boxee responses. So it pipes the boxee responses and creates something that I can process.
    I've got a working python script now running in a box on the background, but it would be a lot nicer if boxee can start this script and keep it running in the background...
    Hence my question...

    So I understand that I can make a python app for boxee, but can I make a python script that starts as soon as boxee starts up, will keep running in the background and closes when boxee closes?

    regards

  4. #4
    Join Date
    Aug 2008
    Location
    Cleveland, OH
    Posts
    3,712

    Default

    This can not be done. For no other reason than that the app would need to be running at all times.

    Boxee will only run an app's python whit that app is open.

    As for controlling Boxee, you could user the Player class for controlling playing media. And mc.ActivateWindow to navigate... kind of. But you would not be able to control the buttons/ui controls.

    Plus, it would be HELL to write.
    personal: boxee | twitter | boxee hq
    boxee: boxee chat | boxee wiki | boxee plugins

    i run boxee 0.9.20 on: ubuntu 9.10, windows xp sp3 (virtual machine), windows 7 and a neuros link hacked to all hell.

    what super powers does a 'super mod' have? the 'super ban'... that, and laser vision.

  5. #5
    Join Date
    Feb 2010
    Posts
    5

    Default

    hmm... back to my original idea then. I'll write the python script so it sits in the tasktray...
    No worries, that'll work as well!

    thanks for your time agentlame!

  6. #6

    Default

    you could try dropping it in one of the main xml files, just make sure it has some kind block to keep it running multiple times..
    The Boxee Repository - An All-In-One Solution for your 3rd party repositories.
    Like Fuzzthed.com on Facebook

Similar Threads

  1. Control Boxee using TCP Protocol? AV Home Theater
    By praxiscor1 in forum boxee remotes
    Replies: 3
    Last Post: January 29th, 2012, 06:13 PM
  2. Web Server HTTP API - More Control
    By trentmackness in forum feature requests
    Replies: 6
    Last Post: October 28th, 2011, 02:26 AM
  3. Boxee Box: Control remotely?
    By UTC-8 in forum general boxee help
    Replies: 6
    Last Post: December 5th, 2010, 06:00 PM
  4. What's the best way to remotely control Boxee?
    By NomadDNA in forum boxee for windows help
    Replies: 16
    Last Post: July 11th, 2009, 07:45 AM
  5. Remotely control Boxee w/o Apple remote or iPhone
    By maccamb in forum boxee for appletv help
    Replies: 0
    Last Post: June 24th, 2009, 07:49 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •