Author Topic: Steelseries Gauges with VWS  (Read 18911 times)

0 Members and 1 Guest are viewing this topic.

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 6767
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Steelseries Gauges with VWS
« Reply #100 on: April 02, 2013, 09:54:35 PM »
The gauges.js file has two settings:
Code: [Select]
            stationTimeout    : 3,                      //period of no data change before we declare the station offline, in minutes (default 3)
            pageUpdateLimit   : 0,                     //period after which the page stops automatically updating, in minutes (default 20),
so you've set it to never timeout (pageUpdateLimit) as you say.  The stationTimeout at 3 minutes may be getting you instead, especially if VWS stops uploading wflash.txt/wflash2.txt for over 3 minutes.

I suggest you watch http://www.scannorthcounty.net/weather1/steelseriesVWSjson.php (the raw JSON data from wflash.txt/wflash2.txt) and see how often the timestamp changes.  Sometimes, it was updating every 10 seconds.. other times, it was over a minute between updates.

Are you using VWS FTP to update the wflash.txt/wflash2.txt or the active page update method? .. the latter is generally faster and more reliable (in my experience).

Best regards,
Ken
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Boltek-PCI/NexStorm, microSferics ToA, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge/hub
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline Johnmac

  • Contributor
  • ***
  • Posts: 127
    • Westminster Massachusetts Weather
Re: Steelseries Gauges with VWS
« Reply #101 on: April 03, 2013, 01:36:13 PM »
Ken,

Thanks for the quick response.

I have set my station time out to 6 minutes (Originally set at 3). There seems to be an improvement. Page update is set to "0". It still drops out after a period of time, but it is better.

I am a little confused as to the uploading of the weather flash txt files. See attached file.

The right hand box, which is not checked has the following address - "http://www.scannorthcounty.net/weather/wflash/scripts/wxf-submit.php". Should I check this box instead of the lower left one and should the address be - "http://www.scannorthcounty.net/weather1/wxf-submit.php"

Thanks for the fantastic support you provide on this forum.

John
John
Westminster, MA USA

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 6767
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Steelseries Gauges with VWS
« Reply #102 on: April 03, 2013, 03:56:00 PM »
Hi John,

I'm not sure how you've constructed your website, but both of the two URLs cited above yield a 404-Not Found response.

In the VWS-plugin there is a sample set of WeatherFlash data/scripts (minus the WeatherFlash control) that allow you to upload using the Active Server Page method.  The expected structure on the site is:

./wflash/
  index.htm
  site.txt
  wxf-filetest.php
./wflash/Data/
  wflash.txt
  wflash2.txt
./wflash/Config/
 Units.txt
./wflash/scripts/
  wxf-submit.php

So I don't know where you'd unpacked and uploaded that structure on your site (given the 404's above)

Once that structure+files is on your site, then yes, untick the Server File Activate, and tick the Active Server Page Activate after setting the Active Server Page File Location to the exact URL on your site for the wflash/scripts/wxf-submit.php script.

Best regards,
Ken
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Boltek-PCI/NexStorm, microSferics ToA, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge/hub
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline Johnmac

  • Contributor
  • ***
  • Posts: 127
    • Westminster Massachusetts Weather
Re: Steelseries Gauges with VWS
« Reply #103 on: April 04, 2013, 05:48:32 PM »
Ken

OK, I have uploaded those directories/files to my site and checked the activate box and un-checked the box to the left. Noting updates now. Is there more that I need to do other than the directory structure you posted.

Thanks,

John
John
Westminster, MA USA

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 6767
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Steelseries Gauges with VWS
« Reply #104 on: April 04, 2013, 06:06:32 PM »
What is the URL where the wxf-submit.php is located?

Looking at http://www.scannorthcounty.net/weather/wflash/wflash-filetest.php shows some files missing.
Quote
Test for WeatherFlash file writing by PHP
PHP Version 5.2.17
Parsing site.txt configuration

Array
(
    [ConfigFolder] => Config
    [ConfigfileSuffix] => txt
    [DataFolder] => Data
    [ScriptsFolder] => scripts
    [ScriptsSuffix] => php
    [KeyfileSuffix] => txt
    [SiteURL] => http://scannorthcounty.net/weather/wflash/
    [Town] => Ashburnham
)

WeatherFlash files and permissions

0644 : -rw-r--r-- : ./site.txt
0644 : -rw-r--r-- : ./index.htm
----   ----------   ./Config/  -- Warning: required WeatherFlash file not found.
----   ----------   ./Config/Units.txt  -- Warning: required WeatherFlash file not found.
----   ----------   ./Data/  -- Warning: required WeatherFlash file not found.
----   ----------   ./Data/wflash.txt  -- Warning: required WeatherFlash file not found.
----   ----------   ./Data/wflash2.txt  -- Warning: required WeatherFlash file not found.
----   ----------   ./scripts/  -- Warning: required WeatherFlash file not found.
----   ----------   ./scripts/wxf-submit.php  -- Warning: required WeatherFlash file not found.

Now testing for write access to Data directory

Using ./Data/wflash-test.txt as test file.

Now date='Thu, 04 Apr 2013 22:07:24'

Unable to open ./Data/wflash-test.txt for write.

File ./Data/wflash-test.txt not found.
Now testing for write access to Config directory

Using ./Config/wflash-test.txt as test file.

Now date='Thu, 04 Apr 2013 22:07:24'

Unable to open ./Config/wflash-test.txt for write.

File ./Config/wflash-test.txt not found.
Test concluded .. 11 errors found. See 'Warning:' messages for details.

Test script by Saratoga-Weather.org.
wflash-filetest.php Version 1.01 - 04-Nov-2007 available here.
« Last Edit: April 04, 2013, 06:09:16 PM by saratogaWX »
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Boltek-PCI/NexStorm, microSferics ToA, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge/hub
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline Johnmac

  • Contributor
  • ***
  • Posts: 127
    • Westminster Massachusetts Weather
Re: Steelseries Gauges with VWS
« Reply #105 on: April 04, 2013, 07:44:00 PM »
the url is - http://www.scannorthcounty.net/weather1/wflash/wflash-filetest.php

weather1 rather than weather for the sub directory.

Also, my hosting site is doing maintenance, the site may not load or be very slow. It should be back to normal shortly.

John
John
Westminster, MA USA

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 6767
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Steelseries Gauges with VWS
« Reply #106 on: April 04, 2013, 07:56:41 PM »
You're getting closer.. still not all the files/directories are on your site

Quote
WeatherFlash files and permissions

0644 : -rw-r--r-- : ./site.txt
0644 : -rw-r--r-- : ./index.htm
----   ----------   ./Config/  -- Warning: required WeatherFlash file not found.
----   ----------   ./Config/Units.txt  -- Warning: required WeatherFlash file not found.
----   ----------   ./Data/  -- Warning: required WeatherFlash file not found.
----   ----------   ./Data/wflash.txt  -- Warning: required WeatherFlash file not found.
----   ----------   ./Data/wflash2.txt  -- Warning: required WeatherFlash file not found.
0755 : drwxr-xr-x : ./scripts/
0644 : -rw-r--r-- : ./scripts/wxf-submit.php

Now testing for write access to Data directory

Using ./Data/wflash-test.txt as test file.

Now date='Thu, 04 Apr 2013 23:50:20'

Unable to open ./Data/wflash-test.txt for write.

File ./Data/wflash-test.txt not found.

There should be no errata cited in http://www.scannorthcounty.net/weather1/wflash/wflash-filetest.php

When http://www.scannorthcounty.net/weather1/wflash/Data/wflash.txt and
http://www.scannorthcounty.net/weather1/wflash/Data/wflash2.txt  have content
based on using
http://www.scannorthcounty.net/weather1/wflash/scripts/wxf-submit.php as the Active Server URL

then the uploads should be successful using Active Server upload.

You may then have to change your Settings-weather.php for the relative file address of the Data directory and also your ajaxVWSwx.js to point to /weather1/wflash/ so it can find the files too.

Best regards,
Ken
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Boltek-PCI/NexStorm, microSferics ToA, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge/hub
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline Johnmac

  • Contributor
  • ***
  • Posts: 127
    • Westminster Massachusetts Weather
Re: Steelseries Gauges with VWS
« Reply #107 on: April 04, 2013, 10:29:50 PM »
Ken,

I checked all my directories and have all those files uploaded with the exception ./data/wflash-test.txt. That file did not appear to be in the zipped file I downloaded from your site. I double checked the directories and files and they all seem to be there. Is there somewhere that I can download the wflash-test.text file? Once i have that file will it see the others that the test says are missing or do I have some other issue??

I have attached screenshots of my wflash diectories.

Thanks again for the help.

John
« Last Edit: April 04, 2013, 10:31:28 PM by Johnmac »
John
Westminster, MA USA

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 6767
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Steelseries Gauges with VWS
« Reply #108 on: April 04, 2013, 10:40:47 PM »
I see the issue...  The names of the directories are not quite correct.

it's 'Config' not 'config' and 'Data' not 'data' .. *nix servers care deeply about the case of the letters in the name

What is expected is:

wflash/Config
wflash/Data
wflash/scripts

with the respective contents.

Then the http://www.scannorthcounty.net/weather1/wflash/wflash-filetest.php should show no errors after the rename of Data and Config directories is done.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Boltek-PCI/NexStorm, microSferics ToA, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge/hub
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline Johnmac

  • Contributor
  • ***
  • Posts: 127
    • Westminster Massachusetts Weather
Re: Steelseries Gauges with VWS
« Reply #109 on: April 05, 2013, 09:42:52 AM »
The saga continues -

I have made the directory corrections wflash/data to wflash/Data and wflash/config to wflash/Config. Ran http://www.scannorthcounty.net/weather1/wflash/wflash-filetest.php and the test comes up with no errors.

Double checked my address in Active Server Page in VWS, but still does not seem to be updating to the website.

This is what I have for the url on the active server page in VWS - http://www.scannorthcounty/weather1/wflash/scripts/wxf-submit.php

Do I need to make changes to the "site.txt" file? I see the url and town are listed for your site.

Edit -

and do I need to make changes in the wxf-submit.php file for the correct directory. This is what I have. See notes next to fopen section.

<?php
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
header("Expires: Mon,26 JUL 1997 05:00:00 GMT");

if ($_GET["I"]=="DEMO" ){
   if ($_GET["F"] != ""){
      $fp=fopen("../Data/wflash.txt", "w");    Should this be weather1/wflash/Data
      $TempStr=$_GET["F"];
      $TempStr2=str_replace(" ","+",$TempStr);
      fwrite($fp, "F=".$TempStr2);
   }else{
      $fp=fopen("../Data/wflash2.txt", "w");   Should this be weather1/wflash/Data
      $TempStr=$_GET["S"];
      $TempStr2=str_replace(" ","+",$TempStr);   
      fwrite($fp, "S=".$TempStr2);
   }
   fclose($fp);
}
?>
« Last Edit: April 05, 2013, 09:49:13 AM by Johnmac »
John
Westminster, MA USA

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 6767
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Steelseries Gauges with VWS
« Reply #110 on: April 05, 2013, 09:56:25 AM »
You don't have to make changes to the site.txt file -- my url/town aren't used by the scripts.

I think there's a typo in the Active Server Page url you cited.. it should be

http://www.scannorthcounty.net/weather1/wflash/scripts/wxf-submit.php

The User ID  in the VWS screen should be

DEMO

and no, you don't need to change the wxf-submit.php script .. the relative file addresses should work fine as is.

You may need to change permissions on Data/wflash.txt and Data/wflash2.txt to 666 to allow them to be written by PHP.

Best regards,
Ken
« Last Edit: April 05, 2013, 09:58:41 AM by saratogaWX »
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Boltek-PCI/NexStorm, microSferics ToA, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge/hub
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline Johnmac

  • Contributor
  • ***
  • Posts: 127
    • Westminster Massachusetts Weather
Re: Steelseries Gauges with VWS
« Reply #111 on: April 06, 2013, 10:22:27 AM »
Still not having any luck with this.

I had the correct url in "Active Page Server", it was just a typo in my post.

Changed the wflash and wflash2 text files to 0666 for permissions.

There must be something I am missing!

John
John
Westminster, MA USA

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 6767
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Steelseries Gauges with VWS
« Reply #112 on: April 06, 2013, 12:57:11 PM »
Using the URL http://www.scannorthcounty.net/weather1/wflash/scripts/wxf-submit.php manually, I did manage to store a test string in the wflash.txt and wflash2.txt files, so the script is working.

Either:
1) the URL you have in VWS is not correct or
2) VWS has stopped doing the upload (which happens to me from time to time).

