Author Topic: Davis 'Live' Console script  (Read 53481 times)

0 Members and 1 Guest are viewing this topic.

Offline CNYWeather

  • Forecaster
  • *****
  • Posts: 2297
    • CNYWeather
Re: Davis 'Live' Console script
« Reply #100 on: March 04, 2014, 09:11:00 PM »
Pool temp is a bit chilly.  :grin:
Tony




Offline Cienega32

  • Forecaster
  • *****
  • Posts: 2635
    • East Mesa Weather
Re: Davis 'Live' Console script
« Reply #101 on: March 05, 2014, 01:11:53 AM »
It's getting up there tho', little by little. It was 40 a couple of weeks ago.

Pat ~ Davis VP2 6153-Weatherlink-Weather Display-StartWatch-VirtualVP-Win7 Pro-64bit
www.LasCruces-Weather.com   www.EastMesaWeather.com

Offline Bunty

  • Forecaster
  • *****
  • Posts: 2432
  • Stillwater, home of Oklahoma State University
    • Welcome to Stillwater Weather
Re: Davis 'Live' Console script
« Reply #102 on: April 05, 2014, 04:17:50 PM »
January 13 2014
Package updated to ver 2.4.0!

See first post for details

This is my updated version.  Thanks a lot!  http://stillwaterweather.com/wx/davconvp2CW.php

Strangely enough, all the readings on my console have gone blank.  Have check the file permissions, but they are okay.  I don't know what else to do to troubleshoot.  At least no one else I have seen has developed this problem. 
 http://stillwaterweather.com/wx/davconvp2CW.php

Also the 2nd home page using modified AltDashboard 6.95 at http://stillwaterweather.com/2ndhome.php

Offline BCJKiwi

  • Forecaster
  • *****
  • Posts: 302
    • Silver Acorn Weather - N.Z.
Re: Davis 'Live' Console script
« Reply #103 on: April 05, 2014, 04:50:22 PM »
Interesting.

The forecast and the external links are working which suggest the main scripts davconvp2CW.php and davconvp2-inc.php are OK.

As you are running WD, the data used comes from clientraw.txt and the graph data from clientrawextra.txt. Presumably both these files are present and correct as the rest of the site appears normal.

However no graphs and no console data suggests the .js is not working.
So I suggest you double check the location and presence of the files in the davcon folder against the distro.
The plot function is not working (generates and error) which points to an issue with one of the .js libs in the davcon folder.

Have there been any changes on your site setup that might have a knock-on affect?
« Last Edit: April 05, 2014, 04:57:29 PM by BCJKiwi »

Offline Bunty

  • Forecaster
  • *****
  • Posts: 2432
  • Stillwater, home of Oklahoma State University
    • Welcome to Stillwater Weather
Re: Davis 'Live' Console script
« Reply #104 on: April 06, 2014, 04:00:02 AM »
Interesting.

The forecast and the external links are working which suggest the main scripts davconvp2CW.php and davconvp2-inc.php are OK.

As you are running WD, the data used comes from clientraw.txt and the graph data from clientrawextra.txt. Presumably both these files are present and correct as the rest of the site appears normal.

However no graphs and no console data suggests the .js is not working.
So I suggest you double check the location and presence of the files in the davcon folder against the distro.
The plot function is not working (generates and error) which points to an issue with one of the .js libs in the davcon folder.

Have there been any changes on your site setup that might have a knock-on affect?

The only different thing I did was about a couple of weeks ago when I switched everything over to a better laptop.  If I don't know of anything else to try, then I suppose I will have to try switching back to the old laptop.

I have tried reinstalling the console script with no luck.  I also have additional trouble showing up elsewhere. Data has been frozen on Steel Guages.  The message from there  says "Weather station is currently off line. Last update 13 days ago".  Also yowindow pages that read my station data are frozen.  So still don't understand what is going on.

Also the 2nd home page using modified AltDashboard 6.95 at http://stillwaterweather.com/2ndhome.php

Offline ValentineWeather

  • Forecaster
  • *****
  • Posts: 6374
    • Valentine Nebraska's Real-Time Weather
Re: Davis 'Live' Console script
« Reply #105 on: April 06, 2014, 05:04:28 AM »
Just went to your site realtime data looks like its not working. Looking at the WU rapid fire for 10 minutes now nothing has updated. Think you have other issues
Randy

Offline PaulMy

  • Forecaster
  • *****
  • Posts: 5519
    • KomokaWeather
