Kodi Community Forum
MediaFrontPage - Web interface with widget type architecture to control multiple apps - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Supplementary Tools for Kodi (https://forum.kodi.tv/forumdisplay.php?fid=116)
+--- Thread: MediaFrontPage - Web interface with widget type architecture to control multiple apps (/showthread.php?tid=83304)



- hernandito - 2011-04-21

gugahoi Wrote:You should use

http://ip:port/transmission/rpc

And not /web

It still should show up the warning. Let me know. Maybe also check permissions on the files?

No luck. Sad

I changed the /web to /rpc and I still get blanks. If I try to go to http://192.168.0.201:9091/transmission/rpc on my browser, I get a page displaying the following:

Code:
409: Conflict

Your request had an invalid session-id header.

To fix this, follow these steps:

    When reading a response, get its X-Transmission-Session-Id header and remember it
    Add the updated header to your outgoing requests
    When you get this 409 error message, resend your request with the updated header

This requirement has been added to help prevent CSRF attacks.

X-Transmission-Session-Id: 6sDPbaZQTZkMQnBneCJxFvR2KoJfgbCiWldnXnS72ggZ5bc1

I have also typed this in my unRAID server:

chmod -R 777 /boot/custom/transmission/

I assume this is where unRAID install Transmission and that the command gives the folder full rights.


- DejaVu - 2011-04-21

The links that work for me -

http://xbmclive:9091/transmission/web/
http://localhost:9091/transmission/web/
http://192.168.0.2:9091/transmission/web/

Also, the whitelist with Transmission can be bit of a pain in the arse.

==EDIT
Did you install 'transmission' or 'transmission-daemon'.
for web access only it should have been the later.


- gugahoi - 2011-04-21

hernandito Wrote:No luck. Sad

I changed the /web to /rpc and I still get blanks. If I try to go to http://192.168.0.201:9091/transmission/rpc on my browser, I get a page displaying the following:

Code:
409: Conflict

Your request had an invalid session-id header.

To fix this, follow these steps:

    When reading a response, get its X-Transmission-Session-Id header and remember it
    Add the updated header to your outgoing requests
    When you get this 409 error message, resend your request with the updated header

This requirement has been added to help prevent CSRF attacks.

X-Transmission-Session-Id: 6sDPbaZQTZkMQnBneCJxFvR2KoJfgbCiWldnXnS72ggZ5bc1

I have also typed this in my unRAID server:

chmod -R 777 /boot/custom/transmission/

I assume this is where unRAID install Transmission and that the command gives the folder full rights.

The 409 thing is right. It's what you should be getting. Transmission has one adress with a web client and one address that you use to get info about the program. So rpc is right and when accessed directly it would give you a 409 conflict.

I didn't really test using a username and password. Maybe leave those blank and see if that works.

Unfortunately I'm not hone right now to see things in depth. When I get home I'll test it a bit more and maybe I'll record my screen showing you how it works.


In regards to jdownloader - if the page returned malformed request or something don't worry, it should. I'll also test it a bit more later on today and maybe include it in the video.


For both of them I had the jd and transmission in my computer and not in the LAN. But I see no reason why it would not work.

I was also using a Mac so maybe that makes a difference? Even tho I think it's improbable.


- gugahoi - 2011-04-21

Here it is guys.

http://www.youtube.com/watch?v=tLzNY_ROut4

I installed it from scratch and all seemed to be working, even password authentication.

I forgot to ask but what brach did you use? I hope everything gets fixed because I have no idea why such things would happen.

p.s. oh yeah, sorry for the video quality. And the music is just to make thinks more interesting hahaha. ƒƒ!


- hernandito - 2011-04-21

Nothing has worked... I am guessing it may have something to do with the unRAID server setup. Any of you guys installing Transmission in unRAID? It is the package included with unMenu. But I do have MFP, Sab, Sickbeard and Couch Potato on that server working.


- hernandito - 2011-04-22

In the interest of maximizing screen real estate, I have added a secondary Navigation bar below the existing one. These are for "less" important, but pertinent links in MFP. It only takes up 20 additional pixels of vertical real estate, but you could fit quite a number of links.

Image

I have made an edit to the config.php to add additional $navlink variables. The original $navlink entries work as usual opening the link on the frame below the navigation bar. $navlink1 variables open the link in a new tab on your browser. $navlink2 is so you can go to opening the links in the same MFP frame.

In the file linked below, you will find ONLY the files that have been changed to implement the secondary navigation bar. Please do be careful to only copy the changes in the config.php file as you will loose all your settings!!!

Please let me know your comments or suggestions. I am NOT an advanced coder.

http://www.megaupload.com/?d=FJIAQTTH


- gugahoi - 2011-04-22

hernandito Wrote:In the interest of maximizing screen real estate, I have added a secondary Navigation bar below the existing one. These are for "less" important, but pertinent links in MFP. It only takes up 20 additional pixels of vertical real estate, but you could fit quite a number of links.

Image

I have made an edit to the config.php to add additional $navlink variables. The original $navlink entries work as usual opening the link on the frame below the navigation bar. $navlink1 variables open the link in a new tab on your browser. $navlink2 is so you can go to opening the links in the same MFP frame.

In the file linked below, you will find ONLY the files that have been changed to implement the secondary navigation bar. Please do be careful to only copy the changes in the config.php file as you will loose all your settings!!!


http://www.megaupload.com/?d=FJIAQTTH

Hey dude, I like it. Even though I don't have much use for it myself, I think it's a good addition. I've been thinking, why don't you start using git to post all your mods? Maybe I'll create a brach for you in my fork and you can just update things there? It might make it easier for other people that want the modifications.

And another thing. I also see that you transmission widget is a no show for now. I'm going to try and fix that, but since I've never dealt with unRaid before I have no idea what the difference would be from a simple Transmission installation. Check your PM's.


Also wanted to ask DejaVu if his widget is working? Just so I know it's working somewhere else other than my setup.


- DejaVu - 2011-04-22

Like that addition, I still think that MFP needs a drop down menu type though similar to SB's new one. Can fit tons on them. I think JQuery would be the way to go with it too, how would it work over the frameset though. Would it show?

Similar too -
http://apycom.com/menus/5-black.html

I tried once, but failed miserably.
More on the frameset - cannot it not be deleted altogether?


- DejaVu - 2011-04-22

gugahoi Wrote:Also wanted to ask DejaVu if his widget is working? Just so I know it's working somewhere else other than my setup.

It is, but I've gone off it completely after seeing the transmission widget!! Wink


- hernandito - 2011-04-22

DejaVu77 Wrote:Like that addition, I still think that MFP needs a drop down menu type though similar to SB's new one. Can fit tons on them. I think JQuery would be the way to go with it too, how would it work over the frameset though. Would it show?

Similar too -
http://apycom.com/menus/5-black.html

I tried once, but failed miserably.
More on the frameset - cannot it not be deleted altogether?

I like those, but when the item you want is a little hidden, like in a dropdown, I don't find it as easy. I like a straight shot link so I don't have to think.


- hernandito - 2011-04-22

gugahoi Wrote:Hey dude, I like it. Even though I don't have much use for it myself, I think it's a good addition. I've been thinking, why don't you start using git to post all your mods? Maybe I'll create a brach for you in my fork and you can just update things there? It might make it easier for other people that want the modifications.

And another thing. I also see that you transmission widget is a no show for now. I'm going to try and fix that, but since I've never dealt with unRaid before I have no idea what the difference would be from a simple Transmission installation. Check your PM's.

I would be happy to update a branch... I am not much of an expert but I can figure it out... I replied to your PM, I will be by my computers all day tomorrow... New York time zone.


- gugahoi - 2011-04-22

DejaVu77 Wrote:It is, but I've gone off it completely after seeing the transmission widget!! Wink

I meant if your transmission widget is working? If you have one at all.

Some news:

Added a nice highslide feature to the Search widget go check it out. Any other programs you can think of that would be nice to have in MFP?

jDownloader widget still in progress. It seems like the jd remote control is not extremely useful but it will have to do. Basic operations will be there but nothing more. And the widget seems to take some time to load don't know why but will look into it.


@hernandito: When you've got time create a file in the Transmission components folder called test.php or something and put this code in there

Code:
<?php
require('transmission_api.php');

$rpc = new TransmissionRPC("http://192.168.0.201:9091/transmission/rpc");
$rpc->username = "";
$rpc->password = "";

echo "<pre>";
print_r($rpc);
echo "</pre>";
echo "------------------------------------------";

try{
$session = $rpc->getSession(null);
echo "<pre>";
print_r($session);
echo "</pre>";
echo "------------------------------------------";
}
catch(TransmissionRPCException $e){
    echo "<br>Error: ".$e->getMessage();
}


?>

Remeber to change the admin and password accordingly or just remove it altogether to get less chance of problems. After that try to access the file in your browser. http://192.168.0.201/widgets/TransmissionComponents/test.php or something like that and let me know what you get.


- portice - 2011-04-22

this is great!

thanks dude for working on this. it took a little configuring (web server different than sb/sab servers) but once i got it all interconnected it works great.


- CoinTos - 2011-04-22

Hi gugahoi,

I have just switched from deluge to transmission and tried your transmission widget, great job. One option that I could use for it would in the config to either show all, seeds only or downloads only. In my case all I really care about seeing in the widget downloads only as I can manage seeds else where, if need be.

Thanks.


- hernandito - 2011-04-22

gugahoi Wrote:@hernandito: When you've got time create a file in the Transmission components folder called test.php or something and put this code in there


Remeber to change the admin and password accordingly or just remove it altogether to get less chance of problems. After that try to access the file in your browser. http://192.168.0.201/widgets/TransmissionComponents/test.php or something like that and let me know what you get.

Thank you Guga...

My Transmission install does not require a password now.

I created the test.php file and I first copied it to the root folder of MFP, I simply got a white blank screen.

I then copied it to the /widgets/TransmissionComponents/test.php and it reports the following:

Code:
TransmissionRPC Object
(
    [url] => http://192.168.0.201:9091/transmission/rpc
    [username] =>
    [password] =>
    [return_as_array] =>
    [debug] =>
    [session_id:protected] =>
    [default_context_opts:private] => Array
        (
            [http] => Array
                (
                    [user_agent] => TransmissionRPC for PHP/0.3
                    [ignore_errors] => 1
                )

        )

)

------------------------------------------

I hope this helps... many thanks again.