I suggest you copy/paste the URL above into VWS, tick the Active Server checkbox and save it again.

Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Boltek-PCI/NexStorm, microSferics ToA, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge/hub
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline Johnmac

  • Contributor
  • ***
  • Posts: 127
    • Westminster Massachusetts Weather
Re: Steelseries Gauges with VWS
« Reply #113 on: April 06, 2013, 01:54:41 PM »
VWS does not allow you to copy and paste in the weatherflash popup window.

I have checked and double checked the url and it is correct.

This may or not be a problem, I send my data to my website via fling and do not use the ftp function in VWS. How does the "Active Server" function gain access to my server without a user name and password? I have the ftp login info programmed in to VWS, just not using it at this time.

John
John
Westminster, MA USA

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 6767
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Steelseries Gauges with VWS
« Reply #114 on: April 06, 2013, 02:21:58 PM »
Did you include a ? at the end of the URL so it reads as:

http://www.scannorthcounty.net/weather1/wflash/scripts/wxf-submit.php?

in the dialog box?  The question mark is needed to delimit the URL from the arguments that will be provided by VWS.

The Active Server mode uses HTTP access to your site (just like a browser does), but includes the data as arguments on the URL in GET-mode, one for the wflash.txt and a different one for wflash2.txt.  Both include the I=DEMO string which is checked by the script to be present before storing data in the file(s). 
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Boltek-PCI/NexStorm, microSferics ToA, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge/hub
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline Johnmac

  • Contributor
  • ***
  • Posts: 127
    • Westminster Massachusetts Weather
Re: Steelseries Gauges with VWS
« Reply #115 on: April 06, 2013, 04:48:31 PM »
Ken,

It is amazing what trouble a "?" will cause. No I did not have the question mark, it has been added and now if I check the files, they are in fact updating.

But??

I am having a problem with the viewing the updated data. I am not using the Saratoga Templates so I believe I only need to change the directory info in "steelseriesVWSjson.php" which is located in the weather1 directory, which is the same directory as the "gauges-ss-basic2.htm" file. I updated the "steelseriesVWSjson.php" $wflash directory to be ./wflash/Data. Should that be different?

I have attached a copy of my steelseriesVWSjson.php and gauges.js as .txt files files. You can look back a few messages to see a copies of my directory structure if you need additional info.

Ken, thanks again for your patience, I really appreciate the assistance.

John
John
Westminster, MA USA

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 6767
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Steelseries Gauges with VWS
« Reply #116 on: April 06, 2013, 05:04:11 PM »
Change steelseriesVWSjson.php from
Code: [Select]
$wflashDir = './wflash/Data';  // directory for the the wflash.txt and wflash2.txt files
to
Code: [Select]
$wflashDir = './wflash/Data/';  // directory for the the wflash.txt and wflash2.txt files
and it should work ok to find the (now updating) wflash.txt/wflash2.txt files for the Steel Series gauges.

After the change you should see real data when viewing http://www.scannorthcounty.net/weather1/steelseriesVWSjson.php