Re: Davis 'Live' Console script
« Reply #106 on: April 06, 2014, 10:18:24 AM »
Like your Davis console the gauges-ss also seem to have an issue.  Hope you can get it working.
 
Paul

Offline Bunty

  • Forecaster
  • *****
  • Posts: 2432
  • Stillwater, home of Oklahoma State University
    • Welcome to Stillwater Weather
Re: Davis 'Live' Console script
« Reply #107 on: April 06, 2014, 03:54:03 PM »
Thanks.  As indicated I might, I have tried switching back to the old laptop.  The only positive response, so far, was with the steel gauges working again.  WU's RapidFire still dead.  Hopefully, it's a WU issue. It's was doing okay yesterday.

Also the 2nd home page using modified AltDashboard 6.95 at http://stillwaterweather.com/2ndhome.php

Offline Bunty

  • Forecaster
  • *****
  • Posts: 2432
  • Stillwater, home of Oklahoma State University
    • Welcome to Stillwater Weather
Re: Davis 'Live' Console script
« Reply #108 on: April 08, 2014, 03:42:46 AM »
UPDATE:  Everything eventually returned to normal except for vp2 console.  It's problem still has me stumped.

Also the 2nd home page using modified AltDashboard 6.95 at http://stillwaterweather.com/2ndhome.php

Offline Bunty

  • Forecaster
  • *****
  • Posts: 2432
  • Stillwater, home of Oklahoma State University
    • Welcome to Stillwater Weather
Re: Davis 'Live' Console script
« Reply #109 on: April 09, 2014, 03:19:07 PM »
Oh, well, at least a less elaborate version works:  http://stillwaterweather.com/wx/vp_console.php

Also the 2nd home page using modified AltDashboard 6.95 at http://stillwaterweather.com/2ndhome.php

Offline BCJKiwi

  • Forecaster
  • *****
  • Posts: 302
    • Silver Acorn Weather - N.Z.
Re: Davis 'Live' Console script
« Reply #110 on: April 09, 2014, 05:16:32 PM »
I have not responded recently as I could not think of anything to add to what I already posted.

It was working, you made some system changes, it stopped working. You changed it back but is everything exactly as it was?
There is only one other possibility assuming that all the files and scripts are present and correct and that is an issue with the .js libraries.
There have been a couple of instances where other .js libraries that are quite old are loading and interfering with other js libraries/scripts in the website.

Have you made any other changes in the system - new scripts etc?

Offline blainec

  • Senior Member
  • **
  • Posts: 70
    • Weather YYC
Re: Davis 'Live' Console script
« Reply #111 on: August 17, 2014, 02:19:40 AM »
has anyone got this to work on Leuven-Template

Offline Bunty

  • Forecaster
  • *****
  • Posts: 2432
  • Stillwater, home of Oklahoma State University
    • Welcome to Stillwater Weather
Re: Davis 'Live' Console script
« Reply #112 on: October 29, 2014, 11:33:43 PM »
UPDATE:  Everything eventually returned to normal except for vp2 console.  It's problem still has me stumped.


Still can't get it to work.  Weather data won't show up on the console.  Any new ideas out there as to how to fix it?

http://stillwaterweather.com/wx/davconvp2CW.php

Also the 2nd home page using modified AltDashboard 6.95 at http://stillwaterweather.com/2ndhome.php

Offline ValentineWeather

  • Forecaster
  • *****
  • Posts: 6374
    • Valentine Nebraska's Real-Time Weather
Re: Davis 'Live' Console script
« Reply #113 on: October 29, 2014, 11:38:07 PM »
I wonder with the older version running it's somehow messing with the newer version. 
Randy

Offline miraculon

  • Sunrise Side Weather
  • Forecaster
  • *****
  • Posts: 4108
  • KE8DAF
    • Sunrise Side Weather in Rogers City MI USA
Re: Davis 'Live' Console script
« Reply #114 on: October 30, 2014, 10:49:41 AM »
January 13 2014
Package updated to ver 2.4.0!

See first post for details

This is my updated version.  Thanks a lot!  http://stillwaterweather.com/wx/davconvp2CW.php

Strangely enough, all the readings on my console have gone blank.  Have check the file permissions, but they are okay.  I don't know what else to do to troubleshoot.  At least no one else I have seen has developed this problem. 
 http://stillwaterweather.com/wx/davconvp2CW.php

