I'm no specialist. All my knowledge comes from the experts on the uk.sci.weather newsgroupdane wrote:But this is about weather stations, so who am I to argue with a weather specialist?
Steve
Moderator: daj
I'm no specialist. All my knowledge comes from the experts on the uk.sci.weather newsgroupdane wrote:But this is about weather stations, so who am I to argue with a weather specialist?
Code: Select all
<body onLoad="ajaxLoader('http://www.wheelocknet.net/cumulus/realtime.txt?' + new Date().getTime()); done=1;" onpageshow="if(!done){window.onLoad();}; done=0;">
Same logic applies to anything trying to grab realtime.txt, including this AJAX routine.. are you using the 'rename' option for ftp? Your realtime.txt file keeps disappearing briefly - this makes the data in your banner disappear. The rename option should stop this happening.
Code: Select all
var langBaroRising = 'Risen %s hPa since last data'; /* used for 'change' arrow alt/title
var langBaroFalling = 'Fallen %s hPa since last data';
Code: Select all
// hPa relative
Rset_ajax_obs("ajaxbaro_rel_hPa", pressure_rel_hPa.toFixed(1), " hPa");
// pressure Min / Max
Rset_ajax_obs("ajaxbaro_rel_hPa_Min", pressure_rel_hPa_Min.toFixed(1), " hPa");
Rset_ajax_obs("ajaxbaro_rel_hPa_Max", pressure_rel_hPa_Max.toFixed(1), " hPa");
// Barometric Trend (3 hour) - NB. cumulus gives an hourly average of last 3 hrs
Rset_ajax_obs("ajaxbarotrend_hPa_rate",pressure_rel_hPa_Trend_rate, " hPa");
Code: Select all
<html>
.......
<head>
.......
<!-- zambretti forecast - also used by beteljuices 'weather map', as required -->
<script type="text/javascript" src="zambretti/betel_cast.js"></script>
<!-- MAIN SCRIPT - getting nowhere without this -->
<script type="text/javascript" src="betel_cumulus_ajax.js"></script>
</head>
<body>
..............
Code: Select all
<div id="ajaxEND" style="display; none:"></div>
just before the closing </body> tag