[mythtv-users] mythweb/remote

Robin Hill myth at robinhill.me.uk
Tue Dec 2 22:27:43 UTC 2008


On Tue Dec 02, 2008 at 05:07:38PM -0500, jansenj wrote:

> > http://www.mythtv.org/wiki/index.php/Telnet_socket#Examples
> 
> Thanks, I'll look into these.
> 
> I was still hoping someone could shed some light as to why I would be
> reaching "is not responding" in the php when attempting to access a
> standalone frontend from a mythweb session being served up by a
> seperate backend.  Thats my fundamental problem.
> 
> What would the following be doing?
> 
>            var r = new Ajax.Request('<?php echo root ?>remote/',
>                                     {
>                                        parameters:
> 'ping='+encodeURIComponent(host),
>                                      asynchronous: false
>                                     });
> 
The "<?php echo root ?>" will return the root of the mythweb site (e.g.
http://backend/mythweb/).  It's then appending "remote/" to this URL.
The request parameters are then "ping=frontend", so the complete URL
will be something like:
    http://backend/mythweb/remote/?ping=frontend

On my combined frontend/backend, calling this will give the current
status (e.g. Playback Video ......), whereas using an invalid frontend
hostname will give a "0".  The frontend name used here is (I think)
whatever's shown in the Frontends list on the remote screen.

HTH,
    Robin
-- 
     ___        
    ( ' }     |       Robin Hill        <myth at robinhill.me.uk>  |
   / / )      | Little Jim says ....                            |
  // !!       |      "He fallen in de water !!"                 |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-users/attachments/20081202/6b71a301/attachment.pgp 


More information about the mythtv-users mailing list