I tried running this script since meteohub uploads the clientraw.txt and clientrawextra.txt
files.

The console displays and it appears that the backlight on/off and scrolling forecast work.

However, I am having this same problem with missing data display. (Temp/Hum/Wind/Baro)

I got it to get past a "not found!" error by changing the references to WD to MB (meteobridge). The meteohub is actually generating the clientraw.txt and clientrawextra.txt.

Code: [Select]
      if ($WXsoftware == 'MB') {
$dataurl  = './clientraw.txt';       // for Weather Display 'realtime' data
      if (isset($SITE['clientrawfile'])) {$dataurl = $SITE['clientrawfile'];}  // Use Saratoga setting if available
$graphurl = './clientrawextra.txt';  // for Weather Display graph data
 }

If anyone has a fix for the missing data, I would like to try the same. The davcon directory has full permissions on the .js files, etc. etc.

Here is the broken webpage. I know the buttons point to Cumulus items that don't exist.

http://rogerscityweather.com/davconvp2CW.php

Got it working! I had to change the "WD" to "MB" in jquery.davconsoleCW.js

Code: [Select]
// ### WEATHER DISPLAY CLIENTRAW.TXT  ##################################
// default configuration is for Metric units.
// Options shown remmed out
// To change to your units to match your station if different, replace unwanted units with wanted units.
         } else if (wxsoftware == 'MB') { // split clientraw

Greg H.


« Last Edit: October 30, 2014, 04:06:22 PM by miraculon »


Blitzortung Stations #706 and #1682
CoCoRaHS: MI-PI-1
CWOP: CW4114 and KE8DAF-13
WU: KMIROGER7
Amateur Radio Callsign: KE8DAF

Offline BCJKiwi

  • Forecaster
  • *****
  • Posts: 302
    • Silver Acorn Weather - N.Z.
Re: Davis 'Live' Console script
« Reply #115 on: October 30, 2014, 04:10:36 PM »
Great!

Was just in the process of suggesting the issue was with clientraw and noticed it was working!

If you could send me a PM with any/all the changes you had to make I could include the info in the HowTo for future users.

You may need to work through the options. e.g. you are getting NAN (no data) for apparent temp so you may wish to change the $dewrotate option number - maybe to 6 or 8?

Thanks
« Last Edit: October 30, 2014, 04:14:10 PM by BCJKiwi »

Offline ValentineWeather

  • Forecaster
  • *****
  • Posts: 6374
    • Valentine Nebraska's Real-Time Weather
Re: Davis 'Live' Console script
« Reply #116 on: October 30, 2014, 04:55:28 PM »
Glad you guys figured out. I was wondering if there was an easy way to turn the Davis weather ticker off CU version.  Just seems confusing to have the generic Davis forecast scrolling by and then having the forecast button linking to the real forecast. 
Randy

Offline BCJKiwi

  • Forecaster
  • *****
  • Posts: 302
    • Silver Acorn Weather - N.Z.
Re: Davis 'Live' Console script
« Reply #117 on: October 30, 2014, 07:03:05 PM »
Well the script is trying to reproduce what you see on the actual console with a 'few extras' so that is why the ticker is there.

If you are really desperate to do this, then you can rem out the entire FORECAST TEXT section in davconvp2CW-inc.php - e.g.
Quote
<!-- FORECAST TEXT
<div id="vp2_scroller_container">
 <div class="jscroller2_left jscroller2_speed-50 jscroller2_mousemove jscroller2_ignoreleave">
 <?php langtrans($vpforecasttext); ?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div>
 <div class="jscroller2_left_endless jscroller2"><?php langtrans($vpforecasttext); ?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </div>
</div>
 -->
Just move the --> from after FORECAST TEXT to after the </div>
« Last Edit: October 30, 2014, 07:04:38 PM by BCJKiwi »

Offline ValentineWeather

  • Forecaster
  • *****
  • Posts: 6374
    • Valentine Nebraska's Real-Time Weather
Re: Davis 'Live' Console script
« Reply #118 on: October 30, 2014, 07:56:55 PM »
Well the script is trying to reproduce what you see on the actual console with a 'few extras' so that is why the ticker is there.

If you are really desperate to do this, then you can rem out the entire FORECAST TEXT section in davconvp2CW-inc.php - e.g.
Quote
<!-- FORECAST TEXT
<div id="vp2_scroller_container">
 <div class="jscroller2_left jscroller2_speed-50 jscroller2_mousemove jscroller2_ignoreleave">
 <?php langtrans($vpforecasttext); ?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div>
 <div class="jscroller2_left_endless jscroller2"><?php langtrans($vpforecasttext); ?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </div>
</div>
 -->
Just move the --> from after FORECAST TEXT to after the </div>

Thank you for that information. I realize the script is doing what it was designed for. The forecast is fine for me but do worry visitors may not understand how basic it is. I've had a couple people say the Davis console was what they enjoy the most. I also use it all the time, thanks for the script. 
Randy

Offline miraculon

  • Sunrise Side Weather
  • Forecaster
  • *****
  • Posts: 4108
  • KE8DAF
    • Sunrise Side Weather in Rogers City MI USA
Re: Davis 'Live' Console script
« Reply #119 on: October 30, 2014, 10:09:54 PM »
Great!

Was just in the process of suggesting the issue was with clientraw and noticed it was working!

If you could send me a PM with any/all the changes you had to make I could include the info in the HowTo for future users.

You may need to work through the options. e.g. you are getting NAN (no data) for apparent temp so you may wish to change the $dewrotate option number - maybe to 6 or 8?

Thanks

Will do. (tomorrow)

Thanks for the tip on the NAN. I seem to have a moon phase issue, though. I have a "new moon" icon instead of 1st ¼ moon.

I decided to use the VUE console since it fits better on the page. http://rogerscityweather.com/davconvueCW.php

Greg H.


Blitzortung Stations #706 and #1682
CoCoRaHS: MI-PI-1
CWOP: CW4114 and KE8DAF-13
WU: KMIROGER7
Amateur Radio Callsign: KE8DAF

Offline BCJKiwi

  • Forecaster
  • *****
  • Posts: 302
    • Silver Acorn Weather - N.Z.
Re: Davis 'Live' Console script
« Reply #120 on: October 30, 2014, 11:59:20 PM »
The moon Icon selection is done in the function at the bottom of the davconvp2(vue)CW.php script.

This utilises the $moonage and $latitude vars.
$latitude is set in the script to determine North or South hemisphere (default is North).
$mooonage is derived by Saratoga scripts from the files provided by WD or Cumulus - I don't see it being derived in the MB plugin set.

Maybe you could add it to MBtags.php for upload and then a corresponding entry in MB-defs.php.
OR
As you do have a working icon on the dashboard maybe you can edit the function to re-use whatever is being used for the dashboard.

Without that you won't get the icon working.

Offline Bunty

  • Forecaster
  • *****
  • Posts: 2432
  • Stillwater, home of Oklahoma State University
    • Welcome to Stillwater Weather
Re: Davis 'Live' Console script
« Reply #121 on: October 31, 2014, 12:12:24 AM »
I've switched to an improved second verson of vp_console.php.  Like the first version, it works for me.

http://stillwaterweather.com/wx/wxvp2.php
« Last Edit: October 31, 2014, 02:51:35 AM by Bunty »

Also the 2nd home page using modified AltDashboard 6.95 at http://stillwaterweather.com/2ndhome.php

Offline BCJKiwi

  • Forecaster
  • *****
  • Posts: 302
    • Silver Acorn Weather - N.Z.
Re: Davis 'Live' Console script
« Reply #122 on: October 31, 2014, 04:47:56 PM »
@ Miraculon - tried to reply to your PM but am unable to.
Would you please pm me your email address or contact me via our contact page.
Thanks

Offline ValentineWeather

  • Forecaster
  • *****
  • Posts: 6374
    • Valentine Nebraska's Real-Time Weather
Re: Davis 'Live' Console script
« Reply #123 on: October 31, 2014, 05:01:04 PM »
I went ahead and disable the scrolling forecast for now on mine.
http://www.valentinenebraska.net/davconvp2CW.php
Randy

Offline Bunty

  • Forecaster
  • *****
  • Posts: 2432
  • Stillwater, home of Oklahoma State University
    • Welcome to Stillwater Weather
Re: Davis 'Live' Console script
« Reply #124 on: October 31, 2014, 07:11:03 PM »
I went ahead and disable the scrolling forecast for now on mine.
http://www.valentinenebraska.net/davconvp2CW.php

Why?  Is the forecast usually too inaccurate?

Also the 2nd home page using modified AltDashboard 6.95 at http://stillwaterweather.com/2ndhome.php

 

anything