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


- maseatx - 2011-06-15

Undrsiege Wrote:Anyone fixed the scrolling issue with Ipad yet?


thanks..

i also am looking for a scrolling option for the ipad instead of using 2 fingers to scroll. is there any way to add a scroll button up/down or left/right (for the widget) or is there any "sendkey" commands that i can send through the address bar

im using the interface as an embedded web page on my ipad through the irule app so i could add my own buttons to do commands for up and down just don't know what to send


AWX Interface Hanging while initialising. - The Sandman - 2011-06-21

As previously posted on page 20 of this forum...

I had to go into the script lib.xbmc.js file and change it to

callback();

ATV2 running the latest XBMC.

Hope that helps someone!

Loving the HTTP GUI. Thanks.

Mark.Big GrinBig GrinBig Grin


- Jackie78 - 2011-06-23

MKay Wrote: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?

The question is: why is the script not changed on the server? I downloaded AWX today, and the error is still present, and I don't understand why every user has to change this manually to make the script work. Why not simply release a bugfixed version?


- X3lectric - 2011-06-23

i would settle for a awx version that works with mainline GIT xbmc... as opposed to non working completely... then again the dev may be too busy and or lost interest... woulnt be the first...

The Sandman Wrote:As previously posted on page 20 of this forum...

I had to go into the script lib.xbmc.js file and change it to

callback();

ATV2 running the latest XBMC.

Hope that helps someone!

Loving the HTTP GUI. Thanks.

Mark.Big GrinBig GrinBig Grin

page 20? thers something wrong with my eyes this topic only has 13 pages for me...


- Jackie78 - 2011-06-23

X3lectric Wrote:i would settle for a awx version that works with mainline GIT xbmc... as opposed to non working completely... then again the dev may be too busy and or lost interest... woulnt be the first...



page 20? thers something wrong with my eyes this topic only has 13 pages for me...

13 pages for me too, but I guess you can configure the number of posts per page in your personal settings. Soprobably naming the post# is more precise Smile


- X3lectric - 2011-06-23

either way I added the "fix" and though awx loads it doesnt really do anything, cant load any TV shows, movies and music well it doesnt know thers a folder mounted via smb and only look under my secondary hdd.

It looks better then the default but since it doesnt work at all, I will differ until the dev has time to fix whatever issues are lingering.

the error console has no errors but it has a ton of warnings...

im not about to copy and paste them one by one, how the hell can one copy and paste all the error console stuff? Gooogle is about as frindly on this as a kick in the teeth.


Remote Control Keys - A321 - 2011-07-10

Hi,

I wanted to have control over up/down/left/right/select in AWX for XBMC 10.1, so i wrote it using the old http-api (eden will have it via json-rpc)

Changes:
ui.default/ui.default.js - line ~270
add
Code:
'<div id="input"></div>' +
after
Code:
'<div id="navigation"></div>' +


ui.default/ui.default.js - line ~326
Add
Code:
$('#input').inputControls();
after
Code:
$('#controls').defaultControls();

js/jquery.awx.js
Add
Code:
    /* ########################### *\
     |  Input-Controls
    \* ########################### */
    $.fn.inputControls = function() {
        $controls = $('<a class="button up" href=""></a><a class="button down" href=""></a><a class="button left" href=""></a><a class="button right" href=""></a><a class="button select" href=""></a><a class="button home" href=""></a><a class="button back" href=""></a>');
        
        $controls.filter('.up').click(function() {
            xbmc.input({type: 'up'}); return false;
        });
        
        $controls.filter('.down').click(function() {
            xbmc.input({type: 'down'}); return false;
        });
        
        $controls.filter('.left').click(function() {
            xbmc.input({type: 'left'}); return false;
        });
        
        $controls.filter('.right').click(function() {
            xbmc.input({type: 'right'}); return false;
        });
        
        $controls.filter('.select').click(function() {
            xbmc.input({type: 'select'}); return false;
        });
        
        $controls.filter('.home').click(function() {
            xbmc.input({type: 'home'}); return false;
        });
        
        $controls.filter('.back').click(function() {
            xbmc.input({type: 'back'}); return false;
        });

        this.each (function() {
            $(this).append($controls.clone(true));
        });
    }; // END inputControls
