Page 5 of 13

Re: Web UI in Restful Ajax

PostPosted: Fri Nov 04, 2011 9:54 pm
by kairoh
qoolbox wrote:[1]interface doesnt refresh, i have to refresh my browser to view the change
[2]in media library : add local (by browsing NAS content) add the path of where serviio is installed + the local path
[3]files and folder with "éà..." UTF-8 are not display neither indexed...

Have any idea to fix this problems ?

Hello!

I've made a new version (0.6-d) that fix your problems [2] and [3].

0.6-d
=====

- [linux] fixed path addition missing the starting "/".
- added java i18n bundles support in javascript.
- added i18n for HTML5 ("lang" attribute in body).
- fixed UTF-8 for files and folders navigation.
- fixed alignment of "IP address", "folderPath", "contentUrl" and "presentation titles".

Still available here.

Could you explain what is problem [1] ? Which element doesn't refresh?

Re: Web UI in Restful Ajax

PostPosted: Fri Nov 04, 2011 11:49 pm
by qoolbox
thanks kairoh,

i will update the Thecus Module when i will have free time...

just the browser need to be refreshed to see the change done once i save the configuration in page... i have to push F5 each times.. (tsted on several Browser)

I dont use the Wrapper, but launch first servioo.sh and after webui.sh, otherwise i cant stop and start the deamon from WebUI, but in wrapper mode the refresh works...

thanks for the great work...

Re: Web UI in Restful Ajax

PostPosted: Sat Nov 05, 2011 9:09 am
by qoolbox
Hello, just updated this morning the Thecus module i made...

All running fine at this time, all bug fixes, the refresh problem too :mrgreen:

Just problem, i saw :

When turning in french language the "é,è,à,î" are displayed with a "??"

example : "Bibliothèque" is display "Biblioth??que" or "Périphérique connecté" is display "p??riph??rique connect??"

Other little problem making hang the Web interface when i create several locale folder in library, that make a kind of timed out, and make a message that server is not running, i refresh and all is ok, my directory appear after 1 minutes of Wait...

This is may be due to the Thecus NAS... dont know really if other users experience this kind of problem...

I will post the update of the Serviio Module in Thecus Forum, and view the users feedback...

Thanks a lot...

Re: Web UI in Restful Ajax

PostPosted: Sat Nov 05, 2011 3:06 pm
by Cerberus
qoolbox wrote:Just problem, i saw :

When turning in french language the "é,è,à,î" are displayed with a "??"

example : "Bibliothèque" is display "Biblioth??que" or "Périphérique connecté" is display "p??riph??rique connect??"


local setting is more than likely wrong it need to be set to " UTF8 " to solve this issue :)

Re: Web UI in Restful Ajax

PostPosted: Sun Nov 06, 2011 10:39 am
by kairoh
Cerberus wrote:local setting is more than likely wrong it need to be set to " UTF8 " to solve this issue :)

+1 see more on FAQ.

Re: Web UI in Restful Ajax

PostPosted: Mon Nov 07, 2011 10:36 pm
by kairoh
Hi!

Just fixed some minor bugs with navigation.

0.6-e
=====

- [windows] fixed error when adding a root dir.
- [linux] fixed navigation with ".." link.

Still available here.

Re: Web UI in Restful Ajax

PostPosted: Tue Nov 08, 2011 9:15 am
by Illico
Thanks, very simple installation, and its works!

Re: Web UI in Restful Ajax

PostPosted: Tue Nov 08, 2011 6:42 pm
by qoolbox
Cerberus wrote:
local setting is more than likely wrong it need to be set to " UTF8 " to solve this issue :)


I read the FAQ...

I am completly lost :?

Thecus is different than Synology, wish a sexiest solution can exist... this the first module making me this behavior....

Why this is not fixed directly in Serviio core ? :cry:

Re: Web UI in Restful Ajax

PostPosted: Tue Nov 08, 2011 8:28 pm
by zip
is it not just browser setting?

Re: Web UI in Restful Ajax

PostPosted: Thu Nov 10, 2011 11:59 am
by qoolbox
No it is not...

Generally NAS appliance has limited local language setting to Eng-US, you need to change localdef in here to adjust it to en-US-UTF8... if i well understood

I tried some trick but it doesnt work, i actually pick up the right binaries from the Thecus Toolchain to test... but i dont like this way to do it :(

Re: Web UI in Restful Ajax

PostPosted: Thu Nov 10, 2011 1:53 pm
by zip
the text files with all the messages are stored in UTF-8 (at least in the original Serviio bundle, I assume kairoh only copied them), not much more we can do.

Re: Web UI in Restful Ajax

PostPosted: Thu Nov 10, 2011 5:28 pm
by kairoh
zip wrote:the text files with all the messages are stored in UTF-8 (at least in the original Serviio bundle, I assume kairoh only copied them), not much more we can do.

Yep, bundles are in UTF-8.
The WebUI serves them as UTF-8 files.

Re: Web UI in Restful Ajax

PostPosted: Mon Dec 05, 2011 6:46 pm
by Swehawk
Running Serviio 0.6.0.1 on win7. Serviio service is running. Unzipped webui 0.6-e to C:\program files\serviio\. When I try to run C:\program files\serviio\bin\serviio-webui.bat I get an error msg: "Java Virtual machine Launcher - Could not find the main class: Files\Serviio\Config;C:\Program. Program will exit".

Any idea what's causing this?

Re: Web UI in Restful Ajax

PostPosted: Tue Dec 06, 2011 9:57 pm
by kairoh
Here are 2 possible fixes:

1) Remove space in your Serviio path (for example, reinstall/move to C:\serviio\).

