Replacement / Equivalent of twonkymedia command for v7.x

General discussion about the media server. Feature requests. Hints, tips and tricks.
Post Reply
archie1810
Posts: 14
Joined: Thu Dec 31, 2009 4:31 am
AV Hardware: PlayOnHD

Replacement / Equivalent of twonkymedia command for v7.x

Post by archie1810 » Wed Aug 29, 2012 8:40 am

Hello,

What is the equivalent command replacement of twonkymedia command for Twonky 7.x please?
I would like to do some changes in twonkyserver-default.ini parameters entries by using the command line.

This below is for Twonky server before v7.x version:
/mnt/array1/share/twonky/twonkymedia -enableweb 2 -httpremoteport 9100 -dyndns http://yourwanipaddress:9100 &

Thanks for any advice.

Best Regards, Arc.

ColinTaylor
Posts: 9
Joined: Thu Jun 21, 2012 1:09 am
AV Hardware: Buffalo LS-XL

Re: Replacement / Equivalent of twonkymedia command for v7.x

Post by ColinTaylor » Wed Aug 29, 2012 10:13 pm

I don't know whether this will help you:

# ./twonkyserver -?
Twonky Version 7.0.9

usage: ./twonkyserver

all params from the .ini file can be used as an option, preceded by a -
e.g. ./twonkyserver -v 255
-inifile path and filename of ini file
-inipath path to ini file
-ininame filename of ini file

For image conversion and scaling the TwonkyServer utilizes ImageMagick. For details on the license please see ./cgi-bin/convert-readme.txt

^C


So look in twonky/twonkydb/twonkyserver.ini or whatever the equivalent is on your system.

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: Replacement / Equivalent of twonkymedia command for v7.x

Post by phibertron » Wed Aug 29, 2012 10:43 pm

Prior to 6.x

twonkymediaserverwatchdog launched twonkymediaserver

Prior to 7.x

twonkymedia launches twonkymediaserver

in 7.x twonkymediaserverwatchdog or twonkymedia is now twonkystarter
all the rules of how to apply switches still work

twonkystarter launches twonkyserver

just about all of the settings in the twonkyserver.ini can be used as startup switches

For example, this would start it with port 9000
which would overide what was in the twonkyserver.ini

./twonkystarter -httpport 9000

Note:
Remote access in 7.x does not work as far as I have tried
But it is possible to make it work they way it should
I put up a post on how to do that if your interested

Custom Web Interface Relative Links
http://www.twonkyforum.com/viewtopic.ph ... 627#p40577
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

archie1810
Posts: 14
Joined: Thu Dec 31, 2009 4:31 am
AV Hardware: PlayOnHD

Re: Replacement / Equivalent of twonkymedia command for v7.x

Post by archie1810 » Wed Aug 29, 2012 11:39 pm

Thanks Colin and Phibertron... I will have a look at the advices and try to apply.
I've never thought that the twonkyserver-default.ini is not the ini file anymore to modify.
Thanks again.
:)

archie1810
Posts: 14
Joined: Thu Dec 31, 2009 4:31 am
AV Hardware: PlayOnHD

Re: Replacement / Equivalent of twonkymedia command for v7.x

Post by archie1810 » Thu Aug 30, 2012 12:21 pm

Problem... I tried as advised. And I got this error:
sh: twonkystarter: command not found

I ran it from inside twonky folder after cd /mnt/HD/HD_a2/ffp/opt/twonky
My NAS is Dlink DNS-320 model.

May i ask what's the problem, please?
Thanks again.

BR, Arc.
:)

ColinTaylor
Posts: 9
Joined: Thu Jun 21, 2012 1:09 am
AV Hardware: Buffalo LS-XL

Re: Replacement / Equivalent of twonkymedia command for v7.x

Post by ColinTaylor » Thu Aug 30, 2012 2:46 pm

It looks like your twonky folder is not in your PATH. This is normal. You need to put the "./" at the beginning.

Try:

cd /mnt/HD/HD_a2/ffp/opt/twonky
./twonkystarter -enableweb 2 -httpremoteport 9100

or

/mnt/HD/HD_a2/ffp/opt/twonky/twonkystarter -enableweb 2 -httpremoteport 9100

ColinTaylor
Posts: 9
Joined: Thu Jun 21, 2012 1:09 am
AV Hardware: Buffalo LS-XL

Re: Replacement / Equivalent of twonkymedia command for v7.x

Post by ColinTaylor » Thu Aug 30, 2012 2:53 pm

archie1810 wrote:I've never thought that the twonkyserver-default.ini is not the ini file anymore to modify.
twonkyserver-default.ini is used to create twonkyserver.ini if it doesn't exist (usually the first time twonky is started). After that it isn't looked at again.

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: Replacement / Equivalent of twonkymedia command for v7.x

Post by phibertron » Thu Aug 30, 2012 4:01 pm

ColinTaylor wrote: twonkyserver-default.ini is used to create twonkyserver.ini if it doesn't exist (usually the first time twonky is started).
After that it isn't looked at again.
I would add, that it is also used if one does a twonky reset, same result as above
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

archie1810
Posts: 14
Joined: Thu Dec 31, 2009 4:31 am
AV Hardware: PlayOnHD

Re: Replacement / Equivalent of twonkymedia command for v7.x

Post by archie1810 » Fri Aug 31, 2012 3:42 pm

Nope - still failed :) :)
Here is what I have...

sh-4.1# ./twonkystarter -remotehttpport 9003
Twonky Version 7.0.9
22:39:31:847 [Startup] - LOG_SYSTEM: upnp_ini_file_init_DATA_Dir : AppData
e accessed or not writable.
22:39:31:847 [Startup] - LOG_SYSTEM: Error: 2 No such file or directory

--- keep repeating the above again and again --- so I stop the telnet session.
I think I will drop the 7.0.9 - and change to 6.0.34 and will test again.
Thanks.
:)

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: Replacement / Equivalent of twonkymedia command for v7.x

Post by phibertron » Fri Aug 31, 2012 5:31 pm

1.
Does /var/twonky exist, it looks like it doesnt?
LOG_SYSTEM: upnp_ini_file_init_DATA_Dir : AppData e accessed or not writable.
2.
the correct swtich to use is httpremoteport
but there is not point, as remote access doesnt work as expected in 6.x or 7.x

If you want to have remote access work as intended, without having to use any ini changes
have a look at this post, Custom Web Interface Relative Links
http://www.twonkyforum.com/viewtopic.ph ... 627#p40577

3.
use the twonkyserver.ini as a reference as to what switches would be valid to use to start the server
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

Post Reply