Firmware: A-410 [01 Apr. 2014] | A-400 [12 Mar. 2014] | C-300 [13 Feb. 2014] | A-300 [24 Feb. 2014] | C-200 [11 July 2013] | A-200/A-210 [11 July 2013] | Popbox V8 [3 Dec 2013]

Just got your NMT | WIKI has the answers | Search the forum | Forum Rules/Policy | Firmware & Official NMT News | Popcornhour manuals



User(s) browsing this thread: 1 Guest(s)
Thread Closed 
Web browser access to the PCH from your PC
10-09-2008, 11:19 AM
Post: #46
RE: Web browser access to the PCH from your PC
(10-09-2008 11:08 AM)journey4712 Wrote:  to get the opening start screen, use
http://popcorn:8883/start.cgi?list
journey

Very cool! That worked perfectly. Thanks a lot journey. Now I just have to figure out my autoload problem and I'll be all set! Thanks again!
Find all posts by this user
01-11-2009, 01:51 AM
Post: #47
RE: Web browser access to the PCH from your PC
for those who upgraded Transmission torrent client from default preinstalled v1.22 to v1.40+ the port and URL to access the web UI changed (to 9091). U can change it, or update your bookmarks:

http://nmt_address:9091/transmission/web/

also those who installed torrentwatch and forgotten to bookmark its adress migh like this one:

http://nmt_address:8883/torrentwatch/index.cgi
Find all posts by this user
01-12-2009, 04:23 PM
Post: #48
RE: Web browser access to the PCH from your PC
(10-09-2008 11:08 AM)journey4712 Wrote:  to get the opening start screen, use
http://popcorn:8883/start.cgi?list

when you go to http://popcorn:8883/start.cgi without the list option it redirects you to a variable in flash named 'udn'. This is basically the last share you were browsing i think. For the autoload, hopefully someone else knows Smile

journey

Thanks for providing this information. It was really bugging me, that not only was I seeing this problem when accessing the start.cgi page, but that the FAQ/Wiki didn't provide clearer information as to why I was getting redirected to localhost web pages. As a result I assumed that something was wrong with my system or configuration. I realize that the FAQ did stipulate between those pages intended for web browser access and those that are not, (although the Wiki makes no such distinction). It's just not clear to me from this labeling alone, what was actually going on here.

Going forward, I would suggest that the FAQ, (and the wiki as well), be updated with definitions for Remote access web pages for the NMT/PCH, and Local access web pages for the NMT/PCH, rather than the current FAQ classification of "Specifically intended for web browser access (allows settings to be made):" and "Not specifically intended for web browser access - do not seem to allow settings to be made:", and the Wiki's "Applications " and "Configuration" page classifications. A small definition can then be included as to what constitutes a remote access page and a local one, and if you try to access a local page remotely, you will see this redirection problem.

It's clear that the "Not.."/"Configuration" pages are not intended to be accessed locally, and that's the problem. If I think about it, there's probably some benefit to being able to manage the NMT configuration remotely, and that's about it. (How useful is it to see the NMT Sources screen remotely?). However, and with all hacks aside, until the Syabas programmers enable a remote access NMT configuration capability, it's probably better to advise folks of this fact, rather than listing all of the possible web pages they can access.

Anyway it's just a suggestion. Thanks for discussing the problem in the thread, and thanks again to journey4712 for explaining what was really going on here..

Good Luck..
Find all posts by this user
01-12-2009, 04:35 PM
Post: #49
RE: Web browser access to the PCH from your PC
(01-12-2009 04:23 PM)jasn Wrote:  (...) Going forward, I would suggest that the FAQ, (and the wiki as well), be updated with definitions for Remote access web pages for the NMT/PCH, and Local access web pages for the NMT/PCH, rather than the current FAQ classification of "Specifically intended for web browser access (allows settings to be made):" and "Not specifically intended for web browser access - do not seem to allow settings to be made:", and the Wiki's "Applications " and "Configuration" page classifications. A small definition can then be included as to what constitutes a remote access page and a local one, and if you try to access a local page remotely, you will see this redirection problem.

(...)

With your recent discoveries and thoughts it would indeed be a contribution to the NMT community if you'd help us improve the wiki - it is editable by anyone.

(At this moment it requires a separate registration from the forum, but that will be integrated some time ahead).

Audio, video, disco - I hear, I see, I learn.
Wiki. Wiki? Wiki!
Find all posts by this user
01-22-2009, 03:40 PM
Post: #50
RE: Web browser access to the PCH from your PC
(09-13-2008 07:36 AM)RXP Wrote:  Anyone able to hack up a greasemonkey script so that the 127 ip's are changed a user definable IP? Would be neat to make changes via web interface when entering long URL's etc.

Here is a first shot

Code:
// ==UserScript==
// @name           Popcorn Remote
// @namespace      popcorn
// @description    Remotely administer Popcorn Hour A110
// @include        http://192.xxx.xxx.6*
// ==/UserScript==
var allAnchors, thisAnchor;
allAnchors = document.getElementsByTagName('a');
for (var i = 0; i < allAnchors.length; i++) {
  thisAnchor = allAnchors[i];
  if(thisAnchor.host == '127.0.0.1:8883')
  {
    thisAnchor.href = thisAnchor.protocol+ '//' +location.host+thisAnchor.pathname+thisAnchor.search;
  }
}
Just make sure to change the IP to yours in the include section.

Orsino
Find all posts by this user
02-15-2009, 06:41 PM
Post: #51
RE: Web browser access to the PCH from your PC
doesnt work for me i cant contact my pch Sad
Find all posts by this user
02-16-2009, 10:07 AM
Post: #52
RE: Web browser access to the PCH from your PC
Is there an part of the web interface that shows whats currently playing?
Find all posts by this user
02-16-2009, 02:27 PM
Post: #53
RE: Web browser access to the PCH from your PC
Two questions:

1. Is it possible to start playing a video file automatically? I mean, after the PCH is powered on, and without human intervention.

2. Is it possible to control (play, stop) the PCH from a remote computer?

My situation: PCH <---- very long way to walk ---> My computer

The PCH is connected to a LCD TV (HDMI) and I would like to control it from my computer. No, I would NOT like to see the video in my browser, I want to control the video play-back on the PCH. Both the PCH and the TV is several kilometers away from my computer. Of course, the PCH is on the same network as my computer. It is also equipped with a hard drive.

I can telnet into it. When a video is playing it seems to be a mono process running. Killing that mono process is not a good idea.

-Bob-
Find all posts by this user
02-16-2009, 03:00 PM
Post: #54
RE: Web browser access to the PCH from your PC
(02-16-2009 02:27 PM)Bobcat Wrote:  2. Is it possible to control (play, stop) the PCH from a remote computer?

My situation: PCH <---- very long way to walk ---> My computer

http://www.networkedmediatank.com/showth...?tid=14107
http://www.networkedmediatank.com/showth...?tid=13967

Oversight: Jukebox | FeedTime: Automatic nzbs
Find all posts by this user
02-16-2009, 03:06 PM
Post: #55
RE: Web browser access to the PCH from your PC
(02-16-2009 03:00 PM)ydrol Wrote:  http://www.networkedmediatank.com/showth...?tid=14107
http://www.networkedmediatank.com/showth...?tid=13967

Thanks!
Find all posts by this user
02-27-2009, 04:50 AM (This post was last modified: 02-27-2009 04:50 AM by Under.)
Post: #56
RE: Web browser access to the PCH from your PC
Here's my stab at a GreaseMonkey script. I gave up when I realized the start.cgi and images are accessible from the network. I definitely don't know to access files on the HD/Flash from an accessible CGI. (e.g. file:///opt/sybhttpd/localhost.images/hd/menu.png) Maybe some unknown start.cgi usage would do the trick.

Either way, I wrote enough to handle the hrefs and form actions. But the images and anything that calls the start.cgi won't work. It's quite frustrating. I'm not interested in hosting a web app just to access my PCH's configuration from a browser so I don't have to enter the configuration with my slow ass remote!

Code:
// Popcorn Hour Web Access user script
// version 0.1
// 2009-02-27
// Released under the GPL license
// http://www.gnu.org/copyleft/gpl.html
//
// --------------------------------------------------------------------
//
// This script simply rewrites all PCH IP/hostname hrefs and form
// actions to strip off the 127.0.0.1 destination. The result is
// everything is relative to the original site, such as the PCH you're
// connecting to. Ideally PCH would either fix this silly URL and ACTION
// referencing garbage or do something meaningful about preventing
// network access.
//
// ==UserScript==
// @name          PCH Web Access
// @description   PCH Web Access script
// @include       http://192.168.1.101:8883/*
// ==/UserScript==
var or = "http://127.0.0.1:8883";
for(i=0; i<document.links.length; i++) {
    var ol = document.links[i].href;
    var nl = ol.replace(or, "");
    document.links[i].href = nl;
};
var oa = document.forms[0].action;
var na = oa.replace(or, "");
document.forms[0].action = na;
Find all posts by this user
02-27-2009, 05:57 AM
Post: #57
RE: Web browser access to the PCH from your PC
to access internal documents on the NMT you need to adjust the hosts file(C:\windows\system32\drivers\etc\hosts) and add the following line, replacing ip-of-pch

Code:
ip-of-pch  localhost.images localhost.drives

you can then use http://localhost.images/foo/bar to access /opt/sybhttpd/localhost.images/foo/bar
and http://localhost.drives/foo/bar to access /opt/sybhttpd/localhost.drives/foo/bar

journey4712
Find all posts by this user
03-03-2009, 08:45 PM
Post: #58
RE: Web browser access to the PCH from your PC
There was a post in response to Dc11ab's post a few weeks ago with a way to look at a html file located on the pch on your PC...but as it would appear on the PCH.

Does anyone happen to know how to do that, or where that post was? It was in reference to dc11ab asking how to take a screen shot on the PCH.

it was something like file:///stream=http://something something something
Find all posts by this user
03-03-2009, 09:05 PM (This post was last modified: 03-03-2009 09:10 PM by lordy.)
Post: #59
RE: Web browser access to the PCH from your PC
@journey

Yeah, Hosts file is the easiest way I've seen so far Smile If you have more than one NMT you can know up a BAT file to flip the host file I guess.

Still need the javascript etc to tweak the files, which explains excals post, now that I've read the thread properly! [I'll be quiet now]


@excal

That will probably be similar to how people load php[(excerpt kincked from BLMJ Smile ]
http://127.0.0.1:8088/stream/file=/opt/sybhttpd/localhost.drives/HARD_DISK/Video/BLMJ/movies.php
Change the Ip and the filename. It will require myihome though.


[edit - some stuff deleted - It was a bit wrong Smile ]

Oversight: Jukebox | FeedTime: Automatic nzbs
Find all posts by this user
03-04-2009, 12:02 AM
Post: #60
RE: Web browser access to the PCH from your PC
thanks, i'll try it out when i get home...

and, ydrol never would have made that mistake Tongue
Find all posts by this user
Thread Closed 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  FTP external USB access HELP 0 1,133 Today 12:25 AM
Last Post:

Forum Jump: