AirNav Systems Forum

AirNav RadarBox and RadarBox24.com => AirNav RadarBox and RadarBox24.com Discussion => Topic started by: dwilder on September 10, 2008, 06:16:10 AM

Title: FTP again...
Post by: dwilder on September 10, 2008, 06:16:10 AM
Hi!

I'm a new RB user who is also having trouble with the FTP function in RB2009.

Like previous users, i'm trying to upload my screen shot to a directory on a remote website.
Unfortunately, after the first Radarboxscreenshot.gif has been uploaded, all further files are marked with the date/time and given a .tmp extension.

The original radarboxscreenshot.gif is never updated.

I don't have the option of changing FTP servers (as I don't host it) and am wondering if there is any form of work around?

Regards

Dan
Title: Re: FTP again...
Post by: AirNav Support on September 10, 2008, 07:48:57 AM
The issue is that your webserver does not not allow overwiting of files.

Contact your webhost and see whether it can be enabled.
Title: Re: FTP again...
Post by: GlynH on September 10, 2008, 07:50:19 AM
Hi Dan,

Speaking from experience I would guess the issue lies with the remote ftp server.

That's not to say AirNav couldn't program in a 'fix' at some time to circumvent issues such as this - I am not sure exactly what command/syntax they use but I would guess the standard 'put' command is utilised - maybe there is an alternative command that could be used?

Is it hosted by your ISP?

Do you have the option to contact them, explain the situation and ask for a work-round?

It could just be a permission change or something that is needed.

If you saw my previous post(s) on the same subject you will see I had exactly the same problem although I was hosting mine locally.

Changing from the Microsoft IIS FTP Service cured the issue for me.

It is worth perservering with though;

http://www.glyn.me/radarbox

I've moved the map over Heathrow for the moment for a friend of mine to keep an eye on although I am based @80 miles away from there - what you see is what I 'see' live on my RadarBox...

Kind regards,
-=Glyn=-
Title: Re: FTP again...
Post by: dwilder on September 10, 2008, 08:39:32 AM
I have made a work around for the problem which isn't particularly satisfactory, but works.

I am now ftping the screen shot to my local network storage (using RB2009) and then using another FTP program to upload to my website!

I have spoken to my hosting company, GoDaddy.com, and they say that the problem lies with the software and not them! I kind of agree because I haven't had this problem before when uploading .gif files on a regular basis - I run a weather station that updates every few seconds.

Is there anyway of extracting the radarboxscreenshot.gif from my local hard drive (ie the PC that RB is running on)? This would cut out the middle process and make the whole thing much more acceptable!

Thanks for your help.

Regards

Dan
Title: Re: FTP again...
Post by: tarbat on September 10, 2008, 08:48:12 AM
Is there anyway of extracting the radarboxscreenshot.gif from my local hard drive (ie the PC that RB is running on)?

I think you'll find it at ...........\AirNav RadarBox 2009\Screen Shots\RadarBoxScreenShot.gif

I managed to get it working finally by creating a new folder on my providers FTP service, and FTP'ing to that folder.  The default folder provided by my provider did not allow overwriting of files.

http://uk.geocities.com/[email protected]/radarbox.htm
http://uk.geocities.com/[email protected]/radarbox/RadarBoxScreenShot.gif
Title: Re: FTP again...
Post by: dwilder on September 10, 2008, 08:54:52 AM
Which is interesting as I don't have that directory :-( !

Title: Re: FTP again...
Post by: tarbat on September 10, 2008, 09:05:35 AM
Sorry, the full path is probably C:\Program Files\AirNav Systems\AirNav RadarBox 2009\Screen Shots

If you used the standard installation path.
Title: Re: FTP again...
Post by: dwilder on September 10, 2008, 10:33:47 AM
Oh dear. For some reason I don't have that directory...

Any suggestion?

Dan
Title: Re: FTP again...
Post by: tarbat on September 10, 2008, 10:36:52 AM
Are you running Vista?  If so, it will be in the Virtual Store - C:\Users\xxxxxxxx\AppData\Local\VirtualStore\Program Files\AirNav Systems\AirNav RadarBox 2009\Screen Shots - where xxxxxxxx is you Windows account name.
Title: Re: FTP again...
Post by: dwilder on September 10, 2008, 11:03:40 AM
Thanks Tarbat.

Found it!

Unfortunately, it appears that unless you have an active (and correct) FTP connection, the screen shot isn't updated anyway. Hence back to plan A of uploading to a NAS and then FTPing...
Title: Re: FTP again...
Post by: Allocator on September 10, 2008, 11:30:32 AM
Thanks Tarbat.

Found it!

Unfortunately, it appears that unless you have an active (and correct) FTP connection, the screen shot isn't updated anyway. Hence back to plan A of uploading to a NAS and then FTPing...


The screen shot on your web page won't update by itself, even if the picture is being uploaded correctly.  You either have to manually refresh the page that the screen shot is displayed on, or you have to put code in the web page html to refresh the page automatically.
Title: Re: FTP again...
Post by: tarbat on September 10, 2008, 11:33:18 AM
Unfortunately, it appears that unless you have an active (and correct) FTP connection, the screen shot isn't updated anyway.

Yes, I've just discovered that myself.  And I'm now having problems myself with getting access to the web page for my FTP.  Seems that my provider doesn't like files being updated every minute :(

Can anyone suggest a free web hosting service that works with ANRB FTP uploading.
Title: Re: FTP again...
Post by: dwilder on September 10, 2008, 11:34:54 AM
What I mean is that the screen shot on my local hard drive isn't updated if the FTP connection isn't active.
Title: Re: FTP again...
Post by: tarbat on January 10, 2009, 04:03:44 PM
Yes, I've just discovered that myself.  And I'm now having problems myself with getting access to the web page for my FTP.  Seems that my provider doesn't like files being updated every minute :(

Can anyone suggest a free web hosting service that works with ANRB FTP uploading.

Sorry to bump this thread, but I'm still struggling to get ftp working on my ISP's web hosting service at geocities.com.  It gets the first screenshot upload okay, but subsequent uploads don't always work, and then I get constant "508 Unused" error messages on the page - http://uk.geocities.com/[email protected]/anrb/RadarBoxScreenShot.gif

So, can anyone recommend a web hosting service that works with Radarbox ftp uploads?
Title: Re: FTP again...
Post by: Allocator on January 10, 2009, 04:32:03 PM
tarbat,

I use Demon Web hosting and that works fine.

This is really where the picture is being uploaded to is it?

http://uk.geocities.com/[email protected]/anrb/RadarBoxScreenShot.gif

Can you post a screenshot/link of the successfully uploaded picture, is it exactly the same link as above?

Can you browse the directory on the server by using an FTP program?  This might give you a better idea of what id going on.
Title: Re: FTP again...
Post by: abrad41 on January 10, 2009, 04:38:05 PM
Hi

I use my ISP - which is madasafish, but I made a seperate folder for the uploaded image to be sent to and with the help of Allocator added the lines for refreshing. I think the big thing here is the seperate folder on the server - hope this helps. My RB is not on at the moment, as I am at work - but if anyone wants to look its www.absbta2006.co.uk and click on the link

Cheers
Title: Re: FTP again...
Post by: tarbat on January 10, 2009, 04:46:28 PM
The image uploads to http://uk.geocities.com/[email protected]/anrb/RadarBoxScreenShot.gif

And the (very simple) webpage is at http://uk.geocities.com/[email protected]/anrb/radarbox.htm

Everything is in the folder called "anrb".

Looking at ftp of the site shows as per the attached image (ignore the time difference).  All the uploading seems to work just fine, but reading the web-page then gets these 508-unknown errors.  Some people on another forum think there's some sort of upload limit, so I started looking for another free web host.  But then occasionally the web page works fine.

