How to manage Twonky Server with URL RPC GET SET commands

General discussion about the media server. Feature requests. Hints, tips and tricks.
User avatar
phibertron
Posts: 1566
Joined: Sun Jan 30, 2011 5:52 pm
AV Hardware: Hardware
========
WHS - HP Ex495
PS3
XBOX 360
iTouch - Gen 2 and Gen 3
PSP - 3000

Encoders
========
Handbrake
x264
ffmpeg
mencoder

Tagging
======
mp3tag

How to manage Twonky Server with URL RPC GET SET commands

Postby phibertron » Fri Feb 25, 2011 12:19 am

I spent a bit of time searching throught the forums and wanted to stop having to search for things
I have already found, and wanted to put it all in one place, for my benefit, as well as others
So here is a list of things I have stumbled on that might help you to manage your server

This is a list of URL's that can be leveraged for direct access

Default
http ://<server_ip_address>:9000/

Menu Webbrowse
http ://<server_ip_address>:9000/setup

PC MediaBrowser
http ://<server_ip_address>:9000/webbrowse

Mobile MediaBrowser 240*320
http ://<server_ip_address>:9000/webbrowse-n95

Mobile MediaBrowser 320*240
http ://<server_ip_address>:9000/webbrowse-e61

TwonkyMedia Settings
http ://<server_ip_address>:9000/config

RSS
http ://<server_ip_address>:9000/rss
http ://<server_ip_address>:9000/rss/feed
http ://<server_ip_address>:9000/mediarss

PSP
http ://<server_ip_address>:9000/webbrowse-psp

Wii
http ://<server_ip_address>:9000/resources/wiiPlayer.html
http ://<server_ip_address>:9000/resources/wiiPlayer.swf

JSON
http ://<server_ip_address>:9000/json/feed


This is a list of RPC commands that can perform actions or return information
(note: be careful with the /rpc/stop as you have no way to start it remotely with twonky)

http ://<server_ip_address>:9000/rpc/rescan
http ://<server_ip_address>:9000/rpc/rebuild
http ://<server_ip_address>:9000/rpc/reset
http ://<server_ip_address>:9000/rpc/restart
http ://<server_ip_address>:9000/rpc/stop
http ://<server_ip_address>:9000/rpc/version
http ://<server_ip_address>:9000/rpc/stat
http ://<server_ip_address>:9000/rpc/statistics
http ://<server_ip_address>:9000/rpc/log_getfile
http ://<server_ip_address>:9000/rpc/log_clearfile
http ://<server_ip_address>:9000/rpc/memory
http ://<server_ip_address>:9000/rpc/info_status
http ://<server_ip_address>:9000/rpc/info_nics
http ://<server_ip_address>:9000/rpc/get_clients
http ://<server_ip_address>:9000/rpc/info_clients
http ://<server_ip_address>:9000/rpc/info_connected_clients
http ://<server_ip_address>:9000/rpc/stream_active
http ://<server_ip_address>:9000/rpc/stream_info
http ://<server_ip_address>:9000/rpc/resetclients
http ://<server_ip_address>:9000/rpc/mediafusion
http ://<server_ip_address>:9000/rpc/mediafusionproxy
http ://<server_ip_address>:9000/rpc/aggregation
http ://<server_ip_address>:9000/rpc/bad_files
http ://<server_ip_address>:9000/rpc/clear_cache
http ://<server_ip_address>:9000/rpc/get_webdav_link


This will get a list of all twonky server parameters
(Almost all of them are changeable, but not all for ex: version)

http ://<server_ip_address>:9000/rpc/get_all



