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

0 Members and 1 Guest are viewing this topic.

Offline Piero

  • Senior Member
  • **
  • Posts: 64
  • Valenza - Italy
    • Luna Weather Station - Valenza
Steelseries Gauges with VWS
« on: January 20, 2013, 06:36:19 PM »
But nobody uses the steel series gauges with VWS? I'd like to use them, but I do not know where to start, I only find scripts for cumulus and WD. Can anyone help me? thanks
« Last Edit: January 23, 2013, 11:56:05 PM by saratogaWX »
Davis ISS and Weather Envoy
Weatherlink IP
Virtual Weather Station
Cumulus
Weatherlink
www.lunavalenza.altervista.org

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Steelseries Gauges
« Reply #1 on: January 20, 2013, 06:51:06 PM »
Hi Piero,

I'm working up a PHP script to take the WeatherFlash wflash.txt/wflash2.txt and create the JSON feed the SteelSeries gauges need.
I discovered that I already had a bunch of the code needed to do that so it shouldn't take too long.

I'll let you know when it's finished :)

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

Offline Piero

  • Senior Member
  • **
  • Posts: 64
  • Valenza - Italy
    • Luna Weather Station - Valenza
Re: Steelseries Gauges
« Reply #2 on: January 21, 2013, 03:04:30 AM »
Thanks a lot Ken,
You really are the number 1, I was sure I could rely on you!

I wait impatiently, good work and see you soon!  :grin: :grin:

Best regards

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

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Steelseries Gauges
« Reply #3 on: January 21, 2013, 06:40:50 PM »
I'm making progress, but still have more to finish.

See the sample page (work in progress) driven by VWS at
http://saratoga-weather.org/ssVWS/index.html

Will likely finish up with the script tomorrow :)

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

Offline Piero

  • Senior Member
  • **
  • Posts: 64
  • Valenza - Italy
    • Luna Weather Station - Valenza
Re: Steelseries Gauges
« Reply #4 on: January 21, 2013, 07:03:14 PM »
Beautiful. It really looks like a great job.
Do you think the page will update every 2-3 seconds hiding the line of forecasts and keeping only the green led (online) and the small window with the update time?
Davis ISS and Weather Envoy
Weatherlink IP
Virtual Weather Station
Cumulus
Weatherlink
www.lunavalenza.altervista.org

Offline Piero

  • Senior Member
  • **
  • Posts: 64
  • Valenza - Italy
    • Luna Weather Station - Valenza
Re: Steelseries Gauges
« Reply #5 on: January 21, 2013, 07:18:01 PM »
I also noticed that at some point the autoapdate is turned off and you need to manually refresh the page. You can prevent that from happening?
Thanks Ken, of course, if these questions imply complex jobs, do not consider them.
Good work!
Davis ISS and Weather Envoy
Weatherlink IP
Virtual Weather Station
Cumulus
Weatherlink
www.lunavalenza.altervista.org

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Steelseries Gauges
« Reply #6 on: January 21, 2013, 07:19:34 PM »
Hi Piero,

The update time can be adjusted .. I have it 'slow' for testing only.  The forecasts line can be hidden by editing the gauges .html page (and removing the     <canvas id="canvas_status" width="350" height="25"></canvas>&nbsp;&nbsp;
 code, I think).
Yes, the update timeout after 20 instances is adjustable in the gauges.js script itself.

I have to finish up some units conversions as WeatherFlash only emits in F,mph,inHg,in for temp,wind,baro,rain and the defaults are set when the gauges page first loads the data.

Like I said, tomorrow is likely the conclusion of the coding.

Regrettably, VWS doesn't does not provide many of the data needed for the full operation of the Steel Series Gauges.  I have used what is available in wflash/wflash2.txt files, but can't display something that is not in there, so no WindRose info is available (amongst other missing data values).

I'm using the 'Weather-Display' option on the script with only three changes in the gauges.js code needed.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline Piero

  • Senior Member
  • **
  • Posts: 64
  • Valenza - Italy
    • Luna Weather Station - Valenza
Re: Steelseries Gauges
« Reply #7 on: January 21, 2013, 07:43:34 PM »
So we will have to exclude the windrose? That would be a real shame, is one of the most beautiful gauges of the group!
But there are no numerical data in the wflash.txt files or is it a code problem?
Davis ISS and Weather Envoy
Weatherlink IP
Virtual Weather Station
Cumulus
Weatherlink
www.lunavalenza.altervista.org

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Steelseries Gauges
« Reply #8 on: January 21, 2013, 07:54:34 PM »
Hi Piero,

