[19. April 2013] A-400 Advanced Network Setup now available | [11 Jan. 2013] Customize your A-400 Home Screen

Firmware: A-400 [13 May 2013] | C-300 [30 Nov. 2012] | A-300 [30 Nov. 2012] | C-200 [21 Jan. 2013] | A-200/A-210 [10 Aug. 2012]

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 
Remote control via web
04-18-2008, 02:22 PM
Post: #1
Remote control via web
This is a just a test for a web based remote control.
Create a file called webcontrol.php in /mnt/syb8634/web and go to http://YourPCHaddress:8088/webremote.php

I hope this will be useful or just interesting for someone...

Note: I have some problem with the "enter" command... probably i didn't find the correct "key".

- - - - - - - - cut here - - - - - - - -

Code:
<html>
<head>
<title>Web Remote Control</title>
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<style>
.text1 { font-weight: bold; font-size: 14px; color: #B1D3F6; }
</style>
</head>
<body marginheight="0" marginwidth="0" leftmargin="0" topmargin="0" border="0" background="/sys/nmt_8634/PC1024/player/bg_pc.jpg"><table border="0" cellspacing="0" cellpadding="0">
<SCRIPT LANGUAGE="javascript">
function PgReload (BT)
{
document.wrform.irkey.value=BT.value;
document.wrform.submit();
}
</SCRIPT>

<font class="text1">

<?php

$IrFile = '/tmp/irkey';
$IrKey = $_POST['irkey'];

if ($IrKey)
{

if (!$handle = fopen($IrFile, 'a'))
  { echo "Cannot open file [$IrFile]";
   } else
     if (!fwrite($handle, $IrKey ))
     {
      echo "Cannot write to file [$IrFile]";
     } else
     { echo "Command $IrKey sent!";
       fclose($handle);
     }

}


?>

<form name="wrform" method="post" action=webremote.php>
<input type="hidden" name="irkey" value="0">
<table>
<tr>
<td></td>
<td><input type="button" value="168" onclick="PgReload(this)"></td>
<td></td>
</tr>

<tr>
<td><input type="button" value="170" onclick="PgReload(this)"></td>
<td align="center"><input type="button" value="13" onclick="PgReload(this)"></td>
<td><input type="button" value="171" onclick="PgReload(this)"></td>
</tr>

<tr>
<td></td>
<td><input type="button" value="169" onclick="PgReload(this)"></td>
<td></td>
</tr>

</table>
</form>

</font>
</body>
</html>

- - - - - - - - cut here - - - - - - - -

Some other useful codes...
    Play ..... 211
    Stop ..... 212
    Pause ..... 211 ?
    Prev ..... 219
    Next ..... 220
    Rev ..... 213
    Fwd ..... 214
    Power ..... 210
Find all posts by this user
[+] 1 user says Thank You to draio for this post
Thread Closed 


Messages In This Thread
Remote control via web - draio - 04-18-2008 02:22 PM
Re: Remote control via web - danjb - 05-11-2008, 06:21 AM
Howto? - JaixBly - 05-16-2008, 12:21 PM
[] - wesleyelder - 05-20-2008, 09:00 PM
[] - erlis - 05-22-2008, 11:05 AM
[] - gintsgints - 05-22-2008, 05:00 PM
[] - sebestenyb - 05-24-2008, 11:03 AM
[] - gintsgints - 05-25-2008, 07:26 AM
RE: Remote control via web - stefkoch - 06-01-2009, 07:35 PM

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Pure Web Remote Control or Listening Audio with switched off TV pompon 165 67,391 03-27-2013 08:05 PM
Last Post: luciano63
  NMT remote iPhone native app. racermonoid 390 126,843 03-06-2013 08:01 PM
Last Post: mindnever
  MediatankController 1.2 for iPhone - browse and control your NMT from your phone Niels Leenheer 424 275,509 11-27-2012 03:28 PM
Last Post: jedebe
  MediatankController 1.0 for Adobe AIR - browse and control your NMT from your PC Niels Leenheer 232 166,880 05-13-2012 10:48 PM
Last Post: robertazimmerman
  Remote shutdown Cadish 11 4,076 11-03-2011 01:13 PM
Last Post: alamakota
  Can't watch media on Web Inteface kalma 17 4,314 08-23-2011 07:38 AM
Last Post: gkreidl
  X-100 Remote Codes Banjobeni 0 1,338 08-04-2011 10:13 PM
Last Post: Banjobeni
  web server manifest support harrykausl 0 1,213 07-20-2011 09:35 AM
Last Post: harrykausl
  [Apps] Qt4 WebKit - Web Browser - A110/100 - Updated 28th June vaidyasr 168 63,620 07-05-2011 10:31 AM
Last Post: gkreidl
  is there an android remote control for the A110? jadeddog 2 2,750 06-04-2011 11:27 PM
Last Post: dw_bobby

Forum Jump: