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)



- DejaVu - 2011-04-23

I'm using Transmission on XBMCLive and the widget is working lovely.

Only 1 issue I'm having and it's aimed more at Transmission.

The Watch Folder feature does not work with the daemon I have installed for some reason...?!


- gugahoi - 2011-04-23

CoinTos Wrote: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.

Thanks, good to know. I'll see if that is feasible. Worst case scenario I can tell you what to do to accomplish that in your installation.

DejaVu77 Wrote:I'm using Transmission on XBMCLive and the widget is working lovely.

Only 1 issue I'm having and it's aimed more at Transmission.

The Watch Folder feature does not work with the daemon I have installed for some reason...?!

Awesome. Good to know it's working for you.

hernandito Wrote:Thank you Guga...

...

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
                )

        )

)

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

This is weird. It doesn't reply with neither an error nor a response. Are you sure it is installed correctly? Or if the feature is even implemented in unRaid?

I think I can come up with a couple more tests tho. But look into that because it seems like nothing is happening in the Transmission RPC.


- gugahoi - 2011-04-23

hernandito Wrote:I hope this helps... many thanks again.

Try adding this after the line $rpc->password = "" and report back with the reply.

Code:
$rpc->password = "";
[b]$rpc->debug = true;[/b]



- hernandito - 2011-04-23

gugahoi Wrote:This is weird. It doesn't reply with neither an error nor a response. Are you sure it is installed correctly? Or if the feature is even implemented in unRaid?

I think I can come up with a couple more tests tho. But look into that because it seems like nothing is happening in the Transmission RPC.

Hi,

The regular web interface is working fine. I am able to download files, config watch folders, etc. Transmission is working, but not showing up on MFP.


- DejaVu - 2011-04-23

Are you using the IP address or the Host name? I tried the hostname and was not recognised.

Here are all my settings.

config.php
Code:
$transmission_url     = "http://192.168.0.13:9091/transmission/rpc";    // The url for transmission webserver
$transmission_admin    = "xbmc";    // The username for trasmission webui
$transmission_pass     = "xbmc";    // The password for the webui

My Navlink
Code:
$navlink["Transmission"] = "http://xbmc:xbmc@xbmclive:9091/transmission/web/";

My JSON Settings. (/etc/transmission-daemon/settings.json)
Code:
{
    "alt-speed-down": 50,
    "alt-speed-enabled": false,
    "alt-speed-time-begin": 540,
    "alt-speed-time-day": 127,
    "alt-speed-time-enabled": false,
    "alt-speed-time-end": 1020,
    "alt-speed-up": 50,
    "bind-address-ipv4": "0.0.0.0",
    "bind-address-ipv6": "::",
    "blocklist-enabled": false,
    "dht-enabled": true,
    "download-dir": "/home/xbmc/Downloads/torrents",
    "download-limit": 100,
    "download-limit-enabled": 0,
    "encryption": 1,
    "incomplete-dir": "/home/xbmc/Downloads",
    "incomplete-dir-enabled": false,
    "lazy-bitfield-enabled": true,
    "max-peers-global": 200,
    "message-level": 2,
    "open-file-limit": 32,
    "peer-limit-global": 240,
    "peer-limit-per-torrent": 60,
    "peer-port": 51413,
    "peer-port-random-high": 65535,
    "peer-port-random-low": 49152,
    "peer-port-random-on-start": false,
    "peer-socket-tos": 0,
    "pex-enabled": true,
    "port-forwarding-enabled": false,
    "preallocation": 1,
    "proxy": "",
    "proxy-auth-enabled": false,
    "proxy-auth-password": "",
    "proxy-auth-username": "",
    "proxy-enabled": false,
    "proxy-port": 80,
    "proxy-type": 0,
    "ratio-limit": 2.0000,
    "ratio-limit-enabled": false,
    "rename-partial-files": true,
    "rpc-authentication-required": true,
    "rpc-bind-address": "0.0.0.0",
    "rpc-enabled": true,
    "rpc-password": "{b3d0450d9bb5a6dab3f91b5a8fb96d5a5fed97a58WRBrLsY",
    "rpc-port": 9091,
    "rpc-username": "xbmc",
    "rpc-whitelist": "127.0.0.1,192.168.*.*",
    "rpc-whitelist-enabled": true,
    "speed-limit-down": 100,
    "speed-limit-down-enabled": false,
    "speed-limit-up": 100,
    "speed-limit-up-enabled": false,
    "umask": 18,
    "upload-limit": 100,
    "upload-limit-enabled": 0,
    "upload-slots-per-torrent": 14
}

My XBMC is setup on XBMCLive on a Acer Revo living on 192.168.0.13 (XBMCLive) Transmission is now available from every machine on my network.

All I need now is -
Code:
"watch-dir": "/mnt/NZBs",
"watch-dir-enabled": true
to add and everything will be perfect. When I do, I get parser errors.

