AirNav RadarBox
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 


Author Topic: How do I use the FTP upload feature?  (Read 2443 times)

0 Members and 1 Guest are viewing this topic.

Allocator

  • RadarBox24.com Beta Testers
  • Hero Member
  • *
  • Posts: 3568
How do I use the FTP upload feature?
« on: September 17, 2008, 02:24:43 PM »
OK, here is the next installment explaining how to show your FTP screen shot on a web page.

If you followed the steps in the first post of this thread, then you will have the the FTP picture being uploaded to your web domain by RadarBox every 60 seconds.  In my example, the picture, named RadarBoxScreenShot.gif is being uploaded to the diirectory on the server:

http://www.ruyton.demon.co.uk/radarbox/

The screen shot gif always has the same name and the new uploaded gif simply overwrites the old gif. This makes it much easier to display the screen shot on a web page as the name isn't changing for every upload.  If you are getting errors where the gif cannot be uploaded or does not overwrite the existing gif, then this will be a restriction of your server, probably imposed to prevent you inadvertantly overwriting files.  This is not a RadarBox error, so you will need to see how your ISP deals with such events.  You can try changing server permissions, or using a different directory on the server.

The page I want to display the picture on is a new page I've created with the web address:

http://www.ruyton.demon.co.uk/html/airnav_radarbox.html

So, there are 2 things that we need to do.

1. Display RadarBoxScreenShot.gif that is in the server /radarbox/ directory on the web page http://www.ruyton.demon.co.uk/html/airnav_radarbox.html

2. Automatically refresh the web page every 60 seconds so that the new screen shot is displayed.

First, create a blank html web page with a suitable name.  In my case this is airnav_radarbox.html.  How you do this depends on what web authoring software you use.  I use Netobjects Fusion 10 which is a WYSIWYG package.  If you code in raw html, you will already have a good understanding of what we are trying to do here.

You now need to create an inline frame (or iFrame) on the blank page to display the screen shot. If you were to do this manually, this is what the html code would look like.  All iFrame does is to allow you to display one web page within another page. If you use a WYSIWYG package, then this is what you want to see when you look at the source code after adding the iFrame:

<iframe id="InlineFrame1" name="InlineFrame1" src="http://www.ruyton.demon.co.uk/radarbox/RadarBoxScreenShot.gif" width="756" height="860" frameborder="0"></iframe>

The iFrame is created with a width of 756 pixels and a height of 860 pixels.  The object displayed within the iFrame is http://www.ruyton.demon.co.uk/radarbox/RadarBoxScreenShot.gif which as we know, is the FTP uploaded gif in the server /radarbox/ directory

Next, we want the page to refresh automatically, otherwise you will not see the screen shots update every 60 seconds.  You do this by adding a simple line of code in the header of the webpage:

<meta http-equiv="refresh" content="60; URL=http://www.ruyton.demon.co.uk/html/airnav_radarbox.html">

This is telling the page to load http://www.ruyton.demon.co.uk/html/airnav_radarbox.html in 60 seconds - that is to load the same page you are already looking in 60 seconds - then it just keeps on going, reloading every 60 seconds.

Your raw html will then look something like this:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>AirNav RadarBox</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta name="Generator" content="NetObjects Fusion 10 for Windows">
<meta http-equiv="refresh" content="60; URL=http://www.ruyton.demon.co.uk/html/airnav_radarbox.html">
etc
etc
etc
<iframe id="InlineFrame1" name="InlineFrame1" src="http://www.ruyton.demon.co.uk/radarbox/RadarBoxScreenShot.gif" width="756" height="860" frameborder="0"></iframe>
etc
etc

That's all for now.  This guide does assume a certain degree of web authoring knowledge and I'm sure this is not the only way this can be done, but it should give you enough information to get your own FTP upload showing.

Here is my finished example again - note that this page will refresh every 60 seconds, but is not always "live".

http://www.ruyton.demon.co.uk/html/airnav_radarbox.html

Allocator





« Last Edit: September 17, 2008, 02:28:07 PM by Allocator »

Allocator

  • RadarBox24.com Beta Testers
  • Hero Member
  • *
  • Posts: 3568
Re: How do I use the FTP upload feature?
« Reply #1 on: April 12, 2009, 07:54:53 AM »
I've got my web domain back now that the RAFARS site is being hosted again by Force9, so I need to start again with this.  All I've done so far, is to set up the RadarBox FTP :-)

http://www.ruyton.demon.co.uk/

I've gone back to using colours again rather than my all "green" view.

Green = level
Red = descending
Blue = climbing
« Last Edit: April 12, 2009, 07:57:03 AM by Allocator »