cloudy

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

0 Members and 3 Guests are viewing this topic.

Offline munrobaggins

  • Posts: 1,973
  • 38 mls NE Inverness UK
  • OS/Browser:
  • Win XP
  • MS IE 8.0
Re: VP console with real time update
« Reply #360 on: January 06, 2012, 09:20:50 PM »
Can someone please post a link with the latest complete pack of the scripts(images etc)?

Hello  Thanos,

It's been almost a year since I was involved with this thread and by the look of it there have been many changes incorporated since then.  However, a quick read through of the entries I made during the early first 8 pages did find some download pages that appeared to work OK.

This is a good pointer as to where to possibly start.  I hope this helps!

Edit: Page 11 entry 160 has a download link for the image of the VP2 console with lights ON...
« Last Edit: January 06, 2012, 09:28:13 PM by munrobaggins »

Offline edje1205

  • edje
  • Posts: 1,838
  • Zaandam Holland, the Netherlands
  • OS/Browser:
  • Win XP
  • MS IE 8.0
    • http://www.weersverwachtingen.eu
Re: VP console with real time update
« Reply #361 on: January 07, 2012, 02:02:26 PM »
Ed -- hard to see whats going on without seeing your scripts..


Hi

sorry little late

this is the scipt using

http://www.weersverwachtingen.eu/clientraw/wd-ajax-ml/vp_console5.php


script included but not much changed on it

thnx so far !
Ed
Woodenshoes,mills,hightech;but random weather
www.weersverwachtingen.eu
P4 2,2Ghz-2GB RAM-Win2K-Broadb.connect


Online tman1991

  • Posts: 524
  • Tucson, AZ (US)
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 9.0.1
    • Countryside Manor
Re: VP console with real time update
« Reply #362 on: January 14, 2012, 06:48:05 PM »
Ed I know I had to replace one of the jquery scripts -- there was something wrong with the copy I got.. Take a look at the dates of yours and compare to these and see if that fixes it??  Other than that, its the same..

Actually the issue Ed, is we changed the console to show indoor temp and indoor hum so the jquery script will need to be modified in your case (but units will be in english more than likely).

« Last Edit: January 14, 2012, 08:54:38 PM by tman1991 »

Offline edje1205

  • edje
  • Posts: 1,838
  • Zaandam Holland, the Netherlands
  • OS/Browser:
  • Win XP
  • MS IE 8.0
    • http://www.weersverwachtingen.eu
Re: VP console with real time update
« Reply #363 on: January 16, 2012, 10:43:37 AM »
jquery.console.js did the trick Tman, thanx
have all units now
tried to set back in °C in it but no effect  :oops:

somebody  ?

thnx!

edit:
must be in this:
[script]
         
          // We need some some values from clientraw
          var crsolar = (cr[127] * 1).toFixed(0);
          $("#cajaxsolar").html(crsolar);
          var cruv = cr[79];
          $("#cajaxuv").html(cruv);
          var crbaro = cr[6];
          $("#cajaxbaro").html(crbaro);
          var crtemp = cr[4];
          crtemp = crtemp.replace("-0", "-");
          $("#cajaxtemp").html(crtemp);
          var crchill = cr[44];
          var crhum = cr[5];
          $("#cajaxhumidity").html(crhum);
          var crdew = (cr[72] * 1).toFixed(0);
          $("#cajaxdew").html(crdew);
          var crwspd = (cr[1] * 0.514444).toFixed(1);
          $("#cajaxwind").html( crwspd);
          var crwdir = cr[3];
          var cravg = cr[158];
          var crtre = get_barotrend(cr[50]);       
          var cradir = cr[117];
          var crrain = cr[7];
          $("#cajaxrain").html(crrain);
          var crmrain = cr[8];
          var cryrain = cr[9];
          var crrainr = (cr[10] * 60).toFixed(1);
          var mo = cr[36];
          if(mo < 10) { mo = '0'+mo; }
          var cu = cr[29]+':'+cr[30]+'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'+cr[35]+'.'+mo;
          $("#cajaxtime").html(cu);
          var cric = cr[48];
          var ici = iconList[cric];
          $("#cajaxicon").html('<img src="'+imgdir+ici+'" alt=""/>');
[/script]

edit2:

replaced all
9/5 + 32 to 1 works

baro replaced 0.0295317 to 1 works

rain 25.4 to 1 dunno (no rain !  :) :wink:)
(but yearly rain = oke  :D )
« Last Edit: January 16, 2012, 11:32:06 AM by edje1205 »
Ed
Woodenshoes,mills,hightech;but random weather
www.weersverwachtingen.eu
P4 2,2Ghz-2GB RAM-Win2K-Broadb.connect


Offline linuxfreak

  • Posts: 231
  • Hey there.....
  • Hamilton, Ontario, Canada
  • OS/Browser:
  • Win XP
  • Firefox 9.0.1
    • Hamilton Central Mountain Weather
Re: VP console with real time update
« Reply #364 on: January 16, 2012, 10:36:30 PM »
Anyone want to take a stab at trying to convert this from Perl to PHP??

http://sourceforge.net/projects/davispro2/

Saw it in operation a while back, buttons working, backlight working. Take a look at the 2 screenshots they show, looks more like the console.  :wink:

George
http://sourceforge.net/projects/davispro2/screenshots/105376/182/137

