RemoteHams.com
February 04, 2012, 11:18:06 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: RCFweb (Hosting Custom Web Pages)  (Read 662 times)
kg6ypi
Administrator
Remote Master
*****
Offline Offline

Posts: 131



« on: August 15, 2010, 11:20:34 AM »

Here is an example to learn from when developing your own custom remote webpage.

Revision 2 (Sept 6th 2010)
RCFweb Example
RCFweb Download

You need to setup a web server, a very small one is AnalogX SimpleServerWWW
http://www.analogx.com/contents/download/Network/sswww/Freeware.htm

Eventually RCForb will have a very basic HTTP server built-in to host a custom webpage itself.

Installing / Configuring
Just extract the zip contents to any folder on your web server. Then try loading the index.html file in your web browser. By default, its configured to connect to KG6YPI's radio. To make it connect to your radio, change the JavaScript variables (located in the <head> then <script>  tags) to reflect your setup.

Code:
<script type="text/javascript">
//<![CDATA[

    // Unreal Audio Variables
    var aDomain = "kg6ypi.ath.cx";
    var aPort = "5119";
    var aAlias = "ft857";
    var aUrl = "mms://"+aDomain+":"+aPort+"/"+aAlias;

    // Radio.swf variables
    var rDomain = "kg6ypi.ath.cx";
    var rPort = "4530";
    var rUnicode = "true";

    // These variables are here for demonstration
    // It is not a good idea to put this data on a live webpage
    // As anyone will be able to get your username and password
    // These are used to "auto-login" users on the RemoteHams.com system
    var rUser = ""; // RemoteHams.com Username
    var rPass = ""; // RemoteHams.com Password (in MD5)

    // SimpleRadio.swf variables
    var srTarget = "top";
    var srUrl = "http://beta.remotehams.com/orb.html?id=1224";

//]]>
    </script>

After you have it connecting to your radio, feel free to edit the html file however you want it to display your remote! Don't forget to put your "Custom ORB Page URL" into the publishing tab in RCForb.
« Last Edit: August 10, 2011, 03:44:34 PM by kg6ypi » Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.775 seconds with 19 queries.