No windrose is possible with VWS given the data in wflash.txt/wflash2.txt.  VWS does not maintain a short historical record of wind speed/wind direction (Unlike Cumulus and Weather-Display).  Mere code can not materialize data for the wind rose since VWS does not maintain that data.  Sorry.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline Piero

  • Senior Member
  • **
  • Posts: 64
  • Valenza - Italy
    • Luna Weather Station - Valenza
Re: Steelseries Gauges
« Reply #9 on: January 22, 2013, 02:47:02 AM »
Ken,
if I understand correctly the problem is the LCD window "average" of the windrose, right?
I seem to have read in the configuration files that it is possible to hide the single gauge's LCD window: can you leave the "average" to zero and hide its window? Or could you simply leave the value to zero? Perhaps it would be unprofessional, but we could always hide the windrose with its settings, what do you think?
Davis ISS and Weather Envoy
Weatherlink IP
Virtual Weather Station
Cumulus
Weatherlink
www.lunavalenza.altervista.org

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Steelseries Gauges
« Reply #10 on: January 22, 2013, 04:59:10 PM »
Hi Piero,

The windrose needs pairs of speed,direction (8 or 16 pairs) to be displayed .. VWS does not collect or offer that data in either the WeatherFlash files or the basic ^v....^ tags, so it can't be displayed at all with VWS.

I've finished up the V1.00 of the script (attached) -- put it in the home directory (above your weather flash files), and configure the internal settings
Code: [Select]
// settings ------------------------------
$wflashDir = './wflash/Data/';  // directory for the the wflash.txt and wflash2.txt files
//                              // relative to directory location of this script
//                              // do NOT use absolute address (/ start) or http://... addressing
$uomTemp = '&deg;F';   // ='&deg;C', ='&deg;F'
$uomBaro = ' inHg';    // =' hPa', =' mb', =' inHg'
$uomWind = ' mph';     // =' km/h', =' kts', =' m/s', =' mph'
$uomRain = ' in';      // =' mm', =' in'
$WDdateMDY = true;     // =true  dates are 'month/day/year'
//                     // =false dates are 'day/month/year'
$ourTZ = "America/Los_Angeles";  //NOTE: this *MUST* be set correctly to
// translate UTC times to your LOCAL time for the displays.
$timeOnlyFormat = 'g:i a';          // USA format h:mm[am|pm\
//$timeOnlyFormat = 'H:i';          // Euro format hh:mm  (hh=00..23);

// ---------------------------------------
// end of settings -- no further changes to the source are needed below
for your locale/website configuration.

Then change the gauges.js file to replace two items in the config= array:

            weatherProgram    : 1,                      //Set 0=Cumulus, 1=Weather Display

and

            realTimeURL_WD    : '/steelseriesVWSjson.php',//*** WD Users: Change this to your download

Note that I put the steelseriesVWSjson.php script in the home directory, so specifying it as '/steelseriesVWSjson.php' makes
the gauges.js script always find it to run.

Let me know how it works for you :)

Best regards,
Ken

Edit: V1.01 of the script attached.
« Last Edit: January 23, 2013, 12:34:49 AM by saratogaWX »
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline Piero

  • Senior Member
  • **
  • Posts: 64
  • Valenza - Italy
    • Luna Weather Station - Valenza
Re: Steelseries Gauges
« Reply #11 on: January 22, 2013, 05:11:55 PM »
Hi Ken,
well, it was to try to understand.
I've seen however in sample page that windrose works, I thought I had solved the problem!
Many thanks for your work, I'll try everything shortly and I'll tell you how it works!
See you soon

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

Offline Piero

  • Senior Member
  • **
  • Posts: 64
  • Valenza - Italy
    • Luna Weather Station - Valenza
Re: Steelseries Gauges
« Reply #12 on: January 22, 2013, 06:49:30 PM »
Ken,
I think I did everything correctly, but loading the page comes the message "HTTP request failed - Error: not found - Try again in X seconds ...".
http://www.lunavalenza.altervista.org/ssg/gauges-ss.htm

Sorry.. :?
Davis ISS and Weather Envoy
Weatherlink IP
Virtual Weather Station
Cumulus
Weatherlink
www.lunavalenza.altervista.org

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Steelseries Gauges
« Reply #13 on: January 22, 2013, 07:32:50 PM »
The message that pops up saying
Quote
[RADAR] You must specify at least 3 data points.
is for the radar windrose display -- that is what DOES NOT WORK with VWS, since VWS does not provide that data.

Turn off the Radar display in the page and you won't get that message anymore.  Change
Code: [Select]
            showRoseGauge     : true,                  //Show the optional Wind Rose gauge
in gauges.js to
Code: [Select]
            showRoseGauge     : false,                  //Show the optional Wind Rose gauge

The rest of it appears to be working correctly .. I don't see the "HTTP request failed" message.

Best regards,
Ken
« Last Edit: January 22, 2013, 07:35:17 PM by saratogaWX »
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline Piero

  • Senior Member
  • **
  • Posts: 64
  • Valenza - Italy
    • Luna Weather Station - Valenza
Re: Steelseries Gauges
« Reply #14 on: January 22, 2013, 08:06:56 PM »
I'm sorry Ken,
HTTP request failed was a path error.
Now it seems to work and the values ​​are correct.
But the bar forecast says the station is offline, I do not understand why.
And why the pressure gauge is totally red?
Davis ISS and Weather Envoy
Weatherlink IP
Virtual Weather Station
Cumulus
Weatherlink
www.lunavalenza.altervista.org

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Steelseries Gauges
« Reply #15 on: January 22, 2013, 09:38:10 PM »
I don't see what you mean by 'the bar forecast says the station is offline' -- the barometer graphic is showing data, and the mouseover popup shows the min/max for the day and the barometric pressure trend value.

The large red areas on the barometer graphic are caused by VWS not having the all-time barometer high and low pressures available.
Normally (with Cumulus or Weather-Display), the barometer red areas will extend up-to the all-time barometer low and from the all-time barometer high to the end of the scale -- with VWS, they will extend to the daily low and from the daily high to the end of the scale since I set the all-time data values to the same as the daily high/low values (as that was the only data available from VWS).

I can only work with what VWS provides...

Best regards,
Ken
« Last Edit: January 22, 2013, 09:40:53 PM by saratogaWX »
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Steelseries Gauges
« Reply #16 on: January 23, 2013, 12:33:12 AM »
Ahh.. figured out about your 'forecast says the station is offline' problem.

VWS in wflash[1] has a time of 'hh:mm:ss' usually.. when the hour is < 10, it contains '+h:mm:ss' and that
confuses the time computation.

I've updated the script to V1.01 with the fixes for that issue  (attached)

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

Offline Piero

  • Senior Member
  • **
  • Posts: 64
  • Valenza - Italy
    • Luna Weather Station - Valenza
Re: Steelseries Gauges
« Reply #17 on: January 23, 2013, 04:35:16 AM »
I'm sorry Ken,
I replaced the file but the error persists ..
I would like to report you a syntax error in the steelseriesVWSjson file:

// The output JSON file uses SteelSeries Weather-Display configuration
//   In the SteelSeries gauges.js file, set:
/*
      weatherProgram    : 1,                      //Set 0=Cumulus, 1=Weather Display
      realTimeURL_WD    : './steelseriesVWSjson.php',//*** Change this to your download location if the ccr file is not in the same folder as the gauges-ss.htm***
*/
//

Ok for the pressure gauge, it's very fine as it is, I just wanted to understand the functioning.
I was also allowed to cite you in the credits, it seemed at least a duty, see if it's ok or if I need to change something.

Thanks again and sorry if I can not help you more than that


Best regards,

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

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Steelseries Gauges
« Reply #18 on: January 23, 2013, 11:03:51 AM »
Hi Piero,

One more time .. V1.02 which should fix the no updates message .. I'd not put in processing for d/m/y dates :(
It should also fix the comments above.

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

Offline Piero

  • Senior Member
  • **
  • Posts: 64
  • Valenza - Italy
    • Luna Weather Station - Valenza
Re: Steelseries Gauges
« Reply #19 on: January 23, 2013, 11:44:05 AM »
Don't worry, Ken!
The page is very nice, all gauges work fine and here we are.  \:D/
Meanwhile I ask you a question, answer with easy as well: how do the graphics that should appear pointing the mouse on the instruments work? I do not understand what files the script looks in the folder that I must specify paths.

See you soon for the 1.02, I remain available for beta testing! good job

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

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Steelseries Gauges with VWS
« Reply #20 on: January 23, 2013, 12:56:48 PM »
Ahh.. the graphs.  The Weather-Display set uses JPGraphs that dynamically create the graphs from the WD clientraw*.txt files.

I've done a small change to graphs.js that uses the corresponding VWS images instead.

Try changing gauges.js from
Code: [Select]
               // config.tipImgs for Weather Display users with wxgraph
                config.tipImgs = [
                    ['temp+hum_24hr.php', 'indoor_temp_24hr.php'],      // Temperature: outdoor, indoor
                    // Temperature: dewpnt, apparent, windChill, HeatIndx, humidex
                    ['temp+dew+hum_1hr.php', 'temp+dew+hum_1hr.php', 'temp+dew+hum_1hr.php', 'temp+dew+hum_1hr.php', 'temp+dew+hum_1hr.php'],
                    'rain_24hr.php',                                    // Rainfall
                    'rain_1hr.php',                                     // Rainfall rate
                    ['humidity_1hr.php', 'humidity_7days.php'],         // Humidity: outdoor, indoor
                    'baro_24hr.php',                                    // Pressure
                    'windgust_1hr.php',                                 // Wind speed
                    'winddir_24hr.php',                                 // Wind direction
                    (config.showUvGauge ? 'uv_24hr.php' : null),        // UV graph if UV sensor is present | =null if no UV sensor
                    (config.showSolarGauge ? 'solar_24hr.php' : null),  // Solar rad graph if Solar sensor is present | Solar =null if no Solar sensor
                    (config.showRoseGauge ? 'winddir_24hr.php' : null)  // Wind direction if Radar is enabled | =null if Radar is disabled
                ];