Hope that helps. I found setting the json.settings an absolute nightmare. Transmission believes in far too much security IMO, especially when I only use it behind a router.

EDIT - Watch directory sorted. Had to add a comma after upload slots section. Doh!
EDIT 2 - This a bit of nightmare to setup. Now I'm struggling with permissions for the folder creating when adding torrents.
Code:
sudo chmod g+rw /home/xbmc/Downloads/torrents
didnt work work! Grrr.


- hernandito - 2011-04-24

DejaVu77 Wrote:Are you using the IP address or the Host name? I tried the hostname and was not recognised.

Here are all my settings.

config.php
Code:
$transmission_url     = "http://192.168.0.13:9091/transmission/rpc";    // The url for transmission webserver
$transmission_admin    = "xbmc";    // The username for trasmission webui
$transmission_pass     = "xbmc";    // The password for the webui

My Navlink
Code:
$navlink["Transmission"] = "http://xbmc:xbmc@xbmclive:9091/transmission/web/";

My JSON Settings. (/etc/transmission-daemon/settings.json)

Thank you DejaVu, no luck.

I have tried using booth the IP address : port and the Name : port.

I looked at all the settings in the settings.json and with the exception of download locations and name and password, my settings where the same on my unRAID server, the settings.jason file is in a folder at this location:

/mnt/cache/.custom/transmission/transmission_conf/

Not sure if the widget is referring to a different path structure.

I typed this in a terminal window:
Code:
chmod -R 777 /mnt/cache/.custom/transmission/

Sad


- gugahoi - 2011-04-24

So how about the bind address? And maybe whitelist? Are they the same too?

Have you tried what I said in post 738?

This is really wierd...


- steve1977 - 2011-04-24

This is fantastic that there is a renewed momentum with MFP!!! A few bugs and feature requests, which may have been mentioned somewhere deep in this thread already...

Bugs
1) Coming episodes not displaying at all with mobile-app
2) Coming episodes not displaying properly when moving to the right or left column within MFP (Chrome) user)
3) RSS feed works great, but not possible to click "NFO" or "IMDB" from the "box"ยด
4) Video library doesn't reflect XBMC sort order (e.g., "The Movie" shows under "T" and not under "M")

Feature request
1) Display upcoming bluray/DVD releases as widget
2) Allow to add from this widget directly to CP (plus other way to add to CP similar to the search box)


- sraue - 2011-04-24

steve1977 Wrote:Feature request
1) Display upcoming bluray/DVD releases as widget
2) Allow to add from this widget directly to CP (plus other way to add to CP similar to the search box)
3) translate "localhost" (and the special ip adress "127.0.0.1") used in config.php to the proper ip adress from the system where MFP is running (eg for navlinks)


- hernandito - 2011-04-24

gugahoi Wrote:So how about the bind address? And maybe whitelist? Are they the same too?

Have you tried what I said in post 738?

This is really wierd...

Guga I completely missed seeing post 738... I added and this is what it reports back.

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

        )

)

------------------------------------------TRANSMISSIONRPC_DEBUG:: GetSessionID():: Stream context created with options: Array ( [http] => Array ( [user_agent] => TransmissionRPC for PHP/0.3 [ignore_errors] => 1 ) ) TRANSMISSIONRPC_DEBUG:: GetSessionID():: Stream meta info: Array ( [wrapper_data] => Array ( [headers] => Array ( ) [readbuf] => Resource id #4 ) [wrapper_type] => cURL [stream_type] => cURL [mode] => r [unread_bytes] => 0 [seekable] => [uri] => http://192.168.0.201:9091/transmission/rpc [timed_out] => [blocked] => 1 [eof] => )


I have bind address as "0.0.0.0"

White list was also "0.0.0.0". I also tried "192.168.0.*" and "127.0.0.1,192.168.*.*". None worked.



Thanks.


- thezoggy - 2011-04-24

steve1977 Wrote:This is fantastic that there is a renewed momentum with MFP!!! A few bugs and feature requests, which may have been mentioned somewhere deep in this thread already...

Bugs
1) Coming episodes not displaying at all with mobile-app
2) Coming episodes not displaying properly when moving to the right or left column within MFP (Chrome) user)

Note that there is a new coming episodes page for the poster/banner view being added to sickbeard here in a week or so.. thus I wouldn't waste too much effort on trying to fix anything with the current one.


- gugahoi - 2011-04-24

hernandito Wrote:Guga I completely missed seeing post 738... I added and this is what it reports back.

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

        )

)

------------------------------------------TRANSMISSIONRPC_DEBUG:: GetSessionID():: Stream context created with options: Array ( [http] => Array ( [user_agent] => TransmissionRPC for PHP/0.3 [ignore_errors] => 1 ) ) TRANSMISSIONRPC_DEBUG:: GetSessionID():: Stream meta info: Array ( [wrapper_data] => Array ( [headers] => Array ( ) [readbuf] => Resource id #4 ) [wrapper_type] => cURL [stream_type] => cURL [mode] => r [unread_bytes] => 0 [seekable] => [uri] => http://192.168.0.201:9091/transmission/rpc [timed_out] => [blocked] => 1 [eof] => )


I have bind address as "0.0.0.0"

White list was also "0.0.0.0". I also tried "192.168.0.*" and "127.0.0.1,192.168.*.*". None worked.



Thanks.

Very weird, it seems to miss a lot of the calls.

This is what I'm getting

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

        )

)
------------------------------------------