after
Code:
(function($) {

js/lib.xbmc.jc:
add
Code:
        input: function(options) {
            var settings = {
                type: 'select',
                onSuccess: null,
                onError: null
            };
            
            $.extend(settings, options);        
            var commands = {left: 1, right: 2, up: 3, down: 4, select: 7, back: 9, home: 10 };

            xbmc.httpapi(
                'action', commands[ settings.type] ,
                settings.onSuccess,
                settings.Error
            );

            return true;
        },
        httpapi: function(command, parameter, onError, onComplete, asyncRequest) {
            if (typeof asyncRequest === 'undefined')
                asyncRequest = true;

            if (!this.xbmcHasQuit) {
                $.ajax({
                    async: asyncRequest,
                    type: 'GET',
                    url: './xbmcCmds/xbmcHttp',        
                    data: {
                        "command": command,
                        "parameter": parameter
                    },
                    dataType: 'text',
                    cache: false,
                    timeout: this.timeout,
                    success: function(result, textStatus, XMLHttpRequest) {    
                    
                        // its possible to get here on timeouts. --> error
                        if (XMLHttpRequest.readyState==4 && XMLHttpRequest.status==0) {
                            if (onError) {
                                onError({"error" : { "ajaxFailed" : true, "xhr" : XMLHttpRequest, "status" : textStatus }});
                            }
                            return;
                        }
                        
                        // Example Error-Response: { "error" : { "code" : -32601, "message" : "Method not found." } }
                        if (result.error) {
                            if (onError) { onError(result); }
                            return;
                        }
                            
                        if (onSuccess) { onSuccess(result); }
                    },
                    error: function(XMLHttpRequest, textStatus, errorThrown) {
                        if (onError) {
                            onError({"error" : { "ajaxFailed" : true, "xhr" : XMLHttpRequest, "status" : textStatus, "errorThrown" : errorThrown }});
                        }
                    },
                    complete: function(XMLHttpRequest, textStatus) {
                        if (onComplete) { onComplete(); }
                    }
                });
            }
        },
after
Code:
        timeout: 10000,

layout.css
Add
Code:
#input {
    position: absolute;
    bottom: 240px;
    left: 15px;
    height: 65px;
    width: 60px;
    padding: 15px 15px 40px 15px;
    background: #343434;
    -moz-border-radius: 5px; -webkit-border-radius: 5px; border-radius: 5px;
    border: 1px solid #7c7c7c;
}

#input a.button {
    background: url('../images/input.png') no-repeat;
    width: 30px;
    height: 30px;
    position: absolute;
        right: 30px;
}

#input a.left { right: 60px; top: 60px; background-position: -60px 0px; }
#input a.right { top: 60px; right: 0; background-position: -90px 0px; }
#input a.up { top: 30px; background-position: -30px 0px; }
#input a.down { top: 90px; background-position: -0px 0px; }
#input a.select { top: 60px;right:30px; background-position: -120px 0px; }
#input a.home { top: 0px; right: 0; background-position: -150px 0px; }
#input a.back { top: 0px; right: 60px; background-position: -180px 0px; }

#input a.left:hover { background-position: -60px -30px; }
#input a.right:hover { background-position: -90px -30px; }
#input a.up:hover { background-position: -30px -30px; }
#input a.down:hover { background-position: -0px -30px; }
#input a.select:hover { background-position: -120px -30px; }
#input a.home:hover { background-position: -150px -30px; }
#input a.back:hover { background-position: -180px -30px; }

And add input.png Image

Result:
Image


- FilemonCZ - 2011-07-11

hi i have another problem - when i connect to xbmc it works till i want to do something

for example i go music - album and it all the time says Failed to retrieve album list!

i connecting to appletv via wifi

if i do it on local macbook it works without any problem..

any help please ?


- X3lectric - 2011-07-11

if your xbmc is recent then it wont work, awx just loads with current xbmc and doesnt do anything else. I get that exactly on a ION1 with mainline XBMC git compile. WIRED gigabt

web-interfaces are short on features and dont really work that well or at all.


- oclaf - 2011-07-14

This is by far the best and most complete web interface I've come across. Thanks heaps AWX.
Here's my suggestion though. The music by artist list needs to be sorted by album artist not track artist. Using the track artist makes a real mess of libraries like mine containing lots of compilation albums.

Also I use it for controlling my jukebox, so I've no need for any of the movie stuff. I'd like it to open straight onto the album list rather than the blank home page. Any pointers on what would need editing to do that? I'm not terribly well versed in java script and I just need a poke in the right direction.
Thanks.


doesn't work anymore - cephalopod - 2011-07-22

This web interface used to work great, but now when I try to play anything, I get the error "Playing file ... Failed to add file to playlist!"

And I've never been able to get the default web ui to work.

I even tried deleting all prefs, even uninstalling and reinstalling, but no luck.

Is there a working web UI?

thanks


- illiac4 - 2011-07-23

It has worked with darma 10.1 but with nightly it says as you have said.


- grawsom - 2011-08-08

Any updates to this thread....
Any new versions??


- Ardalista - 2011-08-13

Do you have any plans to implement support for movie sets? currently the sets and the movies contained within them do not show while using this interface via movies but if I enter file mode then I can see them again.


- nicke163 - 2011-08-24

How can I remove system control button? My sisters used them to shutdown my server after watched a movie, forgot to say that they don't need shutdown XBMC or the system (server). :p