Best regards,
Ken
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Boltek-PCI/NexStorm, microSferics ToA, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge/hub
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline Johnmac

  • Contributor
  • ***
  • Posts: 127
    • Westminster Massachusetts Weather
Re: Steelseries Gauges with VWS
« Reply #117 on: April 06, 2013, 08:37:56 PM »
Fantastic, That did it  :grin:

Everything is working fine and it appears to stay active.

Thanks for all the assistance.

John
John
Westminster, MA USA

Offline Piero

  • Senior Member
  • **
  • Posts: 64
  • Valenza - Italy
    • Luna Weather Station - Valenza
Re: Steelseries Gauges with VWS
« Reply #118 on: April 30, 2013, 06:28:47 PM »
Little while ago, during an heavy rain, the rain rate measured by VWS was over 40 mm/h. However, the rain gauge has stayed locked to 10. It seems that the autoscale of this gauge does not work, someone else has noticed this problem?

Piero
Davis ISS and Weather Envoy
Weatherlink IP
Virtual Weather Station
Cumulus
Weatherlink
www.lunavalenza.altervista.org

Offline mcrossley

  • Forecaster
  • *****
  • Posts: 344
    • Wilmslow Astro
Re: Steelseries Gauges with VWS
« Reply #119 on: May 30, 2013, 12:03:35 PM »
First post!

The VWS rain rate issue has been identified, it will be fixed in version 2.3.3 of the gauges.

The cause is the gauges are using the max rain rate today figure to determine what the max scale value should be, however VWS is not supplying this value, it is supply 'some other' lower value. The code now uses the larger of the current value and max rain rate today value.
Mark

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 6767
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Steelseries Gauges with VWS
« Reply #120 on: May 30, 2013, 07:14:51 PM »
Welcome, Mark -- nice to see you here too :)

Best regards,
Ken
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Boltek-PCI/NexStorm, microSferics ToA, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge/hub
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline W3DRM

  • Forecaster
  • *****
  • Posts: 3314
    • Carson Valley Weather
Re: Steelseries Gauges with VWS
« Reply #121 on: January 23, 2014, 11:49:45 PM »
Hi Ken,

Well, Donnie come lately is going to give the Steel Gauges for VWS a try in the very near future. I have been reading things over and think I have found a small typo in the steelseriesVWSjson.php file. On line 11 it currently reads "$Version = "steelseriesVWSjson.php Version 1.03 - 24-Jan-2012";". Shouldn't that really be "$Version = "steelseriesVWSjson.php Version 1.03 - 24-Jan-2013";"?

I know it is a nit but thought you might like to know about it anyways.

Best regards!
Don - W3DRM - Minden, Nevada --- Blitzortung ID: 808 --- FlightRadar24 ID: F-KRNO2
Davis Wireless VP2, WD 10.37s80,
StartWatch, VirtualVP, VPLive, , Win10 Pro
--- Logitech HD Pro C920 webcam
--- RIPE Atlas Probe - 32849

Offline mcrossley

  • Forecaster
  • *****
  • Posts: 344
    • Wilmslow Astro
Re: Steelseries Gauges with VWS
« Reply #122 on: January 24, 2014, 02:32:36 PM »
So it does  :oops:, the next copy I have (that was going in the next release) has the following...
Code: [Select]
// Version 1.04 - 09-Dec-2013 - added cloud base for v2.5 gauge support
//
$Version = "steelseriesVWSjson.php Version 1.04 - 09-Dec-2013";
Mark

Offline weathercam

  • Greetings from Bruges
  • Member
  • *
  • Posts: 31
    • Weathercam
Re: Steelseries Gauges with VWS
« Reply #123 on: April 27, 2014, 04:28:20 PM »
Hello,
I have the steel gauges on my website (http://www.weathercam.be/noflash.html)
Is there anyone who can tell me how to change te refresh rate of the gauges.
It is 60 sec now but I would like to change to 20 sec.
Who can help me with that ?
thanks
Marc (Belgium)
Marc Willems

Bruges (Belgium)

 

anything