@ianboag
http://meteo.laurentmey.fr/console/test.html
Moderator: daj
Code: Select all
// show now DIRECTION
if(wind_kts >= 0.5) {
// populate direction nix tubes
// 24 deg Mag offset
nowMag = val2 - 24;Code: Select all
// show now DIRECTION
if(wind_kts >= 0.5) {
// populate direction nix tubes
// get Mag offset
nowMag = val2 - mag_deviation;Yes my main weather site is non saratoga just basic htm with pinched scripts all through itbeteljuice wrote: I suddenly had a thought that there may be conflicts with (your) saratoga template, but I see you've managed to avoid that![]()
Why, thats what gives this script characterReally ALL the variables and the functions need renaming![]()
Done.The variable wind routine could be rewritten with the 'new' Cumulus realtime value, then it would show immediately instead of waiting several cycles.
Pinto created the original ajax routine, so leave his name but no link if no longer valid. (No further info in his profile here)
Done.A suggestion ... move your runway arrow out to 358 px left, then it will center up nicely when the wind's in the right direction.
DoneYou may also want to change the rose 'title' to MAGNETIC bearings (2014 21.1 E) - the month doesn't mean a lot the year is more important.
I am not very good at paintingand why not colour in the river
I agree and i want to see fish or a dolphin from time to time!!!! gee.............beteljuice wrote:and why not colour in the river
Colour added to the River and Race Course as instructedace2 wrote:I agree and i want to see fish or a dolphin from time to time!!!! gee.............beteljuice wrote:and why not colour in the river
Code: Select all
// varToggle(); // free run a 'blink' mechanism
// function to blink varWindAdvisory and gustAdvisory if populated (both elements MUST exist)
toggleOn = false;
checkToggle = document.getElementById('varWindAdvisory'); // get one of the advisories
function varToggle() {
// toggleOn = true;
if(checkToggle && checkToggle.style.display == 'none') { // definately got an 'off' state
set_ajax_uom("varWindAdvisory", true);
set_ajax_uom("gustAdvisory", false);
}else{ // might be 'on' or element not found ( set_ajax_uom() does own checks)
set_ajax_uom("varWindAdvisory", false);
set_ajax_uom("gustAdvisory", true);
}
// switchVarArrowTimer = setTimeout("varToggle()", 1000);
} // END function varToggle()
Code: Select all
// function to blink varWindAdvisory and gustAdvisory if populated (both elements MUST exist)
function varToggle() {
checkToggle = document.getElementById('varWindAdvisory'); // get one of the advisories
if(checkToggle && checkToggle.style.display == 'none') { // definately got an 'off' state
set_ajax_uom("varWindAdvisory", true);
set_ajax_uom("gustAdvisory", false);
}else{ // might be 'on' or element not found ( set_ajax_uom() does own checks)
set_ajax_uom("varWindAdvisory", false);
set_ajax_uom("gustAdvisory", true);
}
} // END function varToggle()