Maybe Airnav could host a few "key" users uploads on their own servers!!
Title: Re: FTP again...
Post by: Allocator on January 10, 2009, 04:50:26 PM
tarbat,

I can't see either the page or the image at either of those addresses - I just get the 508 error.
Title: Re: FTP again...
Post by: tarbat on January 10, 2009, 04:52:57 PM
Yep, that's the error I get.  But keep doing F5, and eventually you get the page.

So, can anyone suggest a free web hosting service that will work with Radabox ftp upload.

BTW, this is the HTML I'm using:
<html>
<head>
<title>Radarbox at Portmahomack</title>
<meta http-equiv="refresh" content="60" />
</head>
<body bgcolor="#FFFFFF" text="#000000">
<iframe width="565" height="601" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://uk.geocities.com/[email protected]/anrb/RadarBoxScreenShot.gif"></iframe>
</body>
</html>
Title: Re: FTP again...
Post by: abrad41 on January 10, 2009, 04:57:12 PM
tarbat

Could you try and make a seperate fold - just have your screenshot in one folder and the link to that folder within your web page.

Title: Re: FTP again...
Post by: tarbat on January 10, 2009, 05:08:41 PM
Andy, I've tried that, but I still seem to get the same errors.

Image is now at http://uk.geocities.com/[email protected]/anrb/shot/RadarBoxScreenShot.gif

Webpage is still at http://uk.geocities.com/[email protected]/anrb/radarbox.htm

Any other ideas please.  Could the refresh of 60s conflict in some way with the 60s upload of the new image?
Title: Re: FTP again...
Post by: Allocator on January 10, 2009, 05:14:33 PM
It could well be some sort of upload limiter that prevents uploads if they occur too often?
Title: Re: FTP again...
Post by: tarbat on January 10, 2009, 05:18:45 PM
That's what I think.  I've turned off the ftp upload for now, and I'll see if access to the web-page becomes available.

So, back to my original question.  Has anyone found a free web hosting service that can handle Radarbox ftp uploads okay?
Title: Re: FTP again...
Post by: Allocator on January 10, 2009, 05:31:38 PM
The only free site I've played with is Google Sites, but that doesn't allow FTP upload, although I'd be interested in a free site that does as well.

http://sites.google.com/site/radarboxsite/
Title: Re: FTP again...
Post by: dwilder on January 10, 2009, 06:52:38 PM
I still can't get the second and subsequent FTP uploads to replace the first screenshot.gif - they are stored as date stamped tmp files.

I was told by support that the work around was four weeks away months ago. I emailed them again recently (around Christmas time) and never got a reply.

I have been told that it may be my service provider (which I doubt as i'm using a commercial web hosting company called GoDaddy.com) and not a free ISP hosting account.

I have never come across this problem using any other FTP software and therefore firmly believe that the problem lies with RB2009 and am VERY disappointed with the lack of response / support from AirNav - especially as this was the main reason for buying the hardware to start with.
Title: Re: FTP again...
Post by: Allocator on January 10, 2009, 07:17:32 PM
It's not a RadarBox problem, otherwise it would happen to all of us - it's a provider problem.
Title: Re: FTP again...
Post by: tarbat on January 10, 2009, 07:20:30 PM
dwilder, does your ISP have an upload frequency limit on their web-hosting service?  I start getting lots of tmp files as well when I hit the upload frequency limit.  I suspect it's an ISP limits problem.

I'm reluctant to activate IIS on my PC, so I'm still hunting for a web hosting service that can cope with uploads every 60 seconds.
Title: Re: FTP again...
Post by: dwilder on January 11, 2009, 12:54:00 AM
No, my provider does not have an upload frequency limit - I run a weather service and webcam to the site that uploads data every couple of seconds, 24/7.

I therefore firmly believe that the problem lies with RB and how it handles the unlocking / release of access of files once they have been uploaded.

AirNav support does acknowledge that there is a problem in their software. They just haven't fixed it as agreed.

Daniel
Title: Re: FTP again...
Post by: AirNav Support on January 11, 2009, 01:01:30 AM
"They just haven't fixed it as agreed."

Not sure what you mean by that, what did we agree with you? :)
Title: Re: FTP again...
Post by: dwilder on January 11, 2009, 01:06:06 AM
Email from AirNav support on 17/09/08:

Hi,

Thanks for your email.

The customer who had the issue on the forum was using the Microsoft IIS FTP Service which isn't the best (but its free hence used by some companies). Once he had changed to better brand (some are also free) the issue did not occur.

We have noted it as an issue though the update to the code will be at least a 3-4 weeks away.

Title: Re: FTP again...
Post by: abrad41 on January 11, 2009, 09:08:39 AM
dwilder

This is not a RB problem, Allocator, myself and others have no problems what so ever.  Take a look at http://www.absbta2006.co.uk/airnav_radarbox.htm

Cheers
Title: Re: FTP again...
Post by: tarbat on January 11, 2009, 09:18:20 AM
dwilder, don't know if this is relevant to your problem, but have you tried this (from another forum):
Open your your site definition, switch to advanced view and select "Remote Info" from the list on the left. Place a tick in "Use Passive FTP".
Title: Re: FTP again...
Post by: Allocator on January 11, 2009, 09:27:00 AM
No, my provider does not have an upload frequency limit - I run a weather service and webcam to the site that uploads data every couple of seconds, 24/7.

I therefore firmly believe that the problem lies with RB and how it handles the unlocking / release of access of files once they have been uploaded.

AirNav support does acknowledge that there is a problem in their software. They just haven't fixed it as agreed.

Daniel

Another test here - FTP to the directory where RB is uploading the file.  Manually upload the screen shot which is stored in the /Screen Shots directory.

FTP upload the same picture again and see what happens to the files. Do you get a tmp or a renamed file?

This is all I get - note the -rw-r--r-- in the attributes column.  These are the read/write etc permissions for this directory - maybe this is the problem.  You can chance these for your hosting site if they allow.  I can't remember what they stand for, but I'm sure somebody here will know.
Title: Re: FTP again...
Post by: tarbat on January 11, 2009, 09:51:25 AM
Can someone test to see if this is now working at http://www.tarbat.gofreeserve.com/radarbox.htm

I've got it so the page refreshes every 60 seconds.  But how do I force the page to pickup the new image as well.  The only way I've found to force the new image to appear is using CTRL+F5.
Title: Re: FTP again...
Post by: tarbat on January 11, 2009, 10:10:18 AM
BTW, permissions are READ, WRITE, EXECUTE for OWNER, GROUP, and EVERYONE, in that order.
Title: Re: FTP again...
Post by: nortonbeak on January 11, 2009, 10:30:26 AM
Can someone test to see if this is now working at http://www.tarbat.gofreeserve.com/radarbox.htm

I've got it so the page refreshes every 60 seconds.  But how do I force the page to pickup the new image as well.  The only way I've found to force the new image to appear is using CTRL+F5.

Yes I see it working and refreshing.
Title: Re: FTP again...
Post by: tarbat on January 11, 2009, 10:33:11 AM
But how do I force the page to pickup the new image as well.  The only way I've found to force the new image to appear is using CTRL+F5.

Okay, a combination of techniques forced the image to reload.
1. Use <meta http-equiv="expires" content="0">
2. Add a query string onto the end of the image name -
src="http://www.tarbat.gofreeserve.com/shot/RadarBoxScreenShot.gif?A"

So, for anyone looking for a free web hosting service that works with Radarbox, get a free site from http://gofreeserve.com/
Title: Re: FTP again...
Post by: Allocator on January 11, 2009, 12:20:10 PM
tarbat,

I'm not sure that your page is auto refreshing.  I use this to refresh the page every 60 seconds.

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

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

Thanks for the free hosting tip, I'll take a look :-)
Title: Re: FTP again...
Post by: tarbat on January 11, 2009, 12:39:44 PM
Allocator, it seems to refresh in my browser okay.  Can you check, using this address - http://www.tarbat.gofreeserve.com/radarbox.htm

This is what I've got in my page:
<html>
<head>
<title>Radarbox at Portmahomack</title>
<meta http-equiv="refresh" content="60; URL=http://www.tarbat.gofreeserve.com/radarbox.htm">
<meta http-equiv="expires" content="0">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<iframe width="565" height="601" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://www.tarbat.gofreeserve.com/shot/RadarBoxScreenShot.gif?A"></iframe>
</body>
</html>
Title: Re: FTP again...
Post by: besty on January 11, 2009, 12:42:58 PM
Just refreshed by itself on my pc, can't help with the other stuff though. Above my head by miles.

Stuart
Title: Re: FTP again...
Post by: Allocator on January 11, 2009, 01:00:20 PM
OK, I'll have another look tarbat.

Here's my Gofreeserve site :-)

http://www.allocator.gofreeserve.com/index.htm
Title: Re: FTP again...
Post by: Allocator on January 11, 2009, 01:14:35 PM
Allocator, it seems to refresh in my browser okay.  Can you check, using this address - http://www.tarbat.gofreeserve.com/radarbox.htm

This is what I've got in my page:
<html>
<head>
<title>Radarbox at Portmahomack</title>
<meta http-equiv="refresh" content="60; URL=http://www.tarbat.gofreeserve.com/radarbox.htm">
<meta http-equiv="expires" content="0">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<iframe width="565" height="601" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://www.tarbat.gofreeserve.com/shot/RadarBoxScreenShot.gif?A"></iframe>
</body>
</html>


No, I'm not getting a refresh in FireFox 3.0.5

I can do a manual refresh and the new screen shot comes up OK.

This is my html header information:


<!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.allocator.gofreeserve.com/index.htm">
<BODY BGCOLOR="66ccff">
</head>

Edit: You code looks pretty much like mine - so it should work - I'll try again.
Title: Re: FTP again...
Post by: Allocator on January 11, 2009, 01:21:42 PM
tarbat, it is refreshing, it's just not loading the new picture for some odd reason - a manual refresh does produce a new picture though.

Edit:  Hmmmm...... mine is just the same - the page is refreshing, but the screen shot isn't, unless I do a manual refresh.  Maybe it's a Firefox thing.  Off to lunch and I'll think about this more later.
Title: Re: FTP again...
Post by: tarbat on January 11, 2009, 02:22:40 PM
Try putting ?A at the end of the image name - eg
src="http://www.tarbat.gofreeserve.com/shot/RadarBoxScreenShot.gif?A"


That's meant to force a refresh of the image as well.
Title: Re: FTP again...
Post by: Allocator on January 11, 2009, 02:27:35 PM
But your page is still showing as 14:01 UTC right now (14:26) but I saw it update from 13:41 to 14:01 at 14:08.  In the meantime, even though the page has refreshed, no more updated screen shots.
Title: Re: FTP again...
Post by: tarbat on January 11, 2009, 02:30:59 PM
Yes, seems to refresh the image okay in Internet Explorer, but not in Firefox.

Searching around, this appears to be a common problem.  There's Javascript around to refersh images, I'll try those later.
Title: Re: FTP again...
Post by: Allocator on January 11, 2009, 02:34:57 PM
Your shot just updated to 14:24 at 14:37

Maybe there's something going on in the background here with the free host?  I works a treat using the Demon ISP.
Title: Re: FTP again...
Post by: tarbat on January 11, 2009, 02:44:46 PM
Seems to be a Firefox problem.  Seems to be refreshing okay in IE.  Allocator, can you try my page in IE.
Title: Re: FTP again...
Post by: tarbat on January 11, 2009, 03:11:17 PM
This Javascript seems to force an image refresh.

<html>
<head>
<title>Radarbox at Portmahomack</title>
<meta http-equiv="refresh" content="60; URL=http://www.tarbat.gofreeserve.com/radarbox.htm">
<meta http-equiv="expires" content="0">
<script type="text/JavaScript">
<!--
function timedRefresh(timeoutPeriod) {
   setTimeout("location.reload(true);",timeoutPeriod);
}
//   -->
</script>
</head>
<body onload="JavaScript:timedRefresh(60000);">
<iframe width="565" height="601" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://www.tarbat.gofreeserve.com/shot/RadarBoxScreenShot.gif?xx"></iframe>
</body>
</html>
Title: Re: FTP again...
Post by: Allocator on January 11, 2009, 03:27:10 PM
I've saved that and I'll try it later - thanks tarbat.

Going to be up in your part of the world next week - got a briefing to do at EGQS.  Lets hope I don't get caught in the snow like last time!  Looks like it's raining now though :-)
Title: Re: FTP again...
Post by: tarbat on January 11, 2009, 04:45:10 PM
Allocator, hope the weather's better than it is now (http://www.wunderground.com/history/station/03062) - gales force winds and rain :(

I've been reading various forums about image refreshes, and this seems to be a Firefox problem.  Using the following HTML, I can get the image to refresh every 60 seconds in Internet Explorer, but not in Firefox.  http://www.tarbat.gofreeserve.com/radarbox.htm

Has anyone found how to force Firefox to not use the cached image, and instead download the new image?

<html>
<head>
<title>Radarbox at Portmahomack</title>
<META HTTP-EQUIV="refresh" content="60">
<META HTTP-EQUIV="expires" content="0">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-store">
<META HTTP-EQUIV="Pragma-directive" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Directive" CONTENT="no-cache">
<body>
<iframe width="565" height="601" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://www.tarbat.gofreeserve.com/shot/RadarBoxScreenShot.gif?<%=(new java.util.Date()).getTime()%>"></iframe>
</body>
</html>
Title: Re: FTP again...
Post by: abrad41 on January 12, 2009, 12:27:29 PM
tarbat

Just taken a look at your page In IE and everything seems to be ok - refreshing ok.
Title: Re: FTP again...
Post by: tarbat on January 12, 2009, 12:54:50 PM
Thanks Andy.  Yes, it just seems to be a Firefox problem.  So, does anyone know how to force Firefox to NOT use the cached image on the user's PC?

http://www.tarbat.gofreeserve.com/radarbox.htm
Title: Re: FTP again...
Post by: Fenris on January 12, 2009, 01:05:05 PM
Thanks Andy.  Yes, it just seems to be a Firefox problem.  So, does anyone know how to force Firefox to NOT use the cached image on the user's PC?

http://www.tarbat.gofreeserve.com/radarbox.htm

Might this help you?

http://www.webmasterworld.com/forum91/3026.htm
Title: Re: FTP again...
Post by: tarbat on January 12, 2009, 05:19:02 PM
I've found that the following refreshed the image correctly in Firefox as well IE.
<html>
<head>
<title>Radarbox</title>
<meta http-equiv="refresh" content="60">
<meta http-equiv="expires" content="0">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-store">
<meta http-equiv="Pragma-directive" content="no-cache">
<meta http-equiv="Cache-Directive" content="no-cache">
<body bgcolor="#000000">
<h3 align="center"><font color="#ff8000">Radarbox at Portmahomack</font></h3>
<p align="center"><font color="#ff8000"></font></p>
<p align="center"><font color="#ff8000"><img height="601" hspace="0" src="http://www.tarbat.gofreeserve.com/shot/RadarBoxScreenShot.gif?<%=(new java.util.Date()).getTime()%>" width=565 align=center border=2></font></p><font color="#ff8000" >
<hr>
<p align="center"> </font><font color="#ff8000" size="4">This is a 5-minute delayed feed from my Airnav Radarbox</font></p>
</body>
</html>
Title: Re: FTP again...
Post by: viking9 on January 13, 2009, 10:36:36 AM
Hi tarbat,

I'd just like to say thanks for the code above. I've now got my screen displaying on my website successfully.

Tom