XBMC: sending a JSON command via http

2012 · 1 reply · Configuration

This discussion is 14 years old. It predates today's Roomie Remote X, and the app names, menus, features, pricing, and device details below have changed substantially since 2012. Treat it as historical reference — see Support and current compatibility for how things work today.

In short

Hello, I'd like to send my XBMC to Standby using the System.Suspend command which is defined within the JSON API. — Staff replied: “The "ip-http" example in the DDK provides an example of how that should look. You would definitely not want to include http:// or your username/password or the IP address. Again, look at the sample.”

Question 2012-09 · older version

Hello,

I'd like to send my XBMC to Standby using the System.Suspend command which is defined within the JSON API. Unfortunately this command is missing in the XBMC command set which is provided with Roomie, because it uses the Web Server API.

I tried it with his string:

string

POST user:pass@10.0.0.111/jsonrpc

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

/string

Can you tell me what I'm doing wrong? If I send this command to the xbmc using a REST client it works...

Roomie Staff 2012-09 · older version

The "ip-http" example in the DDK provides an example of how that should look.

You would definitely not want to include http:// or your username/password or the IP address. Again, look at the sample. Or just contact support where the forum's formatting wont mess up the string and we can just rewrite it for you directly.

Related threads

Today's Roomie controls 400,000+ devices.

Roomie Remote X brings TVs, receivers, streamers, lights, and whole-home audio into one app on iPhone, iPad, Mac, and Apple TV.

Download Roomie Remote X