cloudy

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

0 Members and 1 Guest are viewing this topic.

Offline Axelvold

  • Posts: 980
  • Axelvold / Sweden
  • Axelvold, Sverige
    • Axelvold's weather and photo
VP console with real time update
« on: January 19, 2011, 07:35:36 AM »
Weather data is displayed in a Davis Vantage Pro2 Console, see screen dump.

Page use the version 2.20 of ajaxWDwx.js and testtags.php and you need to have the real time clientraw update enabled in WD.



Offline munrobaggins

  • Posts: 1,973
  • 38 mls NE Inverness UK
Re: VP console with real time update
« Reply #1 on: January 19, 2011, 09:14:03 AM »
Very Neat..and it works too  :)

Offline Axelvold

  • Posts: 980
  • Axelvold / Sweden
  • Axelvold, Sverige
    • Axelvold's weather and photo
Re: VP console with real time update
« Reply #2 on: January 19, 2011, 09:29:15 AM »
If you use this so will the console page open up just like the screen dump I posted.

Code: [Select]
<a target="_blank" href="vp_console.php" title="VP Console" onclick="window.open(this.href, '', 'width=896,height=554,scrollbars=no,status=no,resizable=no,toolbar=no,menubar=no'); return false">VP Console</a>



Offline jwwd

  • Posts: 3,561
  • Silkeborg, Denmark (56:10:58 N-09:30:26 E) - Elevation 75,35 meters
    • Weather at Silkeborg, Denmark
Re: VP console with real time update
« Reply #3 on: January 19, 2011, 11:51:35 AM »
Hi Axelvold

Great work! But I cant get buttons on the console working  :lol: :lol: :lol: :lol: :lol: :lol:

Best regards,

Henrik

Ps. An idea could be to have ajax print the current icon too?

Offline Axelvold

  • Posts: 980
  • Axelvold / Sweden
  • Axelvold, Sverige
    • Axelvold's weather and photo
Re: VP console with real time update
« Reply #4 on: January 19, 2011, 12:06:14 PM »
Does any one know how I could extract the icons from the real console and save them as images?



Offline NorCal Dan

  • Dan - KJ6RGX
  • Posts: 9,496
  • Davis Vue/iMac/Parallels/WinXP
  • Truckee, California
    • Traveling RV Weather
Re: VP console with real time update
« Reply #5 on: January 19, 2011, 06:18:02 PM »
http://travelingrvwx.com/vp_console.php

Just need the Vue console  #-o

Seems to be updating with ajax also...

Offline Axelvold

  • Posts: 980
  • Axelvold / Sweden
  • Axelvold, Sverige
    • Axelvold's weather and photo
Re: VP console with real time update
« Reply #6 on: January 19, 2011, 07:48:00 PM »
http://travelingrvwx.com/vp_console.php

Just need the Vue console  #-o

Seems to be updating with ajax also...

Looks nice, maybe I could do one for the Vue console as well.  :wink:



Offline Weather Display

  • Posts: 65,573
Re: VP console with real time update
« Reply #7 on: January 19, 2011, 09:00:19 PM »
Quote
Great work! But I cant get buttons on the console working
ha ha ha!

Offline Axelvold

  • Posts: 980
  • Axelvold / Sweden
  • Axelvold, Sverige
    • Axelvold's weather and photo
Re: VP console with real time update
« Reply #8 on: January 19, 2011, 09:23:56 PM »
ha ha ha!

I'm working on it.  :wink:

I just have to finish the Vue page first.



Offline Axelvold

  • Posts: 980
  • Axelvold / Sweden
  • Axelvold, Sverige
    • Axelvold's weather and photo
Re: VP console with real time update
« Reply #9 on: January 20, 2011, 11:41:42 AM »
Ps. An idea could be to have ajax print the current icon too?

Code: [Select]
<span class="ajax" id="ajaxconditionicon2"><img src="<?php echo $imagesDir newIcon($iconnumber?></span>
« Last Edit: January 20, 2011, 11:43:31 AM by Axelvold »



Offline NBH

  • Posts: 270
  • Stenestad at the top of Söderåsen in south Sweden
  • Stenestad Sweden
    • Stenstad Weather
Re: VP console with real time update
« Reply #10 on: January 20, 2011, 02:14:08 PM »
Maybe like this?
http://www.stenestad-vader.com/wx/vp_console.php
Edit: used this code:
Code: [Select]
<span style="font-family: arial, san serif; font-size: 20px; color: #003366; float: left; position: absolute; top: 82px; left: 255px;"><?echo $noaacityname;?></span>
<span class="ajax" id="ajaxdate" style="font-family: arial, san serif; font-size: 20px; color: #003366; float: left; position: absolute; top: 82px; left: 355px;"><?echo $date;?></span>
<span class="ajax" id="ajaxtime" style="font-family: arial, san serif; font-size: 20px; color: #003366; float: left; position: absolute; top: 82px; left: 455px;"><?echo $time;?></span>
<span class="ajax" id="ajaxconditionicon2" style=" float: left; position: absolute; top:66px; left: 542px;"><?php print $forecasticons?></span>

Bertil
if you change the code, use the image below
« Last Edit: January 21, 2011, 04:18:01 PM by NBH »

Mac mini, 2.26 GHz Intel Core 2 Duo, 4 GB, OS X 10.7.3 Lion

Offline Axelvold

  • Posts: 980
  • Axelvold / Sweden
  • Axelvold, Sverige
    • Axelvold's weather and photo
Re: VP console with real time update
« Reply #11 on: January 20, 2011, 02:24:59 PM »
Nice Bertil  :D :D



Offline NorCal Dan

  • Dan - KJ6RGX
  • Posts: 9,496
  • Davis Vue/iMac/Parallels/WinXP
  • Truckee, California
    • Traveling RV Weather
Re: VP console with real time update
« Reply #12 on: January 20, 2011, 03:33:20 PM »
I've seen this done using Weatherflash on a couple of websites, can this be done using Weather Display and a VP2 console image for a background?

I just put the 2 files on my webserver and it works ok here... http://travelingrvwx.com/vp_console.php

Offline Axelvold

  • Posts: 980
  • Axelvold / Sweden
  • Axelvold, Sverige
    • Axelvold's weather and photo
Re: VP console with real time update
« Reply #13 on: January 21, 2011, 08:08:54 PM »
Great work! But I cant get buttons on the console working  :lol: :lol: :lol: :lol: :lol: :lol:

I'm in the progress of making the buttons on the console to work.  :wink:

Take a peek at my website, click on VP Console in the menu to the left.

When I'm finished I will make it available in this thread.



Offline aggets

  • Posts: 58
  • Sun Prairie, Wisconsin USA
    • Sun Prairie Weather
Re: VP console with real time update
« Reply #14 on: January 22, 2011, 04:36:38 AM »
I'm in the progress of making the buttons on the console to work.  :wink:

Take a peek at my website, click on VP Console in the menu to the left.

When I'm finished I will make it available in this thread.


Looks great I have mine working here http://www.sunprairieweather.com/wx_vp_console.php Looking forward to adding the buttons.
« Last Edit: January 22, 2011, 04:38:09 AM by aggets »

 

cumulus