to
Code: [Select]
// VWS Image configuration
                config.tipImgs = [
                    ['vws742.jpg', null],      // Temperature: outdoor, indoor
                    // Temperature: dewpnt, apparent, windChill, HeatIndx, humidex
                    ['vws742.jpg', 'vws742.jpg', 'vws754.jpg', 'vws742.jpg', 'vws742.jpg'],
                    'vws744.jpg',                                    // Rainfall
                    'vws859.jpg',                                     // Rainfall rate
                    ['vws740.jpg', null],         // Humidity: outdoor, indoor
                    'vws758.jpg',                                    // Pressure
                    'vws737.jpg',                                 // Wind speed
                    'vws736.jpg',                                 // Wind direction
                    (config.showUvGauge ? 'vws752.jpg' : null),        // UV graph if UV sensor is present | =null if no UV sensor
                    (config.showSolarGauge ? 'vws753.jpg' : null),  // Solar rad graph if Solar sensor is present | Solar =null if no Solar sensor
                    (config.showRoseGauge ? 'vws736.jpg' : null)  // Wind direction if Radar is enabled | =null if Radar is disabled
                ];
 and make sure to set
Code: [Select]
           imgPathURL        : './',             //*** Change this to the relative path for to where VWS uploads the vwsNNN.jpg images ...

My test page at http://saratoga-weather.org/ssVWS/index.html now shows this.

Best regards,
Ken
« Last Edit: January 23, 2013, 11:57:01 PM by saratogaWX »
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline Piero

  • Senior Member
  • **
  • Posts: 64
  • Valenza - Italy
    • Luna Weather Station - Valenza
Re: Steelseries Gauges with VWS
« Reply #21 on: January 24, 2013, 08:25:12 PM »
Hi Ken,
everything works fine! Compliments!!  =D&gt;

Details:
- I remeber you the sintax error

in the steelseriesVWSjson file:

// The output JSON file uses SteelSeries Weather-Display configuration
//   In the SteelSeries gauges.js file, set:
/*
      weatherProgram    : 1,                      //Set 0=Cumulus, 1=Weather Display
      realTimeURL_WD    : './steelseriesVWSjson.php',//*** Change this to your download location if the ccr file is not in the same folder as the gauges-ss.htm***
*/
//

- the forecast are in english: perhaps because the language of my software is set to English?

- I can not hide the forecasts, leaving the LEDs and the counter: I tried to do as you told me but nothing changes.

The forecasts line can be hidden by editing the gauges .html page (and removing the     <canvas id="canvas_status" width="350" height="25"></canvas>&nbsp;&nbsp;
 code, I think).
 

I'm very happy!

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

Offline PaulMy

  • Forecaster
  • *****
  • Posts: 5509
    • KomokaWeather
Re: Steelseries Gauges with VWS
« Reply #22 on: January 24, 2013, 09:07:35 PM »
Glad it is working for you =D&gt;

Paul

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Steelseries Gauges with VWS
« Reply #23 on: January 24, 2013, 09:29:59 PM »
I've been working with Mark (author of the Steel Series gauge package) and he'll be bundling the VWS capability into his V2.1 release which should be out shortly.  Thanks to Piero for being such a good sport and testing the steelseriesVWSjson.php script -- his international VWS settings were just what I needed to make sure it worked around the world :)

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

Offline Piero

  • Senior Member
  • **
  • Posts: 64
  • Valenza - Italy
    • Luna Weather Station - Valenza
Re: Steelseries Gauges with VWS
« Reply #24 on: January 25, 2013, 03:33:27 AM »
At the end we also involved Mark too! Well!
 I am happy to have contributed, it was fun, I improved my site and I have learned many things.
 Thank you all. :-)
 One last thing: as I mentioned in the last post, I'd like to hide the predictions leaving visible LED and the window couter. This in order to update every 3-5 seconds without interrupting the writing of the forecast, but I could not find the settings. Can it be done without radically changing the code?
Davis ISS and Weather Envoy
Weatherlink IP
Virtual Weather Station
Cumulus
Weatherlink
www.lunavalenza.altervista.org