FAQ  •  Register  •  Login

Web UI in Ajax (Mobile & desktop edition)

<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Thu Jul 14, 2011 1:41 pm

Re: Web UI in Restful Ajax

Not in the current beta, keep checking this ticket: https://bitbucket.org/xnejp03/serviio/i ... on-support
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon Jul 18, 2011 10:33 pm

Re: Web UI in Restful Ajax

added JSON support to the latest 0.6 codabase so starting with the next beta it won't be necessary to path the server
<<

moltra

DLNA master

Posts: 1871

Joined: Thu Mar 24, 2011 11:00 pm

Location: Ohio USA

Post Wed Jul 20, 2011 10:52 pm

Re: Web UI in Restful Ajax

I tried it with Beta 0.6_2 and this is what I got. Ubuntu 10.04.

  Code:
./serviio-webui.bat: line 1: @echo: command not found
: command not found: line 2:
: No such file or directory: pushd: %BATCH_FILE%..
: command not found: line 6: popd
: command not found: line 7:
./serviio-webui.bat: line 8: SET: command not found
: command not found: line 9:
./serviio-webui.bat: line 11: unexpected EOF while looking for matching `''
./serviio-webui.bat: line 19: syntax error: unexpected end of file
Mark
Beta Tester Group
http://www.serviidb.com Online media resource repository

Netgear EVA2000 | Samsung BD-D5300 | XBOX 360 | Windows 7 | Mint Debian 12 | Raxz Maxx
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Wed Jul 20, 2011 10:53 pm

Re: Web UI in Restful Ajax

you are trying to run a MS-DOS .bat file on Linux? ;)
<<

moltra

DLNA master

Posts: 1871

Joined: Thu Mar 24, 2011 11:00 pm

Location: Ohio USA

Post Thu Jul 21, 2011 12:44 am

Re: Web UI in Restful Ajax

I was not sure if it was just for windows or not. You can run a bat file on linux. So how do you start it on linux?
Mark
Beta Tester Group
http://www.serviidb.com Online media resource repository

Netgear EVA2000 | Samsung BD-D5300 | XBOX 360 | Windows 7 | Mint Debian 12 | Raxz Maxx
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Thu Jul 21, 2011 8:44 am

Re: Web UI in Restful Ajax

talk to kairoh. As I said on the bitbucket ticket, it'd be best if a project page was created for this (e.g. on google code) so that people can contribute to it. I'm sure someone will come up with a sh script or other ways to run this UI.
<<

Cerberus

User avatar

DLNA master

Posts: 4114

Joined: Sun Jan 02, 2011 5:20 pm

Location: Reading, UK

Post Tue Jul 26, 2011 5:35 am

Re: Web UI in Restful Ajax

moltra wrote:Do we have to actually change the serviio files? or does it work with the current files.

ie Can I use it with the current beta?

One other comment if this is serviio revision specific, you might want to change the revision number to the same as the version of serviio it is designed to work with.


should work with the BETA2.
Phil Bennett
Beta Tester Group
Wiki | FAQ

Samsung LE40C750 LCD | Samsung BD-C5900 | Sony PS3 | Windows 7 |
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

PhoenixNZ

Serviio newbie

Posts: 5

Joined: Mon Jul 25, 2011 10:46 pm

Post Tue Jul 26, 2011 8:36 pm

Re: Web UI in Restful Ajax

Attachments

serviio-mediaserver-0.1.zip
Pached mediaserver v0.1
(162.94 KiB) Downloaded 44 times

serviio-webclient-0.1.jar.zip
Ajax console v0.1
(141.57 KiB) Downloaded 49 times



So for a non-beta version of Serviio, do I just drop these files into the /lib folder and all is well?? or do I need to build??

This is for running on a Head-less UnRaid box. Thanks. Rob
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Wed Jul 27, 2011 7:08 am

Re: Web UI in Restful Ajax

PhoenixNZ wrote:
Attachments

serviio-mediaserver-0.1.zip
Pached mediaserver v0.1
(162.94 KiB) Downloaded 44 times

serviio-webclient-0.1.jar.zip
Ajax console v0.1
(141.57 KiB) Downloaded 49 times



So for a non-beta version of Serviio, do I just drop these files into the /lib folder and all is well?? or do I need to build??

This is for running on a Head-less UnRaid box. Thanks. Rob


Also look at this: viewtopic.php?f=17&t=2427#p17199
Illico
Sony 2010 KDL-46EX501 | BDP-S373 | SMP-N100 | Windows 8-i7 | Network DD HD-CE1.5TLU2 | Livebox2-UHD86 | ServiiDroid | ServiiGo | BubbleUPnP
Serviio beta tester - Moderator
<<

kairoh

DLNA master

Posts: 180

Joined: Sun Aug 08, 2010 10:41 am

Location: France

Post Wed Jul 27, 2011 10:33 am

Re: Web UI in Restful Ajax

moltra wrote:I was not sure if it was just for windows or not. You can run a bat file on linux. So how do you start it on linux?

These bat files are specific to Windows.
I made some sh shell for linux version.
See the new wiki for more explanation.
Serviio WebUI console developer : New Homepage | Support | Project | Issues

Samsung UA32C6600 | WinXP / Ubuntu 11.10 | Samsung Galaxy S | Freebox v6
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

PhoenixNZ

Serviio newbie

Posts: 5

Joined: Mon Jul 25, 2011 10:46 pm

Post Wed Jul 27, 2011 11:00 pm

Re: Web UI in Restful Ajax

Please forgive me now :mrgreen: , I'm a complete moron and linux n00b :?: , and want to make sure I do this right. So this is going on a Slackware, UnRaid system.

So I extract all the files from the two zip's and get the following files:
    serviio-webclient-0.1.jar

    gson-1.7.1.jar
    org.restlet.ext.gson-2.1-M2.jar
    serviio-addons.gson.jar

and place them into
serviio/lib folder.

I add the serviio-webui.sh into serviio/bin as well as patch the serviio.sh file with your sample from your wiki.

Now do I just just start serviio.sh, or do I also need to start serviio-webui.sh

My path to the serviio files is: /boot/custom/serviio and i would start by ./bin/serviio.sh & or should i cd into /boot/custom/serviio/bin and start by serviio.sh &

Have I covered all my bases??? Am I stupid or what??? no need to answer that last one.

Anyway, thanks for wasting your time on me.
<<

kairoh

DLNA master

Posts: 180

Joined: Sun Aug 08, 2010 10:41 am

Location: France

Post Thu Jul 28, 2011 9:40 am

Re: Web UI in Restful Ajax

PhoenixNZ wrote:Now do I just just start serviio.sh, or do I also need to start serviio-webui.sh

You need to start them both in this order : serviio.sh then serviio-webui.sh.
PhoenixNZ wrote:My path to the serviio files is: /boot/custom/serviio and i would start by ./bin/serviio.sh & or should i cd into /boot/custom/serviio/bin and start by serviio.sh &

Because there are some relative path in the script, I think it is better to cd into your bin dir (/boot/custom/serviio/bin), then run the scripts (./serviio.sh& then ./serviio-webui.sh&) from here.
Be sure that you use "sh" shell and that scripts are executable.

No worries for your head : everybody was a n00b before! ;)
Serviio WebUI console developer : New Homepage | Support | Project | Issues

Samsung UA32C6600 | WinXP / Ubuntu 11.10 | Samsung Galaxy S | Freebox v6
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

PhoenixNZ

Serviio newbie

Posts: 5

Joined: Mon Jul 25, 2011 10:46 pm

Post Thu Jul 28, 2011 11:55 pm

Re: Web UI in Restful Ajax

OK, something going wrong. Serviio.sh is good but i get an error when I start serviio-webui.sh. See below:

  Code:
TowerTest login: root
Linux 2.6.37.6-unRAID.
root@TowerTest:~# cd /boot/custom/serviio/bin
.root@TowerTest:/boot/custom/serviio/bin# ls
Copy\ of\ serviio.sh.old*  serviio-webui.sh*   serviio.sh*
serviio-console.sh*        serviio-webui1.sh*  serviio.sh.old*
root@TowerTest:/boot/custom/serviio/bin# ./serviio.sh &
[1] 1708
root@TowerTest:/boot/custom/serviio/bin# ./serviio-webui.sh &
[2] 1760
root@TowerTest:/boot/custom/serviio/bin# Exception in thread "main" java.lang.NoClassDefFoundError: org/serviio/console/ServiioConsole
Caused by: java.lang.ClassNotFoundException: org.serviio.console.ServiioConsole
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Could not find the main class: org.serviio.console.ServiioConsole.  Program will exit.

[2]+  Exit 1                  ./serviio-webui.sh
root@TowerTest:/boot/custom/serviio/bin# ^C
root@TowerTest:/boot/custom/serviio/bin# ls -l
total 96
-rwxrwxrwx 1 root root 2430 2011-03-28 07:42 Copy\ of\ serviio.sh.old*
-rwxrwxrwx 1 root root 2365 2011-03-28 07:42 serviio-console.sh*
-rwxrwxrwx 1 root root 2223 2011-07-29 11:39 serviio-webui.sh*
-rwxrwxrwx 1 root root 2279 2011-07-29 11:34 serviio-webui1.sh*
-rwxrwxrwx 1 root root 2547 2011-07-28 10:42 serviio.sh*
-rwxrwxrwx 1 root root 2430 2011-03-28 07:42 serviio.sh.old*
root@TowerTest:/boot/custom/serviio/bin#


Any thoughts? Or am i missing AJAX?? This is a custom build for UnRaid. I'll look into that first.
<<

kairoh

DLNA master

Posts: 180

Joined: Sun Aug 08, 2010 10:41 am

Location: France

Post Fri Jul 29, 2011 7:41 am

Re: Web UI in Restful Ajax

PhoenixNZ wrote:OK, something going wrong. Serviio.sh is good but i get an error when I start serviio-webui.sh.

My mistake! I haven't tested the linux shell after copying the serviio console shell...
You just have to change the last line
  Code:
"$JAVA" $JAVA_OPTS -classpath "$SERVIIO_CONSOLE_CLASS_PATH" org.serviio.console.ServiioConsole "$@"

to
  Code:
"$JAVA" $JAVA_OPTS -classpath "$SERVIIO_CONSOLE_CLASS_PATH" org.serviio.restui.RestletProxy "$@"
Serviio WebUI console developer : New Homepage | Support | Project | Issues

Samsung UA32C6600 | WinXP / Ubuntu 11.10 | Samsung Galaxy S | Freebox v6
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

PhoenixNZ

Serviio newbie

Posts: 5

Joined: Mon Jul 25, 2011 10:46 pm

Post Fri Jul 29, 2011 8:17 am

Re: Web UI in Restful Ajax

er, nope. still something I'm doin wrong.

Edited serviio-webui.sh and complete sh is as follows:
  Code:
#!/bin/sh
### ====================================================================== ###
##                                                                          ##
##  Serviio WebUI Console ript                                              ##
##                                                                          ##
### ====================================================================== ###
DIRNAME=`dirname $0`
PROGNAME=`basename $0`

# OS specific support (must be 'true' or 'false').
cygwin=false; darwin=false; linux=false;
case "`uname`" in
    CYGWIN*) cygwin=true ;;
    Darwin*) darwin=true ;;       
    Linux)   linux=true ;;
esac

# For Cygwin, ensure paths are in UNIX format before anything is touched
if $cygwin ; then
    [ -n "$SERVIIO_CONSOLE_HOME" ] &&
        SERVIIO_CONSOLE_HOME=`cygpath --unix "$SERVIIO_CONSOLE_HOME"`
    [ -n "$JAVA_HOME" ] &&
        JAVA_HOME=`cygpath --unix "$JAVA_HOME"`   
fi

# Setup SERVIIO_CONSOLE_HOME
if [ "x$SERVIIO_CONSOLE_HOME" = "x" ]; then
    # get the full path (without any relative bits)
    SERVIIO_CONSOLE_HOME=`cd $DIRNAME/..; pwd`
fi
export SERVIIO_CONSOLE_HOME

# Setup the JVM
if [ "x$JAVA" = "x" ]; then
    if [ "x$JAVA_HOME" != "x" ]; then
   JAVA="$JAVA_HOME/bin/java"
    else
   JAVA="java"
    fi
fi

# Setup the classpath
SERVIIO_CONSOLE_CLASS_PATH="$SERVIIO_CONSOLE_HOME/lib/serviio-webclient-0.1.jar:$SERVIIO_CONSOLE_HOME/lib/log4j.jar:$SERVIIO_CONSOLE_HOME/lib/slf4j-api.jar:$SERVIIO_CONSOLE_HOME/lib/slf4j-log4j12.jar:$SERVIIO_CONSOLE_HOME/lib/jul-to-slf4j.jar:$SERVIIO_CONSOLE_HOME/lib/org.restlet.jar:$SERVIIO_CONSOLE_HOME/lib/freemarker.jar:$SERVIIO_CONSOLE_HOME/config"

# Setup Serviio specific properties
JAVA_OPTS="-Dserviio.home=$SERVIIO_CONSOLE_HOME -Djava.net.preferIPv4Stack=true"

# For Cygwin, switch paths to Windows format before running java
if $cygwin; then
    SERVIIO_CONSOLE_HOME=`cygpath --path --windows "$SERVIIO_CONSOLE_HOME"`
    JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
    SERVIIO_CONSOLE_CLASS_PATH=`cygpath --path --windows "$SERVIIO_CONSOLE_CLASS_PATH"`
fi

# Execute the JVM in the foreground
"$JAVA" $JAVA_OPTS -classpath "$SERVIIO_CONSOLE_CLASS_PATH" org.serviio.restui.RestletProxy "$@"


Getting this error message now. Not sure if same as my previous post
  Code:
root@TowerTest:/boot/custom/serviio# ./bin/serviio-webui.sh &
[3] 1966
[2]   Exit 1                  ./bin/serviio-webui.sh
root@TowerTest:/boot/custom/serviio# Exception in thread "main" java.lang.NoClassDefFoundError: org/serviio/restui/RestletProxy
Caused by: java.lang.ClassNotFoundException: org.serviio.restui.RestletProxy
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Could not find the main class: org.serviio.restui.RestletProxy.  Program will exit.

[3]+  Exit 1                  ./bin/serviio-webui.sh
root@TowerTest:/boot/custom/serviio#


Your thoughts may lighten my day. lol :)
<<

kairoh

DLNA master

Posts: 180

Joined: Sun Aug 08, 2010 10:41 am

Location: France

Post Fri Jul 29, 2011 8:34 am

Re: Web UI in Restful Ajax

PhoenixNZ wrote:root@TowerTest:/boot/custom/serviio# ./bin/serviio-webui.sh &

Try to cd to your $SERVIIO_CONSOLE_HOME/bin/ before running ./serviio-webui.sh&
Serviio WebUI console developer : New Homepage | Support | Project | Issues

Samsung UA32C6600 | WinXP / Ubuntu 11.10 | Samsung Galaxy S | Freebox v6
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

PhoenixNZ

Serviio newbie

Posts: 5

Joined: Mon Jul 25, 2011 10:46 pm

Post Sun Jul 31, 2011 11:13 pm

Re: Web UI in Restful Ajax

Haven't had a chance to check into this further, as too busy fixing friends computers. (Why do they break them just before the weekend!!!).

Will look into getting this going later this week.
<<

williMeier

Serviio newbie

Posts: 16

Joined: Sun Jul 31, 2011 9:33 pm

Post Mon Aug 01, 2011 9:39 am

Re: Web UI in Restful Ajax

great tool, tankyou!
it seems to be running but the webUI contains no data, see attached screen shot.
what i'm missing?
Attachments
serviio.jpg
serviio.jpg (133.3 KiB) Viewed 32929 times
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Mon Aug 01, 2011 12:00 pm

Re: Web UI in Restful Ajax

williMeier wrote:great tool, tankyou!
it seems to be running but the webUI contains no data, see attached screen shot.
what i'm missing?

+1 Same problem for me on Firefox or IE
Illico
Sony 2010 KDL-46EX501 | BDP-S373 | SMP-N100 | Windows 8-i7 | Network DD HD-CE1.5TLU2 | Livebox2-UHD86 | ServiiDroid | ServiiGo | BubbleUPnP
Serviio beta tester - Moderator
<<

Elfish

Streaming enthusiast

Posts: 23

Joined: Tue Aug 02, 2011 6:58 am

Post Tue Aug 02, 2011 7:22 pm

Re: Web UI in Restful Ajax

i get that when i tried to browse with lynx to http://127.0.0.1:8123/serviio/console

  Code:
HTTP request sent; waiting for response.02-Aug-2011 21:21:02 org.restlet.engine.log.LogFilter afterHandle
                                                                                                         INFO: 2011-08-02       21:21:02        127.0.0.1   -localhost       8123    GET     /serviio/console        -       200     -       0       187     http://127.0.0.1:8123   Lynx/2.8.8dev.9 libwww-FM/2.14 SSL-MM/1.4.1 GNUTLS/2.10.5    -
HTTP/1.0 200 OK


anyone knows what i'm doing wrong?
i put all the files in /lib and changed the launchers aswell

i'm running debian headless
Next

Return to Third-party tools integration

Who is online

Users browsing this forum: No registered users and 5 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.