How to manage media reciever clients with rpc commands
Posted: Fri Sep 28, 2012 12:13 am
I recently discoverd that it is no longer possible to manually add clients from the gui in twonky server 7, which I noted in the following post
http://community.twonky.com/twonky/topi ... y_server_7
While this is not going to be needed by many, but for those that it is,
this is what I know about managing clients with rpc calls
The following command will enable auto enable of newly detected clients
The following command will disable auto enable of newly detected clients
The following command will return a list of connnected clients
as seen under the media recievers section of the gui
Note:
The data returned will allow you to glean the mac address of a client for other commands
The following command will reset the list of connnected clients
as seen under the media recievers section of the gui
any available clients would then be redetected
The following command will set a client to enabled
the same as checking enabled under the media recievers section of the gui
The following command will set a client to disabled
the same as unchecking enabled under the media recievers section of the gui
The following command delete a client from the clients list
there is no other way to do this that I know of in the gui
short of editing the clients.db by hand
The following command add a client
which we were able to in the gui prior to version 7.x
Note:
There are 4 part to the /rpc/client_add command, all are needed
the /rpc/client_add can used to modify an existing clients client profile (id=)
the /rpc/client_add can used to modify an existing clients client view (view=)
The following command can be used to determine what id=
is associated with what client profile for use with the client_add command
each client profile has a number preceeeding it that is its id
The following command can used to determine what views are available
They are the same choices available for the navigation tree
which can then be used with the /rpc/client_add command
http://community.twonky.com/twonky/topi ... y_server_7
While this is not going to be needed by many, but for those that it is,
this is what I know about managing clients with rpc calls
The following command will enable auto enable of newly detected clients
Code: Select all
http://twonky:9000/rpc/set_option?clientautoenable=1
The following command will disable auto enable of newly detected clients
Code: Select all
http://twonky:9000/rpc/set_option?clientautoenable=0
The following command will return a list of connnected clients
as seen under the media recievers section of the gui
Note:
The data returned will allow you to glean the mac address of a client for other commands
Code: Select all
http://twonky:9000/rpc/info_connected_clients
The following command will reset the list of connnected clients
as seen under the media recievers section of the gui
any available clients would then be redetected
Code: Select all
http://twonky:9000/rpc/resetclients
The following command will set a client to enabled
the same as checking enabled under the media recievers section of the gui
Code: Select all
http://twonky:9000/rpc/client_enable?mac=AA:BB:CC:DD:EE:FF
The following command will set a client to disabled
the same as unchecking enabled under the media recievers section of the gui
Code: Select all
http://twonky:9000/rpc/client_disable?mac=AA:BB:CC:DD:EE:FF
The following command delete a client from the clients list
there is no other way to do this that I know of in the gui
short of editing the clients.db by hand
Code: Select all
http://twonky:9000/rpc/client_delete?mac=AA:BB:CC:DD:EE:FF
The following command add a client
which we were able to in the gui prior to version 7.x
Code: Select all
http://twonky:9000/rpc/client_add?mac=AA:BB:CC:DD:EE:FF?id=172?enabled=1?view=advanceddefault
Note:
There are 4 part to the /rpc/client_add command, all are needed
the /rpc/client_add can used to modify an existing clients client profile (id=)
the /rpc/client_add can used to modify an existing clients client view (view=)
The following command can be used to determine what id=
is associated with what client profile for use with the client_add command
each client profile has a number preceeeding it that is its id
Code: Select all
http://twonky:9000/rpc/get_clients
The following command can used to determine what views are available
They are the same choices available for the navigation tree
which can then be used with the /rpc/client_add command
Code: Select all
http://twonky:9000/rpc/view_names