2) Fix the bat (by removing quote) :
  Code:
%START_COMMAND% %JAVA_OPTS% -classpath "%CLASSPATH%" org.serviio.restui.RestletProxy %*
to
  Code:
%START_COMMAND% %JAVA_OPTS% -classpath %CLASSPATH% org.serviio.restui.RestletProxy %*

PS: I will include the last fix in the next release.

Re: Web UI in Restful Ajax

PostPosted: Wed Dec 07, 2011 4:57 am
by goodthanks15
Hi,

Just wanted to confirm that removing the quotes worked for me. In case anyone else comes across this thread looking for solutions like I was.

Using windows 7 64bit. When I ran the serviio-webui.bat file I didnt get an error or any indication that something happened. Ran it from a command prompt and nothing was displayed there either.

After removing the quotes I got the windows firewall popup asking if wanted to allow it etc.. and then I could access the webui in my browser.

Thanks.

Re: Web UI in Restful Ajax

PostPosted: Wed Dec 07, 2011 5:45 pm
by Swehawk
Goodthanks15 beat me to it ;) Removing the quotes worked for me also! Now the webui works like a charm. Connects really quick, which is a good thing since the remote Serviio console took forever to connect!

Good work kairoh! People like you and Zip are our everyday heroes, making digital living so much more enjoyable!

I have another question: How do I make serviio-webui.bat autorun on startup after the serviio service has started? I run serviio on a headless win7 machine. The only solution I can think of is through the task scheduler, but how do I know that seviio service is started?
-I'll anwser that myself 8-) Task scheduler (run on system startup) works just fine. Seems the services are started before the sheduled tasks are run!

Re: Web UI in Restful Ajax

PostPosted: Thu Dec 08, 2011 1:10 pm
by kairoh
8-)

Re: Web UI in Restful Ajax

PostPosted: Mon Dec 12, 2011 9:55 am
by qoolbox
Hello Kairoh

since i updated the Thecus Module, with your version 0.6-e, using Wrapper, interface tell me (in red on top of web page):

  Code:
Cannot connect to Serviio server, it does not seem to be running. Exiting...
Rest error to "cpu-cores" : (0)
Rest error to "browsingCategoriesLanguages" : (0)
Rest error to "metadataLanguages" : (0)
Rest error to "profiles" : (0)
Rest error to "descriptiveMetadataExtractors" : (0)
Rest error to "categoryVisibilityTypes" : (0)
Rest error to "onlineRepositoryTypes" : (0)
Rest error to "status" : (0)
Rest error to "onlineContentQualities" : (0)
Rest error to "application" : (0)


using : serviio.sh + webui.sh

i got on top of webpage in red,

  Code:
Error 500 server not started



I just replaced old .jar in plugins menu by the newer ... any idea ???

here is my launch script :

  Code:
#!/bin/sh
### ======================================================================
##
##  Serviio WebUI start Script.
##
### ======================================================================

PATH=/raid/data/module/serviio/sys/bin/:$PATH
export PATH

LD_LIBRARY_PATH=/raid/data/module/serviio/sys/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH

SERVIIO_HOME=/raid/data/module/serviio/sys/bin

JAVA_HOME=/raid/data/module/OracleJRE6/system/jre
JAVA="$JAVA_HOME/bin/java"
NOHUP=/raid/data/module/serviio/sys/bin/nohup

# Setup the classpath
SERVIIO_CLASSPATH="$SERVIIO_HOME/config"

LIB=${SERVIIO_HOME}/plugins
for jar in `ls -1 ${LIB}/*.jar`; do SERVIIO_CLASSPATH="${SERVIIO_CLASSPATH}:${jar}"; done
LIB=${SERVIIO_HOME}/lib
for jar in `ls -1 ${LIB}/*.jar`; do SERVIIO_CLASSPATH="${SERVIIO_CLASSPATH}:${jar}"; done


# Execute the JVM in the foreground
JAVA_OPTS="-Djava.net.preferIPv4Stack=true -Djava.awt.headless=true -Dserviio.home=$SERVIIO_HOME -Dderby.system.home=$SERVIIO_HOME/library"

cd /raid/data/module/serviio/sys/bin/bin


# $NOHUP

$JAVA -Xmx384M "$JAVA_OPTS" -classpath "$SERVIIO_CLASSPATH" org.serviio.restui.ServiioWrapper "$@" </dev/null >/dev/null 2>&1 &


NoHup function is invoked on the module.rc to launch this script...


it worked fine on your previous version, no it is buggy not recongnizing Serviio running

thanks for your help,

best regards,

Stephane

Re: Web UI in Restful Ajax

PostPosted: Thu Dec 15, 2011 4:38 pm
by kairoh
The WebUI is successfully started but can't connect to Serviio service.
This may be related to you start script. Try to adapt some of these.

Re: Web UI in Restful Ajax

PostPosted: Thu Dec 15, 2011 6:36 pm
by qoolbox
FIXED... thanks Kairoh

Now all run fine... didnt find my mistake, just replace .jar once again, and added new plugins once again... Chmoded all in 755 in plugins directory... and all run now

One Informatic mistery once again :D