Kodi Community Forum
[Web Interface Addon] AWX - Ajax based Web Interface Addon for XBMC - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Web Interfaces (https://forum.kodi.tv/forumdisplay.php?fid=156)
+---- Thread: [Web Interface Addon] AWX - Ajax based Web Interface Addon for XBMC (/showthread.php?tid=81775)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23


- steppedup - 2011-01-12

Thanks for AWX - love it!!!!!


Hide watched movies and tv shows? - sambal - 2011-01-14

Hi,

First i have to say that i love the awx web interface! It's perfect for creating play lists and good also for movies. However there is one that i'm missing.

Would it be possible to add an option to hide watched episodes and movies? That would make it alot easier to navigate through my library.

Also, when making a music playlist, it says N/A - N/A for artist and track?


- darwin - 2011-01-17

I'm on Dharma, I enable AMX and see :
"
Initialize XBMC-lib ...
"

Hanging forever.

In all my browsers. Any suggestions? FWIW, I am using the MySQL database functionality..

#$#

EDIT : apparently all web interfaces are broken on this box. odd, because the other UI works fine...


- Livin - 2011-01-22

Looks like MKay abandoned this... it is sad as this has a ton of promise.


- castortray - 2011-01-23

Amazing interface!! thanks !!

Maybe you can add options to "stream media to my friends XBMC over the internet"' over external player like VLC ?

Here is a project (or just concept):
http://forum.xbmc.org/showthread.php?tid=82573
On this prtsc we can see VLC:

Image

Maybe you can merge this your awesome interface with VLC - stream Audio & Video from XBMC to stream video remotely

I believe that each of you would like to access all the content ( Movies, TV Shows, Pictures or Music ) at home and play it (stream to your PC/laptop) remotely when away on travel or you are with friends.

cheers


Feature Request - nugentgl - 2011-01-28

Anyway you can add a way to switch profiles? My family uses multiple profiles and it would be great to be able to do it from my iPad as that is the only reason why we have to keep a remote around.


- kees667 - 2011-02-06

great webinterface, using it more and more. Two general questions, which might be generic for any webinterface:

1) From my iPad I often get asked for username and password again, I don't delete iPad browsing history so any clue why this happens?

2) If I queue several music albums, how do I start playing the queue?


- dukevn - 2011-02-13

MKay Wrote:Hi,

a few month ago i began writing a webinterface for XBMC but have never released it. I wrote it to control audio-playback of my media center in a browser because i didn't want to turn the TV on ... and the browser is always started. Rolleyes
A few days ago i rewrote some parts so that it works with XBMC Dharma now and added some new functionality.
Maybe other people can find it useful. So here it is Wink

You can use AWX to control the Audio/Video-Section of XBMC: play/pause/stop/skip, show artists/albums/movies/tv shows and play them or add them to the playlist. It's designed for use on PCs or laptops with a browser like FireFox which supports JavaScript.

Screenshot:
Image
These "questionmark-images" will be replaced by the thumbs of the albums Laugh

Requirements:
- XBMC Dharma (Tested on XBMC 10.0-beta2 (on Ubuntu Karmic Koala))

Tested Browsers:
- FireFox 3.6 (on Ubuntu Lucid Lynx and Windows XP)
- Chromium 6.0.472.62 (on Ubuntu Lucid Lynx)
- Opera 10.62 (on Ubuntu Lucid Lynx and Windows XP)
- Safari 5.02 (on Windows XP)
- Internet Explorer 8 (does not support round edges)

Not supported:
- Internet Explorer 6

Instructions:
1. Copy the zip-file to a location where xbmc can reach it.
2. Go to "System --> Add-ons --> Install from zip file", select the zip-file and install it.
3. Go to "System --> Network --> Services --> Web interface" and select the new Web interface "AWX".
4. You may need to clear your browser-cache before you open the new installed/updated webinterface in your browser.
5. Open the page "http://<xbmc-ip>:<port>/" in your browser.

Download:
AWX is now available via official Addon Repository!
Version 0.3.1 <-- recommended, but requires min. beta3
Version 0.3.0 EXPERIMENTAL <-- for dharma beta2-users

Known issues:
N/A

Bug reports, suggestions and feature requests are welcome. Big Grin

@Translators: If you are interested in translating AWX into your language feel free to contact me via PM Smile

Greets,
MKay
Thanks for such a beautiful work. The addon works just fine when I enable it as a web interface. But when I want to have multiple web tools (web interface set as Default, and link the addons in XBMC webinterface.default folder), then it does not work any more: it can not retrieve movie/musics lists. I tried with other web tools such as XWMM or wTouch they all work fine with linking, so I believe it is just a path setting in awx addon. Is there a way of changing/setting this, or like give it as an option to change it as desire?

Thanks,

D.


- MKay - 2011-02-15

Hey guys!

First of all: i am alive Big Grin
I had much to do the last months and currently i am in an exam-phase.
But in some weeks i can continue working on AWX Smile

I read the last pages and noted down some interesting feature requests.
However i don't no, if i can implement all of them. The json api of XBMC is very limited.
For example interesting things like server side code is not possible and everything has to be implemented in client-side javascript.
So things like video-streaming are not possible because this requires either server-side code or executing external applications which is even not supported by the json-api.
I will check how the json-api has grown in the last time and then decide which features can be implemented. But i suppose that the api haven't change much and new json-api-features will only be available in Eden.

Here are some answers to the questions asked on the last pages:

1. Moving the Webinterface to another folder:
It seems that there are still path-problems. I think vaton4 fixed it, right? After verifying the fix i will add it to the code Smile

2. design-issues on iPhone/iPad:
Currently i have none of these devices. I will see if i can fix the problems.

3. You can find the pause-button in the control-box. It is next to the stop-button Smile

4. N/A in playlist:
This is a "Bug" of the xbmc-api. For files which are started using the file-list, the json-api does not return the artist/title when requesting the playlist. Hopefully this will be fixed in the json api in Eden.

5. Movie sets are currently not supported by the xbmc json-api. There already exist a ticket on xbmc trac.

6. Since the webinterface is completey executed with JavaScript in your webbrowser, there is no way to access the filesystem, e.g. for storing thumbnails. Currently i have only one idea to speed up the loading-process: Creating a php-file ore sth like that stored on a server (on the xbmc-machine) like Apache which caches a small-version of each thumb. So AWX would request the thumbs from that php-script, while the php-script is requesting the thumb from the json-api, resizes and saves it and serves it to AWX. But this would brake the plugin design because you need to setup a web-server and install a script Wink Maybe you have some other nice ideas?
EDIT: A better idea would be writing another xbmc-addon, which acts like a small http-server only for serving/caching the resized thumbs.

7. To start playing queued albums:
Go to the playlist and click on the first Track.

8. Languages:
To fix special-characters, you need to encode them correctly. For example %E9 is an "é" and %E4 is an "ä".
Using the javascript-method unescape() the values of the languages are then converted to strings which are shown in the interface.
So you should use the escape()-function to generate the escaped string if you use special characters.
You can do this easily using your webbrower. Simply type this in the address field (tested in chromium/firefox):
javascript:alert(escape('ä'))
This will show a messagebox showing the escaped version of the string "ä" which you can use then in the language-file.

For testing purpose you can add the script-tag to load the language (index.html):
<script src="js/lang/lang.de.js" type="text/javascript"></script>
It then should be available in the settings-box.

Here is a french translation by laukev7:
http://pastebin.com/W17b73cH <-- language file
http://pastebin.com/XR0SeSRS <-- addon.xml

Alessandrol send me a french translation, too, but without escaped characters:
http://users.skynet.be/bk263434/lang.fr.js <-- language file
Maybe you can merge your translations? Smile

vaton4 already translated it to Czech.
@vaton4: Can you fix your translation using the escaped-characters (described above)?

Thanks for your comments!

Best regards,
MKay


- Bobby Blixberg - 2011-02-17

darwin Wrote:I'm on Dharma, I enable AMX and see :
"Initialize XBMC-lib ..."
Hanging forever.

I am facing the same issue again, both on my Revo and my aTV2 Blush

Any hints?


- MKay - 2011-02-17

Which browser do you use?
Does the log of your browser show any (javascript) errors? E.g. in FireFox you have a error console.


- Bobby Blixberg - 2011-02-17

Firefox, Internet Explorer, Chrome, Opera Wink

The last one is my preferred browser, here's what the error console says:

Quote:CSS - http://192.168.0.44:8080/css/layout.css
Linked-in stylesheet
Declaration syntax error
Line 31:
ageTransform.Microsoft.gradient(startColorstr=#E5000000, endColorstr=#E5000000);
--------------------------------------------------------------------------------^
CSS - http://192.168.0.44:8080/css/layout.css
Linked-in stylesheet
-ms-filter is an unknown property
Line 32:
-ms-filter: "progidBig GrinXImageTransform.Microsoft.gradient(startColorstr=#E5000000
------------^
CSS - http://192.168.0.44:8080/css/layout.css
Linked-in stylesheet
-moz-border-radius is an unknown property
Line 41:
-moz-border-radius: 10px; -webkit-border-radius: 10px; border-radius: 10px;
--------------------^
CSS - http://192.168.0.44:8080/css/layout.css
Linked-in stylesheet
-webkit-border-radius is an unknown property
Line 41:
-moz-border-radius: 10px; -webkit-border-radius: 10px; border-radius: 10px;
-------------------------------------------------^



- MKay - 2011-02-17

Is that all in your error log? These are all css-errors, no javascript-errors. Smile

Maybe AWX hangs while it tries to detect the thumb-type (banner or poster).
You can try to comment out the line where the thumb-type is detected. You can do this by adding a "//" (without the ") at the beginning of the following line (#60) in the file "js/lib.xbmc.js":
Code:
this.detectThumbTypes(initContainer, callback);
Maybe AWX is then loaded successfully.

Do you have many tvshows? Maybe xbmc needs too much time to send the tvshow-list. Then you can try to change the default timeout-value in "js/lib.xbmc.js" (line #59):
Quote:this.timeout = (isNaN(timeout) || timeout < 5 || timeout > 120)? 10000: timeout*1000;
Please try to change the value 10000 to 60000 (1 minute).


- Bobby Blixberg - 2011-02-17

Thank you very much for your support.

There are no more entries in the error log.

And I don't have any TV shows in my library.

I changed the line the way you said (and restarted XBMC, cleared browser caches), the result stays the same... :-(


- MKay - 2011-02-17

lol, the idea with the "//" was totally absurd. Instead try to replace the line
Code:
this.detectThumbTypes(initContainer, callback);
with
Code:
callback();
But it's strange that no browser works and no error is logged. Here everything works fine with Chromium and FireFox.

Which version of xbmc/awx do you use? And which OS?