Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


  • 0

XBMC - as media center


Question

Posted

I thought that it would be nice to share and add and communicate around the XBMC possibilities with HC2.

There is new XBMC Frodo launched and I found some of the commands to send via HC2.

Note - You should change TCP port under virtual device from 8080 to 9090

These are commands that works for me (with beta currently):

Quit jsonrpc?{"jsonrpc":"2.0","method":"Application.Quit","id":1}

Home jsonrpc?{"jsonrpc":"2.0","method":"Input.Home","id":1}

Update Vid jsonrpc?{"jsonrpc":"2.0","method":"VideoLibrary.Scan","id":1}

Clean Vid jsonrpc?{"jsonrpc":"2.0","method":"VideoLibrary.Clean","id":1}

Hibernate jsonrpc?{"jsonrpc":"2.0","method":"System.Hibernate","id":1}

Reboot jsonrpc?{"jsonrpc":"2.0","method":"System.Reboot","id":1}

30Sec Forward jsonrpc?{"jsonrpc":"2.0","id":1,"method":"Player.Seek","params":{"playerid":1,"value":"smallforward"}}

30Sec Back jsonrpc?{"jsonrpc":"2.0","id":1,"method":"Player.Seek","params":{"playerid":1,"value":"smallbackward"}}

10Min Forward jsonrpc?{"jsonrpc":"2.0","id":1,"method":"Player.Seek","params":{"playerid":1,"value":"bigforward"}}

10Min Back jsonrpc?{"jsonrpc":"2.0","id":1,"method":"Player.Seek","params":{"playerid":1,"value":"bigbackward"}}

Play/Pause jsonrpc?{"jsonrpc":"2.0","id":1,"method":"Player.PlayPause","params":{"playerid":1}}

Stop jsonrpc?{"jsonrpc":"2.0","id":1,"method":"Player.Stop","params":{"playerid":1}}

FF jsonrpc?{"jsonrpc":"2.0","id":1,"method":"Player.SetSpeed","params":{"playerid":1,"speed":"increment"}}

Rew jsonrpc?{"jsonrpc":"2.0","id":1,"method":"Player.SetSpeed","params":{"playerid":1,"speed":"decrement"}}

Enter jsonrpc?{"jsonrpc":"2.0","method":"Input.Select","id":1}

Up jsonrpc?{"jsonrpc":"2.0","method":"Input.Up","id":1}

Down jsonrpc?{"jsonrpc":"2.0","method":"Input.Down","id":1}

Left jsonrpc?{"jsonrpc":"2.0","method":"Input.Left","id":1}

Right jsonrpc?{"jsonrpc":"2.0","method":"Input.Right","id":1}

Back jsonrpc?{"jsonrpc":"2.0","method":"Input.Back","id":1}

Subtitle Off jsonrpc?{"jsonrpc":"2.0","id":1,"method":"Player.SetSubtitle","params":{"playerid":1,"subtitle":"off"}}

Subtitle On jsonrpc?{"jsonrpc":"2.0","id":1,"method":"Player.SetSubtitle","params":{"playerid":1,"subtitle":"on"}}

Select jsonrpc?{"jsonrpc":"2.0","method":"Input.Select","id":1}

Suspend jsonrpc?{"jsonrpc":"2.0","method":"System.Suspend","id":1}

Menu jsonrpc?{"jsonrpc":"2.0","method":"Input.ContextMenu","id":1}

Info jsonrpc?{"jsonrpc":"2.0","method":"Input.Info","id":1}

Show OSD jsonrpc?{"jsonrpc":"2.0","method":"Input.ShowOSD","id":1}

If someone has skills to create such scenes/buttons - play certain playlist(music) or start playing internet radio It would be great!

I'd like to make an wake up scene where light goes on smoothly(sunrise scene) and music starts playing quietly and increases it's volume step by step.

Lauri

Recommended Posts

  • 0
  • Inquirer
  • Posted

    What is the XBMC port marked?

    • 0
    Posted

    Does somebody try to make a plugin for xbmc to have the state or to send request on the HC2???

    It can be good if fibaro work on that to make xbmc as default mediacenter.

    • 0
    Guest deraaij
    Posted
    Does somebody try to make a plugin for xbmc to have the state or to send request on the HC2???

    It can be good if fibaro work on that to make xbmc as default mediacenter.

    I made an xbmc plugin which updates a var (using a virtual button):

    Please login or register to see this code.

    • 0
    Posted

    I would like to send a message with lua on the xbmc.

    Does somebody know what is the code in lua to put in the scene to send the json request on xbmc?

    • 0
    Posted

    XBMC JSON not working with virtual device anymore....

    Please login or register to see this code.

    Do you see anything wrong with this?

    Please login or register to see this attachment.

    • 0
    Guest deraaij
    Posted

    Sorry wrong answer, I use tcp instead of http (port 9090)

    • 0
    Posted

    Hm, i did test that but it did not work...

    Please login or register to see this image.

    /emoticons/default_icon_eek.gif" alt=":shock:" />

    Works now..must have been something else....

    Please login or register to see this image.

    /emoticons/default_icon_biggrin.gif" alt=":-D" />

    • 0
    Posted

    For me is working perfectly.

    • 0
    Posted

    Hi all,

    do you know how to use a slider to set volume with json?

    jsonrpc?request= {"jsonrpc": "2.0", "method": "Application.SetVolume", "params": {"volume": variable_volume?}, "id": 1}}

    need to do it in lua?

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Answer this question...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.

    ×
    ×
    • Create New...