cloudy cloudy

Author Topic: VP console with real time update  (Read 101047 times)

0 Members and 1 Guest are viewing this topic.

Offline AM1234

  • Posts: 394
  • Beamsville, Ontario, Canada
    • Beamsville Weather Station
Re: VP console with real time update
« Reply #60 on: January 26, 2011, 03:35:22 PM »
I have been attempting to make the wind conversion from m/s to km/h, using the conversions from this page:

http://www.4wx.com/wxcalc/formulas/windConversion.php

I have had no success, may I have some help, please?
Ann-Marie
Beamsville, Ontario, Canada

Offline ocl

  • Posts: 49
  • Aalesund,Norway
    • Skarboevikvaeret, Aalesund, Norway
Re: VP console with real time update
« Reply #61 on: January 26, 2011, 04:20:38 PM »
Try change line 68 in the jquery.console.js file
Code: [Select]
var crwspd = (cr[1] * 0.514444).toFixed(1);to
Code: [Select]
var crwspd = (cr[1] * 1.85325).toFixed(1);and "m/s" to "km/h" in line 91 in the vp_console2.php.

I guess that will do the trick?

Offline NorCal Dan

  • Dan - KJ6RGX
  • Posts: 10,502
  • Davis Vue/Win10
  • Ocean Park, WA.
    • Traveling RV Weather
Re: VP console with real time update
« Reply #62 on: January 26, 2011, 04:36:19 PM »
Attached is a zip file that contains vp_console2.php and jquery.console.js that contain the changes I made to produce the readings for wind in mph, temp in F, rain in inches, and barometer inHg.



ADD:  I have replaced the attachment as it contained the wrong formula for the barometer.  Anyone who already downloaded the archive please change the forumla for the barometer in the jquery.console.js file to:

Code: [Select]
var crbaro = (cr[6] * 0.0295317).toFixed(2);[/b][/color][/size]
« Last Edit: February 02, 2011, 06:04:51 PM by NorCal Dan »

Offline Goldseeker

  • Posts: 146
  • Guernsey, Channel Islands
    • Guernsey Weather
Re: VP console with real time update
« Reply #63 on: January 26, 2011, 05:06:38 PM »
Is there a idiots guide I wish to have mph, C. mm and mb?

Offline munrobaggins

  • Posts: 1,973
  • 38 mls NE Inverness UK
Re: VP console with real time update
« Reply #64 on: January 26, 2011, 06:12:25 PM »
Is there a idiots guide I wish to have mph, C. mm and mb?
...and everybody else in the UK probably :) :wink: :roll:

Offline AM1234

  • Posts: 394
  • Beamsville, Ontario, Canada
    • Beamsville Weather Station
Re: VP console with real time update
« Reply #65 on: January 26, 2011, 06:16:37 PM »
Thanks ocl, thanks Dan :)  Now, my forecast icon is always stuck on cloudy, and I have no moon icon, how do I get them to display properly?
Ann-Marie
Beamsville, Ontario, Canada

Offline ocl

  • Posts: 49
  • Aalesund,Norway
    • Skarboevikvaeret, Aalesund, Norway
Re: VP console with real time update
« Reply #66 on: January 26, 2011, 08:02:32 PM »
Quote
Is there a idiots guide I wish to have mph, C. mm and mb?
First edit vp_console2.php:
line 91 -  m/s  ->  mph
line 103 - hPa ->  mb
mm and C is there already.

1 hPa = 1 mb - so thats ok.
We have to change the windreading to show mph. 
Edit line 68 in the jquery.console.js file
Code: [Select]
var crwspd = (cr[1] * 0.514444).toFixed(1);
to
Code: [Select]
var crwspd = (cr[1] * 1.15155).toFixed(1);

Offline munrobaggins

  • Posts: 1,973
  • 38 mls NE Inverness UK
Re: VP console with real time update
« Reply #67 on: January 26, 2011, 08:40:40 PM »
First edit vp_console2.php:
line 91 -  m/s  ->  mph
line 103 - hPa ->  mb
mm and C is there already.

1 hPa = 1 mb - so thats ok.
We have to change the windreading to show mph. 
Edit line 68 in the jquery.console.js file
Code: [Select]
var crwspd = (cr[1] * 0.514444).toFixed(1);
to
Code: [Select]
var crwspd = (cr[1] * 1.15155).toFixed(1);
Many thanks ocl.... :)

Offline Goldseeker

  • Posts: 146
  • Guernsey, Channel Islands
    • Guernsey Weather
Re: VP console with real time update
« Reply #68 on: January 26, 2011, 08:50:03 PM »
First edit vp_console2.php:
line 91 -  m/s  ->  mph
line 103 - hPa ->  mb
mm and C is there already.

1 hPa = 1 mb - so thats ok.
We have to change the windreading to show mph. 
Edit line 68 in the jquery.console.js file
Code: [Select]
var crwspd = (cr[1] * 0.514444).toFixed(1);
to
Code: [Select]
var crwspd = (cr[1] * 1.15155).toFixed(1);

Many thanks all working now

Offline Goldseeker

  • Posts: 146
  • Guernsey, Channel Islands
    • Guernsey Weather
Re: VP console with real time update
« Reply #69 on: January 26, 2011, 09:36:30 PM »
Many thanks all working now

Spoke to soon ok in Firefox but not in IE (http://www.gyweather.com/vp_console2.php) also how to I get the change of colour when it updates.

Thanks in advance

Offline NorCal Dan

  • Dan - KJ6RGX
  • Posts: 10,502
  • Davis Vue/Win10
  • Ocean Park, WA.
    • Traveling RV Weather
Re: VP console with real time update
« Reply #70 on: January 27, 2011, 02:50:06 AM »
Anybody interested in finishing this?  --> http://travelingrvwx.com/vue_console.php

I just don't have much time to devote to the project and it needs a lot more added...shouldn't be hard, just need time...


Offline NBH

  • Posts: 325
  • Davis Vantage Pro2
  • Stenestad Sweden
    • Stenstad Weather
Re: VP console with real time update
« Reply #71 on: January 27, 2011, 11:32:51 AM »
If you also want to show seconds in the clock, change this line of jquery.console.js to this
Code: [Select]
var cu = cr[29]+':'+cr[30]+':'+cr[31]+'    '+cr[35]+'.'+mo;
Look at my page
Bertil

Offline Goldseeker

  • Posts: 146
  • Guernsey, Channel Islands
    • Guernsey Weather
Re: VP console with real time update
« Reply #72 on: January 27, 2011, 12:50:16 PM »
Can anyone tell me what to do to get graph and wind direction working in IE works ok in firefox.

Thanks

Offline ocl

  • Posts: 49
  • Aalesund,Norway
    • Skarboevikvaeret, Aalesund, Norway
Re: VP console with real time update
« Reply #73 on: January 27, 2011, 01:10:13 PM »
There is one more file in the latest zip, i think. You have to upload that file also.....
I'm at work so cant tell you the filename....
----
Back at home now....
The missing file in the first zip is called excanvas.pack.js and have to be uploaded to the jquery folder on the server to get the VP console to work in IE.
« Last Edit: January 27, 2011, 03:52:34 PM by ocl »

Offline Goldseeker

  • Posts: 146
  • Guernsey, Channel Islands
    • Guernsey Weather
Re: VP console with real time update
« Reply #74 on: January 27, 2011, 04:42:34 PM »
There is one more file in the latest zip, i think. You have to upload that file also.....
I'm at work so cant tell you the filename....
----
Back at home now....
The missing file in the first zip is called excanvas.pack.js and have to be uploaded to the jquery folder on the server to get the VP console to work in IE.

Hi ocl

I have excanvas.pack.js in the jquery folder but still no graph and wind direction
many thanks for you help

 

cumulus