http://sourceforge.net/projects/davispro2/screenshots/105486/182/137
Davis VP2/FARS, Intel Atom N330 dual-core, 2Gig ram, Windows XP Home SP3 

Offline gulfbreeze

  • Doug
  • Posts: 34
  • Weather-Display (10.37R-(b20)), Davis VP2+
  • Waveland, Mississippi, USA
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Chrome 16.0.912.77
    • Waveland Weather Center
Re: VP console with real time update
« Reply #365 on: February 15, 2012, 11:59:45 PM »
I can post mine but they are in english units, the conversions require js changing.  They scripts are not set up to switch units.  Also the time and date is in US date, am/pm format.. Again some messing around will be required.

Maybe someone can take the project up and set it up for unit friendly switching?

Please post as I have been trying to convert what I have to English units, with not much luck.

Thx, Doug

Online tman1991

  • Posts: 524
  • Tucson, AZ (US)
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 10.0.1
    • Countryside Manor
Re: VP console with real time update
« Reply #366 on: February 16, 2012, 12:17:32 AM »
hopefully u can find the graphics files

Offline ALITTLEweird1

  • Mark
  • Posts: 3,984
  • Snoqualmie,WA
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • MS IE 9.0
    • Snoqualmie Weather
Re: VP console with real time update
« Reply #367 on: February 16, 2012, 12:43:52 AM »
Without going through all 25 pages of this thread, Does anyone have a zip file of what is needed to get this script working? The zip file on the first post wont extract. Thanks
"Nature can do without man, but man cannot do without nature."

Davis VP2 + 1-Wire Solar + 1-wire Lightning + 1-Wire UV + Logitech Webcam

Offline gulfbreeze

  • Doug
  • Posts: 34
  • Weather-Display (10.37R-(b20)), Davis VP2+
  • Waveland, Mississippi, USA
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Chrome 16.0.912.77
    • Waveland Weather Center
Re: VP console with real time update
« Reply #368 on: February 16, 2012, 01:15:39 AM »
hopefully u can find the graphics files

I have all the graphics. I get the display up , but no data showing, it willl show the vpforecast, and the graph, and they seem to be working ok.   

http://www.waveland-weather.org/vp_console2.php

Think I've got things pointed to the right directories, but still no data.  Any ideas?

Online tman1991

  • Posts: 524
  • Tucson, AZ (US)
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 10.0.1
    • Countryside Manor
Re: VP console with real time update
« Reply #369 on: February 16, 2012, 02:58:51 AM »
looks like its working now Doug

Online tman1991

  • Posts: 524
  • Tucson, AZ (US)
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 10.0.1
    • Countryside Manor
Re: VP console with real time update
« Reply #370 on: February 16, 2012, 03:05:18 AM »
if you use my zip from 3 posts above plus these 2 zips i "think" thats all the files u need..

graphics from other posters -- not mine..  neither is the scripts, just tweaked.


Offline gulfbreeze

  • Doug
  • Posts: 34
  • Weather-Display (10.37R-(b20)), Davis VP2+
  • Waveland, Mississippi, USA
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Chrome 16.0.912.77
    • Waveland Weather Center
Re: VP console with real time update
« Reply #371 on: February 16, 2012, 04:05:06 AM »
if you use my zip from 3 posts above plus these 2 zips i "think" thats all the files u need..

graphics from other posters -- not mine..  neither is the scripts, just tweaked.

Thanks for the help, but I do have one question, no sure, but after about a minute I get a little white box in the center of the screen stating
"Error with getting new data."  Any ideas as to why this is showing up? Did I miss doing something?


Online tman1991

  • Posts: 524
  • Tucson, AZ (US)
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 10.0.1
    • Countryside Manor
Re: VP console with real time update
« Reply #372 on: February 16, 2012, 04:25:43 AM »
edit your jquery.console.js file.

   // Data file and messages
   var dataurl = './clientraw.txt';
   var imgdir = './img/';
   var updates = 240;
   var timeout = 5; // In sec
   var errormsg = "Error with getting new data";
   var pausemsg = "Updates paused, refresh page to continue.";

Change var update and timeout values

I forget what they change but that effects the update rate and number of update i believe

Offline ALITTLEweird1

  • Mark
  • Posts: 3,984
  • Snoqualmie,WA
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • MS IE 9.0
    • Snoqualmie Weather
Re: VP console with real time update
« Reply #373 on: February 16, 2012, 01:16:29 PM »
if you use my zip from 3 posts above plus these 2 zips i "think" thats all the files u need..

graphics from other posters -- not mine..  neither is the scripts, just tweaked.



Thanks.. I'll take a look at those.
"Nature can do without man, but man cannot do without nature."

Davis VP2 + 1-Wire Solar + 1-wire Lightning + 1-Wire UV + Logitech Webcam

Offline gwwilk

  • Posts: 153
  • Lincoln, NE
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Chrome 17.0.963.46
    • Southeast Lincoln Weather
Re: VP console with real time update
« Reply #374 on: February 16, 2012, 07:15:13 PM »
if you use my zip from 3 posts above plus these 2 zips i "think" thats all the files u need..

graphics from other posters -- not mine..  neither is the scripts, just tweaked.

Indeed, that is the case:  http://www.gwwilkins.org/wxvpconsole.php

Thanks, guys! :thumbright: