Author Topic: Overview, all files in WeatherFlash?  (Read 4986 times)

0 Members and 1 Guest are viewing this topic.

Offline perbuch

  • Member
  • *
  • Posts: 2
Overview, all files in WeatherFlash?
« on: July 25, 2009, 07:44:10 AM »
Certainly, something went wrong March 13th 2009 but I am uncertain what. My whole site was moved months before but WeatherFlash worked perfectly after I received a re-newed key. The site has changed its layout but I have tried to keep the file and folder structure of WeatherFlash.
Anyway, it will not leave March 13th (yes, at was a Friday!) and I received a reply from the support that their solution / answer to my issue will not be available the first coming weeks due to holiday and work load.
My WF solution can be found here -> http://vejrviser.dk/vlflash.htm

Here is the structure and please tell me if you need to see the content of a specific file:






I have checked the setup in VWS and it looks fine.

Kind regards
Per
« Last Edit: July 25, 2009, 07:49:21 AM by perbuch »

Offline jay_hoehn

  • WxElement panel
  • Forecaster
  • *****
  • Posts: 656
    • Jay's Woodcrafts
Re: Overview, all files in WeatherFlash?
« Reply #1 on: July 25, 2009, 11:20:19 PM »
Per,

Your directory structure looks good.

Check in VWS if Internet>WeatherFlash dialog box has the local file checked.  Make sure they are being updated locally.  If they are, then your settings to upload the ASP/PHP data may have gotten messed up.  You might try entering the settings again to see if that helps.  If that doesn't help it may be something on the server side.  If your host can't fix it for weeks, you might want to think about getting another host.  That kind of service is unacceptable.

Jay
Davis Vantage Pro2 Plus
VVP
Weather Display


Offline perbuch

  • Member
  • *
  • Posts: 2
Re: Overview, all files in WeatherFlash?
« Reply #2 on: July 26, 2009, 02:44:07 AM »
Per,

Your directory structure looks good.

Check in VWS if Internet>WeatherFlash dialog box has the local file checked.  Make sure they are being updated locally.  If they are, then your settings to upload the ASP/PHP data may have gotten messed up.  You might try entering the settings again to see if that helps.  If that doesn't help it may be something on the server side.  If your host can't fix it for weeks, you might want to think about getting another host.  That kind of service is unacceptable.

Jay


Great Jay!

As my first setup was performed long ago I have lost the documentation how to do it. Can you provide another step by step instruction?

By the way, here is an image of my VWS setup:


Kind reg.

Per
« Last Edit: July 26, 2009, 03:36:51 AM by perbuch »

Offline jay_hoehn

  • WxElement panel
  • Forecaster
  • *****
  • Posts: 656
    • Jay's Woodcrafts
Re: Overview, all files in WeatherFlash?
« Reply #3 on: July 26, 2009, 11:19:02 AM »
Per,

It just occurred to me that your host may have upgraded to PHP5 from PHP4.  Here is a PHP page that may help.  Just place this page in your WeatherFlash directory on the server and call it as a web page from the internet.  It will show if your permissions are set correctly and what version of PHP is being used.  If it is PHP5 then do a search of this forum and find my post that has the changes that need to be made.  Thanks to Ken True for these.  Hope this helps.

Jay
Code: [Select]
<?php
// wflash-filetest.php script by Ken True - webmaster@saratoga-weather.org
//
// Version 1.00 - 03-Nov-2007 - Initial release
//
$Version "wflash-filetest.php Version 1.00 - 03-Nov-2007";
//
 
error_reporting(E_ALL);  // uncomment to turn on full error reporting
//
// script available at http://saratoga-weather.org/scripts.php
//  
// you may copy/modify/use this script as you see fit,
// no warranty is expressed or implied.
// ------------settings -- no need to change these -----------
// this file should be installed in the same directory as WeatherFlash
//
//
$testName 'wflash-test.txt';    
$wflashDir './';  // directory for the the WeatherFlash files
//                         will assume Data/ and Config/ directories below this dir.
//-------------end of settings-------------------------------

if (isset($_REQUEST['sce']) && strtolower($_REQUEST['sce']) == 'view' ) {
//--self downloader --
   
$filenameReal __FILE__;
   
$download_size filesize($filenameReal);
   
header('Pragma: public');
   
header('Cache-Control: private');
   
header('Cache-Control: no-cache, must-revalidate');
   
header("Content-type: text/plain");
   
header("Accept-Ranges: bytes");
   
header("Content-Length: $download_size");
   
header('Connection: close');
   
readfile($filenameReal);
   exit;
}
error_reporting(E_ALL);  
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>PHP file writing test for WeatherFlash</title>
<style type="text/css">
body {
  background-color:#FFFFFF;
  font-family:Verdana, Arial, Helvetica, sans-serif;
  font-size: 12px;
}
</style>
</head>
<h1>Test for WeatherFlash file writing by PHP</h1>
<?php
   
echo "<h2>PHP Version " phpversion() ."</h2>";
   
$errorcnt 0;
   
   echo 
"<h2>Now testing for write access to Data directory</h2>\n";
   
$errorcnt += try_file($wflashDir 'Data/' $testName);

   echo 
"<h2>Now testing for write access to Config directory</h2>\n";
   
$errorcnt += try_file($wflashDir 'Config/' $testName);
   

   if (
$errorcnt 0) {
     echo 
"<h2>Test concluded .. errors found.  See 'Warning:' messages for details.</h2>\n";
   } else {
     echo 
"<h2>Test concluded .. no errors found. WeatherFlash should work correctly based on permissions.</h2>\n";
   }


function 
try_file$filename) {
$NOWgmt time();
    
$NOWdate gmdate("D, d M Y H:i:s"$NOWgmt);
echo "<p>Using $filename as test file.</p>\n";
echo "<p>Now date='$NOWdate'</p>\n";
$errors 0;
$fp fopen($filename,"w");
if ($fp) {
  $rc fwrite($fp,$NOWdate);
  if ($rc <> strlen($NOWdate)) {
    echo "<p>unable to write $filename: rc=$rc</p>\n";
$errors++;
  }
  fclose($fp);
} else {
  echo "<p>Unable to open $filename for write.</p>\n";
  $errors++;
}
if(file_exists($filename)) {
  
$contents implode('',file($filename));

echo "<p>File says='$contents'</p>\n";
if ($contents == $NOWdate) {
   echo "<p>Write and read-back successful.. contents identical.</p>\n";
} else {
   echo "<p>Read-back unsuccessful. contents different.</p>\n";
$errors++;
}
if(unlink($filename)) {
    echo "<p>Test file $filename deleted.</p>\n";
}
} else {
  echo "<p>File $filename not found.</p>\n";
  $errors++;
}

  return(
$errors);
}

?>


<body>
</body>
</html>
Davis Vantage Pro2 Plus
VVP
Weather Display


Offline Meteorologica

  • Contributor
  • ***
  • Posts: 106
Re: Overview, all files in WeatherFlash?
« Reply #4 on: July 26, 2009, 02:11:51 PM »
And now everyone knows your UserID and the name of the submit script that you used. Good security, not!  :roll:

Offline TorH

  • Forecaster
  • *****
  • Posts: 405
    • Været på Fauske
Re: Overview, all files in WeatherFlash?
« Reply #5 on: July 26, 2009, 03:19:36 PM »
It seems like it's OK now. Nothing wrong with the date or time there now  :-)
Davis Vantage PRO2 wireless
VWS V14.00 p103, WD ver.10.37N, WL 5.8.2, VVP.
WeatherFlash
DW1549
WeatherUnderground: INORDLAN14
Location: Fauske, Northern Norway. N 67°15'41", E 15°24'41"
http://bjornli.net