TRANSMISSIONRPC_DEBUG:: GetSessionID():: Stream context created with options: Array ( [http] => Array ( [user_agent] => TransmissionRPC for PHP/0.3 [ignore_errors] => 1 ) ) TRANSMISSIONRPC_DEBUG:: GetSessionID():: Stream meta info: Array ( [wrapper_data] => Array ( [0] => HTTP/1.0 409 Conflict [1] => Server: Transmission [2] => X-Transmission-Session-Id: JYM6dKOC7WdLlYCCVUMYQDyim2DhAngsYYIJO12LvHByYu4c [3] => Content-Type: text/html; charset=ISO-8859-1 ) [wrapper_type] => http [stream_type] => tcp_socket/ssl [mode] => r [unread_bytes] => 580 [seekable] => [uri] => http://0.0.0.0:9091/transmission/rpc [timed_out] => [blocked] => 1 [eof] => ) TRANSMISSIONRPC_DEBUG:: GetSessionID():: Session-Id header: X-Transmission-Session-Id: JYM6dKOC7WdLlYCCVUMYQDyim2DhAngsYYIJO12LvHByYu4cTRANSMISSIONRPC_DEBUG:: request( method=session-stats, ...):: Stream context created with options: Array ( [http] => Array ( [user_agent] => TransmissionRPC for PHP/0.3 [ignore_errors] => 1 [method] => POST [header] => Content-type: application/json X-Transmission-Session-Id: JYM6dKOC7WdLlYCCVUMYQDyim2DhAngsYYIJO12LvHByYu4c [content] => {"method":"session-stats","arguments":{"ids":[]}} ) ) TRANSMISSIONRPC_DEBUG:: request( method=session-stats, ...):: POST Result: {"arguments":{"activeTorrentCount":0,"cumulative-stats":{"downloadedBytes":47248664232,"filesAdded":9193,"secondsActive":2318555,"sessionCount":36,"uploadedBytes":44151769801},"current-stats":{"downloadedBytes":0,"filesAdded":0,"secondsActive":47,"sessionCount":1,"uploadedBytes":0},"downloadSpeed":0,"pausedTorrentCount":0,"torrentCount":0,"uploadSpeed":0},"result":"success"} TRANSMISSIONRPC_DEBUG:: request( method=session-stats, ...):: Stream meta info: Array ( [wrapper_data] => Array ( [0] => HTTP/1.0 200 OK [1] => Server: Transmission [2] => Content-Type: application/json; charset=UTF-8 ) [wrapper_type] => http [stream_type] => tcp_socket/ssl [mode] => r [unread_bytes] => 0 [seekable] => [uri] => http://0.0.0.0:9091/transmission/rpc [timed_out] => [blocked] => 1 [eof] => 1 )
stdClass Object
(
    [arguments] => stdClass Object
        (
            [cumulative_stats] => stdClass Object
                (
                    [downloadedBytes] => 47248664232
                    [filesAdded] => 9193
                    [secondsActive] => 2318555
                    [sessionCount] => 36
                    [uploadedBytes] => 44151769801
                )

            [current_stats] => stdClass Object
                (
                    [secondsActive] => 47
                    [sessionCount] => 1
                )

        )

    [result] => success
)
------------------------------------------

Which transmission package are you using exactly?
And is this the unRaid you're using?

I went to the transmission IRC channel to ask but no one seems to be able to give me some info on Transmission for unRaid.


- hernandito - 2011-04-24

gugahoi Wrote:Very weird, it seems to miss a lot of the calls.

Which transmission package are you using exactly?
And is this the unRaid you're using?

I went to the transmission IRC channel to ask but no one seems to be able to give me some info on Transmission for unRaid.

The package I am using I believe was created specifically for unRAID, (which is the one you linked above). This must be the reason.

For Sickbeard and CP, I installed the packages manually by downloading them from their creators.

I am ready to give up. I will simply add a $Navlink to the web interface.

Thank you so much for all the help guys!


- hernandito - 2011-04-25

I tried installing transmission on my one XBMC Live cleient machine and got the exact same results. A blank widget screen with same type results on test.php... It must be something in my php in unRAID I am guessing... I am giving up for the time being.


- gugahoi - 2011-04-25

hernandito Wrote:I tried installing transmission on my one XBMC Live cleient machine and got the exact same results. A blank widget screen with same type results on test.php... It must be something in my php in unRAID I am guessing... I am giving up for the time being.

That's a shame. Just one last question: what server are you using? XAMPP or something?