This will let you see the value of a parameter
(for ex: http ://<server_ip_address>:9000/rpc/get_option?friendlyname)

http ://<server_ip_address>:9000/rpc/get_option?


This will let you change the value of a paramter
(for ex: http ://<server_ip_address>:9000/rpc/set_option?friendlyname=My Twonky Server)

http ://<server_ip_address>:9000/rpc/set_option?


This is the list returned from get_all I did on 6.0.31-RC6
(note: not all of these are changeable or viewable with get and set)

friendlyname=
ip=
nicrestart=
v=
platform=
httpport=
ininame=
inipath=
read_only=
ssdpttl=
appdata=
clearclientsonrestart=
disablelocalssdp=
enabletls=
nmcmode=
vlevel=
stack_size=
accessuser=
accesspwd=
autotree=
cachedir=
cachemaxsize=
cdkey=
clientautoenable=
codepage=
compilationsdir=
dbdir=
dyndns=
enableweb=
followlinks=
httpremoteport=
ignoredir=
ituneslib=
language=
scantime=
startupmb=
streambuffer=
uploadenabled=
servermanagedmusicdir=
servermanagedpicturedir=
servermanagedvideodir=
onlinedir=
webnodes=
webpicturenum=
mediastatisticsenabled=
mediastatisticsdir=
defaultview=
bgtrans=
rmdrives=
rmhomedrive=
rmautoshare=
maxitems=
suppressmenu=
aggregation=
aggmode=
secure_folder_path=
autoupdateinstall=
remoteaccess=
remoteaccessflash=
maxscantimeperfile=
dtcpsessionlimit=
dtcpsessioncount=
uploaddestinationfriendlyname=
uploadrestrictedprofiles=
disablefrontends=
upnpuploadlimit=
disablesleepmode=
uploadmaxfilesize=
httpsessionlimit=
clearcacheonrestart=
disablemediafusion=
scalermaxpixels=
hdrlnextreadyvalue=
telnetport=
telnetip=
version=
enable_reget=
event_poll_interval=
map_seekpct=
no_persist_conn=
revalidate_time=
msearch_start_interval=
msearch_interval=
msearch_quick=
dmr_state_poll_interval=

Now for the milltion dollar question
How do you disable RPC in Twonky Server?

To disable RPC, set enableweb= to 0 or 1
Be aware you will not be able to use web config from a client on the local lan in doing so

If you are using remote access, it would be advisable to use enableweb= set to 0 or 1
If not for the sake of just blocking attempts to log in, but to also stop wide open rpc access to twonky
Last edited by phibertron on Mon Mar 21, 2011 5:37 pm, edited 7 times in total.
viewtopic.php?f=2&t=10627
viewtopic.php?f=2&t=9353
viewtopic.php?f=2&t=9408
viewtopic.php?f=2&t=9416
viewtopic.php?f=2&t=9424
viewtopic.php?f=2&t=9364
viewtopic.php?f=2&t=9497

User avatar
phibertron
Posts: 1566
Joined: Sun Jan 30, 2011 5:52 pm
AV Hardware: Hardware
========
WHS - HP Ex495
PS3
XBOX 360
iTouch - Gen 2 and Gen 3
PSP - 3000

Encoders
========
Handbrake
x264
ffmpeg
mencoder

Tagging
======
mp3tag

Re: How to manage Twonky Server with URL RPC GET SET command

Postby phibertron » Fri Mar 04, 2011 9:44 pm

In the web gui I can see from the server status page, a section for "Active local streams:"
Getting this information with RPC eludes me at the moment

I tried things like:

rpc/info_active
rpc/info_local
rpc/info_active_local
rpc/info_active_streams
rpc/info_active_local_streams
rpc/info_connected_streams
rpc/info_connected_active

and so on, and so on...
but no luck

Anyone figured this one out yet?
viewtopic.php?f=2&t=10627
viewtopic.php?f=2&t=9353
viewtopic.php?f=2&t=9408
viewtopic.php?f=2&t=9416
viewtopic.php?f=2&t=9424
viewtopic.php?f=2&t=9364
viewtopic.php?f=2&t=9497

Georg
Posts: 105
Joined: Sat Feb 17, 2007 11:13 pm
AV Hardware: Server: Linkstation Pro (production) with Twonky 6.0.1 +
Linkstation Pro (developer) with Twonky 6.0.23
Clients:
Kathrein UFS 822 (pvr sat receiver, upnp-client?)
Philips TV PFL9604
WD TV Live
Roku Linkstation
Philips WLAN photo frame

Re: How to manage Twonky Server with URL RPC GET SET command

Postby Georg » Sat Mar 05, 2011 12:30 am

Nice work putting everything together. ;) The rpc call you're looking for is

rpc/stream_active

You might also want to try:

rpc/stream_info


Cheers,
Georg

User avatar
phibertron
Posts: 1566
Joined: Sun Jan 30, 2011 5:52 pm
AV Hardware: Hardware
========
WHS - HP Ex495
PS3
XBOX 360
iTouch - Gen 2 and Gen 3
PSP - 3000

Encoders
========
Handbrake
x264
ffmpeg
mencoder

Tagging
======
mp3tag

Re: How to manage Twonky Server with URL RPC GET SET command

Postby phibertron » Sat Mar 05, 2011 12:58 am

Nice!!!

Thanks for the kudo's and the info
i'll add it to the list now =)
viewtopic.php?f=2&t=10627
viewtopic.php?f=2&t=9353
viewtopic.php?f=2&t=9408
viewtopic.php?f=2&t=9416
viewtopic.php?f=2&t=9424
viewtopic.php?f=2&t=9364
viewtopic.php?f=2&t=9497

User avatar
phibertron
Posts: 1566
Joined: Sun Jan 30, 2011 5:52 pm
AV Hardware: Hardware
========
WHS - HP Ex495
PS3
XBOX 360
iTouch - Gen 2 and Gen 3
PSP - 3000

Encoders
========
Handbrake
x264
ffmpeg
mencoder

Tagging
======
mp3tag

Re: How to manage Twonky Server with URL RPC GET SET command

Postby phibertron » Sat Mar 05, 2011 6:53 pm

Found another one

This will clear the log file

/rpc/log_clearfile
viewtopic.php?f=2&t=10627
viewtopic.php?f=2&t=9353
viewtopic.php?f=2&t=9408
viewtopic.php?f=2&t=9416
viewtopic.php?f=2&t=9424
viewtopic.php?f=2&t=9364
viewtopic.php?f=2&t=9497

User avatar
phibertron
Posts: 1566
Joined: Sun Jan 30, 2011 5:52 pm
AV Hardware: Hardware
========
WHS - HP Ex495
PS3
XBOX 360
iTouch - Gen 2 and Gen 3
PSP - 3000

Encoders
========
Handbrake
x264
ffmpeg
mencoder

Tagging
======
mp3tag

Re: How to manage Twonky Server with URL RPC GET SET command

Postby phibertron » Mon Mar 21, 2011 5:39 pm

Added /rpc/get_clients to the list
The returned info is the same as /rpc/info_clients
viewtopic.php?f=2&t=10627
viewtopic.php?f=2&t=9353
viewtopic.php?f=2&t=9408
viewtopic.php?f=2&t=9416
viewtopic.php?f=2&t=9424
viewtopic.php?f=2&t=9364
viewtopic.php?f=2&t=9497

User avatar
phibertron
Posts: 1566
Joined: Sun Jan 30, 2011 5:52 pm
AV Hardware: Hardware
========
WHS - HP Ex495
PS3
XBOX 360
iTouch - Gen 2 and Gen 3
PSP - 3000

Encoders
========
Handbrake
x264
ffmpeg
mencoder

Tagging
======
mp3tag

Re: How to manage Twonky Server with URL RPC GET SET command

Postby phibertron » Mon Nov 21, 2011 4:30 pm

Added /rpc/clear_cache

From the release notes for twonky server 7
+ added a button and an rpc call to clear the disk cache, added disk cache usage info to status screen

The rpc action will display this return
"clear cache initiated! "
viewtopic.php?f=2&t=10627
viewtopic.php?f=2&t=9353
viewtopic.php?f=2&t=9408
viewtopic.php?f=2&t=9416
viewtopic.php?f=2&t=9424
viewtopic.php?f=2&t=9364
viewtopic.php?f=2&t=9497

User avatar
phibertron
Posts: 1566
Joined: Sun Jan 30, 2011 5:52 pm
AV Hardware: Hardware
========
WHS - HP Ex495
PS3
XBOX 360
iTouch - Gen 2 and Gen 3
PSP - 3000

Encoders
========
Handbrake
x264
ffmpeg
mencoder

Tagging
======
mp3tag

Re: How to manage Twonky Server with URL RPC GET SET command

Postby phibertron » Wed Sep 12, 2012 3:44 pm

Added /rpc/get_webdav_link

if twonkywebdav is running It will return the url and port number of the webdav server

http ://<server_ip_address>:9050


if twonkywebdav is not running It will return the following

NoWebdav
viewtopic.php?f=2&t=10627
viewtopic.php?f=2&t=9353
viewtopic.php?f=2&t=9408
viewtopic.php?f=2&t=9416
viewtopic.php?f=2&t=9424
viewtopic.php?f=2&t=9364
viewtopic.php?f=2&t=9497


Return to “TwonkyServer”

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 2 guests

cron