WXforum.net

Web Weather => Weather Website PHP/AJAX scripting => Topic started by: BCJKiwi on December 20, 2013, 05:16:24 PM

Title: Davis 'Live' Console script
Post by: BCJKiwi on December 20, 2013, 05:16:24 PM
UPDATE 14 MAY 2014
Version 2.4.1
It seems I was remiss in not posting this update info before (now 20 Jan 2017 !!!).
Just in case you are here but use the Cumulus HTML website templates, not Saratoga there is a minor bugfix for that version on our website - details on the Cumulus Forum. The SARATOGA (CW versions) are NOT affected.
BCJKiwi

UPDATE 13 January 2014
Version 2.4.0
After adding tooltips in ver 2.3.0 I did not like that the script would not validate properly - the CSS tooltips were not XHTML compliant but did work.
Ver 2.4.0 is an overhaul of a significant part of the code and is now HTML5. Check out the HowTo for details on HTML5.
There are also some additional setting options for the temp 'rotation' items displayed.
The 'antenna' (Vue) and 'X' (VP2) data received indicators are now included. Options are provided to turn these off if you don't want them. Provision has been made for these to respond to 'sensorlost' data from the WX software should it be made available in the future.
Full and Update packages may be downloaded from http://silveracorn.co.nz/weather/wxscripts.php
 (http://silveracorn.nz/weather/wxscripts.php)
BCJKiwi

UPDATE 30 December 2013
Version 2.3.0 available.
There are a number of code revisions and refinements 'under the hood'.
There is also a new feature which is to enable either, neither, or both Console and Table buttons to open the linked scripts in a new tab allowing more than one page to be open at once. There is also a 'tooltip' to indicate which buttons will open a new tab. This tool tip can be turned off.
Please note there are updated davconCW.css and jquery.davconsoleCW.js files in the ./davcon/ folder - both are required.

BCJKiwi

UPDATE 22 December 2013
Version 2.2.5 available.
Only change is to add 'US' 24Hour time format.
BCJKiwi

Have developed a new script package as an alternative to the one here http://www.weather-watch.com/smf/index.php/topic,49563.0.html (http://www.weather-watch.com/smf/index.php/topic,49563.0.html)
This project began as a way to provide this function for Cumulus users and now works for users of the Saratoga template system with either Weather Display or Cumulus software. Both VP2 and VUE are included.

It has been fully discussed with Axelvold and Allesandro Bardi who generously supplied his version as a starting point. The package has been in development for over 6 months and has recently been tested by a few WD users to which go my thanks.
It appears to work properly as designed so should you decide to install it, hopefully it proves to be a satisfactory experience.

You may view working versions driven by a Vue and Cumulus  here;
http://silveracorn.nz/weather/davconvp2CW.php (http://silveracorn.co.nz/weather/davconvp2CW.php)
and here;
http://silveracorn.nz/weather/davconvueCW.php (http://silveracorn.co.nz/weather/davconvueCW.php)
 
As the package is too big upload to this forum, it may be downloaded from http://silveracorn.nz/weather/wxscripts.php (http://silveracorn.co.nz/weather/wxscripts.php)
If you choose to use this script instead of the previous one, please note that virtually no files are the same including all the graphics so please do not try to mix and match anything from the other package with this one!

It is offered for use, as is, without any commitment of support but I am open to constructive suggestions and will assist as and when I have the time and inclination.

Enjoy!
Title: Re: Davis 'Live' Console script
Post by: PaulMy on December 20, 2013, 05:28:31 PM
And I have it working here http://komokaweather.ca/davconvp2CW.php (http://komokaweather.ca/davconvp2CW.php)

Paul
Title: Re: Davis 'Live' Console script
Post by: cospringswx on December 20, 2013, 06:21:35 PM
BCJKiwi,

Thanks for all the support and emails with getting mine working correctly. =D>

http://www.hayskansasweather.com/davconvueCW.php
Title: Re: Davis 'Live' Console script
Post by: jgillett on December 20, 2013, 07:24:43 PM
Running at http://tiggrweather.net/davconvp2CW.php for some time.

Well done, BCJKiwi.
Title: Re: Davis 'Live' Console script
Post by: CNYWeather on December 21, 2013, 01:36:57 PM
Got it installed. THANKS for this!

Where would I look to change the time from 24 hour to 12 hour,
and I have a VP Forecast on there but can't get it to show up.
Title: Re: Davis 'Live' Console script
Post by: PaulMy on December 21, 2013, 03:01:49 PM
Hi Tony,
Sorry I can't help with the 12-24 hour time nor the Davis forecast displaying and BCJKiwi may be along soon. 

Possibly you are still working on getting it fully set up but lines 170 - 187 in davconvp2CW.php has the settings to find your graph files so they display when pressing either the console or the table buttons.

Paul
Title: Re: Davis 'Live' Console script
Post by: BCJKiwi on December 21, 2013, 03:32:34 PM
For WD, data comes from 3 sources,
clientraw, clientrawextra, and Saratoga template variables

Clock is always 24 hr, hh:mm as this data comes directly from clientraw (no 12 hr time there). There is currently no provision for 12 hr time.
A number of changes are required to the jquery file and to the screen layout - not trivial.
I will look to add this format to the 'Imperial' mode in a future version

Forecast and rain
The forecast is that delivered by the Saratoga variable $vpforecasttext (in testtags.php). What does this variable contain in your system?
Not only do you not have the forecast, the rain graph is not working either. While the storm rain and daily rain match the dashboard values, the rain graph is showing 0 where the other graphs are showing typical values.
All the graph values come directly from the same file clientrawextra. Again what rain values are showing in clientrawextra?
Title: Re: Davis 'Live' Console script
Post by: BCJKiwi on December 22, 2013, 05:12:48 AM
Version 2.2.5 available.
Only change is to add 'US' 24Hour time format.

Separate options included for metric/US (24/12hr with am/pm) time and for Metric/US date (dd/mm or mm/dd).
Thanks for the clarification John!
Title: Re: Davis 'Live' Console script
Post by: jgillett on December 22, 2013, 10:21:39 AM
Version 2.2.5 available.
Only change is to add 'US' 24Hour time format.
If I may, it's a bit more flexible than that.

Time is individually selectable as 12 or 24 hour format, and date is individually selectable as dd/mm or mm/dd. Mix 'n match any way you want. Pretty nice...
Title: Re: Davis 'Live' Console script
Post by: miraculon on December 22, 2013, 10:42:51 AM
This is really neat. Any chance of adding Meteobridge support?

Greg
Title: Re: Davis 'Live' Console script
Post by: mcrossley on December 22, 2013, 11:52:26 AM
Running at http://tiggrweather.net/davconvp2CW.php for some time.
One thing I noted, the explanatory text below the console has 'Cumulus Graphs' when you seem to be using WD.
Title: Re: Davis 'Live' Console script
Post by: gwwilk on December 22, 2013, 12:38:23 PM
I have had it running here (http://www.gwwilkins.org/davconvp2CW.php) almost since BCJKiwi began to add WD to his excellent revision of the live console.  It has evolved into a marvelous view of a VP2 or Vue console with numerous options and capabilities.  Thanks, BCJKiwi, for letting us help with your project!

Title: Re: Davis 'Live' Console script
Post by: jgillett on December 22, 2013, 01:46:58 PM
Running at http://tiggrweather.net/davconvp2CW.php for some time.
One thing I noted, the explanatory text below the console has 'Cumulus Graphs' when you seem to be using WD.
Oops - was late last night (early this morning?) when I posted the last update. Missed that one.

Thanks for the catch, Mark.
Title: Re: Davis 'Live' Console script
Post by: BCJKiwi on December 22, 2013, 11:27:29 PM
This is really neat. Any chance of adding Meteobridge support?
Greg
Sorry, I have no knowledge of, nor experience with, meteobridge and have no plans for versions other than the CW and the Cumulus default website version.
As the script uses standard data formats from Saratoga, WD or CU, and Saratoga has an MB plugin as it does for CU, it would all depend entirely on the data sets that are available. For CU I did have to get Cumulus to generate a specific file to deliver all the graph data from tags to substitute for data that WD delivers in clientrawextra.
A nice project for you?
Title: Re: Davis 'Live' Console script
Post by: BCJKiwi on December 22, 2013, 11:30:30 PM
I would like to thank all of you who have provided positive feed back as it is very much appreciated.  :oops:

All the best to you and yours for the imminent festive season.
Title: Re: Davis 'Live' Console script
Post by: Andy G on December 23, 2013, 08:09:35 AM
Have it running here http://www.sunprairieweather.com/davconvp2CW.php (http://www.sunprairieweather.com/davconvp2CW.php). It looks Great!

Thanks and happy holidays Andy
Title: Re: Davis 'Live' Console script
Post by: PaulMy on December 23, 2013, 12:11:47 PM
Looking good Andy, and likely you're still working on the settings so that you can make the console and the bottom right table buttons link to your graphs and data, and edit the button description to remove Cumulus ;)

Paul
http://komokaweather.ca/davconvp2CW.php (http://komokaweather.ca/davconvp2CW.php)
http://komokaweather.ca/davconvueCW.php (http://komokaweather.ca/davconvueCW.php)
Title: Re: Davis 'Live' Console script
Post by: Saunookweather on December 25, 2013, 08:13:58 PM
BCJKiwi,

Installed on my site and everything's working but I have
no wind direction arrow or barometer arrows. I have spent several
hours trying to figure out why there are no arrows. Uploaded the files
for the Saratoga template and the davcon folder with all the files
contained in the folder. I am running WD Ver10.37R Build 78.
Thank you for the great scripts !!
Title: Re: Davis 'Live' Console script
Post by: jgillett on December 25, 2013, 09:25:39 PM
Got it installed. THANKS for this!

Where would I look to change the time from 24 hour to 12 hour,
and I have a VP Forecast on there but can't get it to show up.
Latest version has that capability, Tony.

Also, I assume you know you can set the four buttons on the right to any page you want and add your own text. See mine if you need a thought.
Title: Re: Davis 'Live' Console script
Post by: BCJKiwi on December 26, 2013, 06:42:22 AM
I have no wind direction arrow or barometer arrows.
Interesting. For the first time since everything started running properly in an early build, I had that same issue a couple of days ago on the development server. Also spend a lot of time trying to work out what had happened (still running fine on the public server).
In the end I recopied all 6 .js files into the ./davcon folder and the problem went away. I assumed I had screwed up or deleted one of the files with the constant editing going on.
Perhaps you could try re-installing those files. Make sure you use binary mode transfer in your FTP client.
There is a .js script error which appears to be from jquery.console.min.js so you might try re-installing that file first (its not easy to tell exactly which file is causing the problem).
Title: Re: Davis 'Live' Console script
Post by: Saunookweather on December 26, 2013, 06:54:42 AM
Got it working. Missed the jquery.flot.min.js file. Reuploaded all .js files using  binary mode transfer.
The problem I'm having now is the wind speed just shows the average wind speed all the time and
not the real wind speed. Thank you for your help.
Title: Re: Davis 'Live' Console script
Post by: BCJKiwi on December 26, 2013, 02:25:12 PM
Glad to see you found the fix for the arrows.

The wind speed comes from clientraw.txt field #1 (average wind speed)
The only other option would be clientraw.txt field #158 (10 minute average wind speed).
Title: Re: Davis 'Live' Console script
Post by: Saunookweather on December 26, 2013, 08:10:50 PM
Ok, I'll check that out. Thank you for your help.
Title: Re: Davis 'Live' Console script
Post by: Breezy on December 27, 2013, 07:37:25 AM
Hi John,

I'm just starting to install this really cool script but I'm lacking in "PHP script" knowledge  ](*,).

Referencing page #1 of the read me text under "Requirements" #4 there needs to be a script added to the "top.php" file. What PHP scripting code do I have to place in the beginning and end of the code. Duh !!!!  :oops:

Perhaps it would be easier to forward me a copy of your "top.php" file if you are so inclined. Really appreciate your help ...

Thank you.

Jeff
Title: Re: Davis 'Live' Console script
Post by: Saunookweather on December 27, 2013, 07:58:20 AM
Hi Jeff, this is what I did hope it helps

<script type="text/javascript"
     src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>

I put this in just below the <head> in my top.php
Title: Re: Davis 'Live' Console script
Post by: Breezy on December 27, 2013, 08:24:45 AM
Saunookweather,

Thanks for the info and the fast response ...  =D&gt; Do I need to put a "<?php" tag between "head" and the "script"?

Jeff
Title: Re: Davis 'Live' Console script
Post by: Saunookweather on December 27, 2013, 08:37:29 AM
No, just the line of code. Here is what mine looks like in my top.php

   <head>
   <script type="text/javascript"
     src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
Title: Re: Davis 'Live' Console script
Post by: Breezy on December 27, 2013, 08:39:45 AM
Gotcha ... One more question ... Does the "./davcon" folder go in the "root" directory?

Jeff
Title: Re: Davis 'Live' Console script
Post by: Saunookweather on December 27, 2013, 08:42:37 AM
Yes
Title: Re: Davis 'Live' Console script
Post by: Breezy on December 27, 2013, 08:45:44 AM
Thanks for all of your help. I'm off and running ... We'll see what happens ...  \:D/

Happy New Year ...

Jeff
Title: Re: Davis 'Live' Console script
Post by: Saunookweather on December 27, 2013, 08:53:30 AM
Took me a while to get mine working. Just keep plugging away.
We have the same first name Jeff, is my first name also.
Have a Happy New Year !!

Jeff
Title: Re: Davis 'Live' Console script
Post by: Breezy on December 27, 2013, 10:53:09 AM
Hello Jeff,

I'm making some progress which you can view here ...

The VUE  http://indiantrailweather.com/davconvueCW.php

The VP2 Plus  http://indiantrailweather.com/davconvp2CW.php

I have 3 issues... 1) the arrows for the windrose and barometer are missing. I read the post in the forum about reloading the ".js" files using binary which I did but to no avail. (I only have 5 ".js" files not 6 as mentioned).

2) The forecasts on both the VP2 and VUE do not match the forecast on the real consoles.

3) The image for the VP2 does not fit the page. Where is the page adjustment located?

Thanks much ...

Jeff
Title: Re: Davis 'Live' Console script
Post by: PaulMy on December 27, 2013, 10:54:00 AM
Hi Jeff S,
Looks good and I like what appears to be customized forecast string!?!

Paul
Title: Re: Davis 'Live' Console script
Post by: Breezy on December 27, 2013, 11:33:07 AM
Hi Paul,

Do you have any idea as to how I can get the windrose and barometer arrows to appear?

http://indiantrailweather.com/davconvp2CW.php

Thanks,

Jeff B.
Title: Re: Davis 'Live' Console script
Post by: PaulMy on December 27, 2013, 12:03:20 PM
Hi Jeff B.  Sorry, since you've already tried the binary ftp I tried to find it in my notes but can't recall.  BCJKiwi should be along later on as it is still in the wee hours in NZ.

Paul



Title: Re: Davis 'Live' Console script
Post by: Breezy on December 27, 2013, 12:10:14 PM
Paul,

Will see what BCJKiwi has to offer ...  Thanks.

Jeff B.
Title: Re: Davis 'Live' Console script
Post by: mcrossley on December 27, 2013, 01:06:44 PM
Jeff, your server is not finding the script http ://indiantrailweather.com/davcon/jquery.consolegauge.js
The error being returned is:
Code: [Select]
The document name you requested (<code>/davcon/jquery.consolegauge.js</code>) could not be found on this server.
However, we found documents with names similar to the one you requested.<p>Available documents:
<ul>
<li><a href="/davcon/jquery.console.min.js">/davcon/jquery.console.min.js</a> (common basename)
<li><a href="/davcon/jquery.davconsoleCW.js">/davcon/jquery.davconsoleCW.js</a> (common basename)
<li><a href="/davcon/jquery.flot.min.js">/davcon/jquery.flot.min.js</a> (common basename)
Title: Re: Davis 'Live' Console script
Post by: Breezy on December 27, 2013, 01:16:26 PM
Mark, I do not have that file. I only have 5 ".js" files.  :roll:

Jeff B.

Title: Re: Davis 'Live' Console script
Post by: mcrossley on December 27, 2013, 01:19:01 PM
Jeff, I don't run this little applet myself, so I don't know if you are even supposed to have that script, but that was the obvious first problem I spotted when I looked at your page.
Title: Re: Davis 'Live' Console script
Post by: Breezy on December 27, 2013, 01:23:01 PM
Mark, thanks for finding the missing link ... We'll see what BCJKiwi has to add ... I believe that "./davcon" is supposed to have 6 ".js" files.

Jeff B.

Title: Re: Davis 'Live' Console script
Post by: Breezy on December 27, 2013, 02:43:54 PM
Hello BCJKiwi,

The VP2 and Vue Live Console script is a really great script. Many thanks for your hard work and others for assisting. I have it up and running at http://indiantrailweather.com/davconvp2CW.php (http://indiantrailweather.com/davconvp2CW.php) .  =D&gt; The only issue I have is the missing windrose and barometer arrows. I think that I might be missing one of the 6 ".js" files (jquery.consolegauge.js). I only have 5 ".js" files.

Great work and thanks for sharing with the weather community.  \:D/

Cheers and Happy New Year ...

Jeff B.
Title: Re: Davis 'Live' Console script
Post by: Ian. on December 27, 2013, 02:54:30 PM
Same here with 5 .js.

Has anyone set up Metric, but modified jquery (instruction 3.2) to show MPH?
Title: Re: Davis 'Live' Console script
Post by: mcrossley on December 27, 2013, 03:02:18 PM
Why don't you grab a copy of the file off Paul's site and see if that fixes the issue for you? I'm sure Paul won't mind  ;)

http://www.komokaweather.com/komokaweather-ca/davcon/jquery.consolegauge.js

BCJKiwi can sort out the distribution later if that fixes it for you.
Title: Re: Davis 'Live' Console script
Post by: Breezy on December 27, 2013, 03:25:35 PM
That fixed it , Mark !!!!!!   :-({|=  So sweet. Yes !!! Paul, thanks for your file ...

Thanks very much.  Happy New Year !!!

Jeff B.
Title: Re: Davis 'Live' Console script
Post by: Silversword on December 27, 2013, 04:19:54 PM
Hi Jeff B.,

Here is my current VP2 Console: http://www.dwayneyamato.com/wx/davconvp2CW.php (http://www.dwayneyamato.com/wx/davconvp2CW.php).

The only way for now to make your davconvp2CW console to fit your page, is to go wide format for your page.

Here is my settings for my page to do it in davconvp2CW.php script to force this page to go wide, you will need to have "Style Options" capability to use this :

############################################################################
require_once("./Settings.php");
$SITE['CSSscreen'] = 'weather-screen-blue-wide.css'; // Default screen 800px design
$SITE['CSSwideOrNarrowDefault'] = 'wide'; // 'narrow' or 'wide'
$SITE['CSSsettings_mode'] = 2;  // set to 1, 2 or 3
require_once("./common.php");
############################################################################

Also for settings for your other things in the wind and other rotation section, can be set in the same script. My example in this area:

// Settings used in this script and/or in ./davcon/jquery.davconsoleCW.js
 $imgdir    = './davcon/'; // path to jquery, css and images with trailing /
 if (!file_exists($imgdir . 'jquery.davconsoleCW.js')) {
   echo '<br /> &nbsp;&nbsp; Check path to images - jquery.davconsoleCW.js not found! <br />' ; return;}
 $console    = 'VP2';// $console = 'VP2'; for VPro2 and VPro2 Plus, $console = 'VUE'; for Vue
 $vp2Plus    = 'Y';  // $vp2Plus = 'Y' for VPro2 Plus - i.e ET/UV/Solar, $vp2Plus = 'N' if Not Plus
 $uomsys     = 'I';  // WD Users Only - $uomsys = 'M'; for Metric units, $uomsys = 'I'; for Imperial (English) units
// Settings for timing of 'live' image data rotate and compass pointer refresh behaviour
 $itimeout   = 3;    // time between image updates in seconds
                     // default 3 = frequency of rotating data updates in secs ( compass, dew, rain, ET/UV/Solar )
                     // recommend this be set to some even divisor of the 'realtime' update time.
 $windrotate = 1;    // 1 = Wind speed only in wind rose
                     // 2 = wind speed -> wind direction -> wind speed
 $dewrotate  = 3;    // 1 = Apparent -> Dew   -> Apparent
                     // 2 = Humidex  -> Dew   -> Humidex
                     // 3 = Apparent -> Chill -> Heat Index -> Dew -> Apparent
                     // 4 = Humidex  -> Chill -> Heat Index -> Dew -> Humidex
 $dayrnrotate= 2;    // 1 = Daily rain only or if vp2Plus = 'Y' Daily rain -> E-Trans -> Daily rain
                     // 2 = Daily rain -> Storm rain -> Daily rain
                     //       or if vp2Plus = 'Y' Daily rain -> E-Trans -> Storm rain -> Daily rain
 $timeformat = 2;    // 1 = Force time display to 'metric' format   hh:mm
                     // 2 = Force time display to 'Imperial' format  h:mm am
 $dateformat = 2;    // 1 = Force date display to 'metric' format   dd/mm
                     // 2 = Force date display to 'Imperial' format mm/dd
 $showupdate = false; // $showupdate = true; - Show message,  $showupdate = false; - Do NOT show message
                     // Requires var $timeofnextupdate to be updating correctly - can be an issue with some WD systems
                     // WD Users - if $timeofnextupdate in testtags.php is not present in, or not showing the right time, then
                     // please carefully review Ken True's setup guide at http://saratoga-weather.org/wxtemplates/setup-WD.php
// Show age of "real time" data file in table below console image - "Realtime" data updated ss secs ago"
 $showage    = true; // $showage = true; - Show message,  $showage = false; - Do NOT show message
                     // requires ajaxCUwx.js (Cumulus) / ajaxWDwx.js (Weather Display)
                     // requires maxupdates = 0; in ajaxCUwx.js/ajaxWDwx.js or in whatever equivalent your site uses
                     // else secs will continue to increase after the number of updates set is reached.

Hope that this might help a bit.

Regards,

--Stan Y.
   Maui, Hawaii


Title: Re: Davis 'Live' Console script
Post by: Saunookweather on December 27, 2013, 05:02:37 PM
PaulMY, my forecast comes from WD. Some were in WD there is a setting that tells WD to use
the NWS forecast instead of the console forecast. Don't remember just where that setting is
in WD, but it's there.

Jeff B., looking good on your site. I widen my page just a bit from the weather-screen-blue-narrow.css
file. here is what I have in the .css file:

#page {
        margin: 20px auto;
        color: black;
        background-color: white;
        padding: 0;
        width: 830px;
        border: 1px solid #959596;

I highlighted were I made that change.

Jeff R.
Title: Re: Davis 'Live' Console script
Post by: i_fiorentino on December 28, 2013, 03:10:58 AM
Hi BCJKiwi,
up and running here: http://www.meteocarmignano.it/wxvueconsoleCW.php
Great job  =D&gt;
Regards,


Alessandro
Title: Re: Davis 'Live' Console script
Post by: Ian. on December 28, 2013, 05:41:31 AM
Same here with 5 .js.

Has anyone set up Metric, but modified jquery (instruction 3.2) to show MPH?

UPDATE

Thanks to the link from mcrossley for providing a link to the missing .js file, redownloaded all the files and everything is working fine and thanks for the tip regarding widening the page from Saunookweather, everything fits just fine.

I have modified jquery/davconsoleCW.js to show wind speed in MPH rather than KPH when metric is selected, only just done it so calibration may be out, but as a starter I modified:

line 186 replace value 1.852 with 1
line 187 replace KPH with MPH

Title: Re: Davis 'Live' Console script
Post by: Breezy on December 28, 2013, 09:11:59 AM
Hi Stan and Jeff R.,

Thanks for your ideas on how to fit the VP2 on the page.

I tried both of your ideas and was able to get the VP2 to fit but I don't know how to get my banner at the top to expand to fit the wider page(s).  :roll: It's not a big deal.

Jeff


 
Title: Re: Davis 'Live' Console script
Post by: Saunookweather on December 28, 2013, 09:37:32 AM
Well Jeff, not sure on your site. I have my site set to only use
the weather-screen-blue-narrow.css so when I changed the width
it was for the all pages on my site and my banner just worked.
Not sure why but it fit just right.

#page {
        margin: 20px auto;
        color: black;
        background-color: white;
        padding: 0;
        width: 830px;
        border: 1px solid #959596;



went from 800px to 830px in the width section of my weather-screen-blue-narrow.css
Made all my pages just a little bit wider to just fit my console inside it's page.
Title: Re: Davis 'Live' Console script
Post by: Breezy on December 28, 2013, 10:00:50 AM
Ok I'm getting there but not quite  :roll: The forecast icons on the real consoles and the VP2/VUE console scripts do not match. Here are my testtags:

$timeofnextupdate =  '12:20 am'; // Time of next Update/Upload of the weather data to your web page (based on the web table update

$vpforecasttext = 'MOSTLY CLOUDY THIS MORNING...THEN BECOMING PARTLY SUNNY. NOT AS COOL WITH HIGHS IN THE LOWER 40S. SOUTHWEST WINDS 5 TO 10 MPH...INCREASING TO AROUND 15 MPH WITH GUSTS UP TO 25 MPH THISAFTERNOON. ';   // Forecast text from the Davis VP

This forecast is static on the VP2/VUE console scripts and appears that it is only updating once per day at 12:26 am

The forecasts are updating once per hour on the real consoles but are not updating to the VP2/VUE console scripts.   ](*,)

Jeff B.
Title: Re: Davis 'Live' Console script
Post by: Breezy on December 28, 2013, 10:08:54 AM
Jeff R.,

Well I'll keep checking around in my files. When I started my site about 2 years ago I had some customizing work done on the "css" files and the banner ( #-o). It probably has something to do with that. I'll have to poke around some more and dig into the issue.

Thanks for your help.

Jeff B.
Title: Re: Davis 'Live' Console script
Post by: Saunookweather on December 28, 2013, 10:11:22 AM
Not sure on the forecast. Till you mentioned it, I hadn't noticed
that my forecast icon wasn't matching what my console was showing.
Something new to figure out. If I figure anything out I'll post what
I did to get both working.

Jeff R.
Title: Re: Davis 'Live' Console script
Post by: Gert Woerden on December 28, 2013, 10:31:37 AM
Hi
I have also this script  and it is working ok
I see this have the screen from the Vue that I have made
Some time ago 
But there are not so good  !!
I have made new one’s 
Now the wind roos is not moving if you push on the light button
And the background from the VP2 is transparent
Also made a new background color 
Hope you like ??
Script Vue  http://www.weerstation-woerden.nl/davconvueCW.php

screens below
http://www.weerstation-woerden.nl/download/vp2_console.png (http://www.weerstation-woerden.nl/download/vp2_console.png)
http://www.weerstation-woerden.nl/download/vp2_console_copy.png (http://www.weerstation-woerden.nl/download/vp2_console_copy.png)
http://www.weerstation-woerden.nl/download/vp2_console_lit.png (http://www.weerstation-woerden.nl/download/vp2_console_lit.png)
http://www.weerstation-woerden.nl/download/vue_console.png (http://www.weerstation-woerden.nl/download/vue_console.png)
http://www.weerstation-woerden.nl/download/vue_console_copy.png (http://www.weerstation-woerden.nl/download/vue_console_copy.png)
http://www.weerstation-woerden.nl/download/vue_console_lit.png (http://www.weerstation-woerden.nl/download/vue_console_lit.png)

if you need another background color  ask my and I can made it
greetings  Gert
Title: Re: Davis 'Live' Console script
Post by: Saunookweather on December 28, 2013, 10:48:33 AM
Thank you Gert. I'll check them out.
I really like your site, very nice.


Jeff R.
Title: Re: Davis 'Live' Console script
Post by: Breezy on December 28, 2013, 11:07:39 AM
Hi Paul,

Do you have any idea as to why my graph and forecast update is locked on 12:20 am. Yours is working correctly. Some setting in WD?

Thanks.

Jeff B.
Title: Re: Davis 'Live' Console script
Post by: Saunookweather on December 28, 2013, 11:38:53 AM
Jeff B. went back to using the forecast from the console
and now my forecast icon is working. the place were to change
that is: Control Panel, FTP & Connections METAR/NOAA, Noaa
Forecast Download. I unchecked the 2 boxes in that section.
Also under Universal Setup, I checked the box: Use the forecast
for updating the main screen icons.
Don't now about the forecast update yet. This is what I
have figured out so far.

Jeff R.
Title: Re: Davis 'Live' Console script
Post by: Breezy on December 28, 2013, 12:36:38 PM
Jeff R.

Where is the Universal Setup?

Jeff B.
Title: Re: Davis 'Live' Console script
Post by: Maumelle Weather on December 28, 2013, 12:37:26 PM
Look under "Setup". It is towards the bottom of that list.

John
Title: Re: Davis 'Live' Console script
Post by: Breezy on December 28, 2013, 12:39:44 PM
Thanks ... I got it.

Jeff B.
Title: Re: Davis 'Live' Console script
Post by: Breezy on December 28, 2013, 01:12:03 PM
I think that I now understand about the forecast. I'm reporting the NWS forecast which was issued at 12:25 am EST. This is OK with me but you can have the Davis VP forecast reported instead of the NWS forecast. Still trying to figure out the forecast icon issue which is stuck on the "sun" icon. Oh well ... Enough for today. Going to a holiday dinner party with family. Back tomorrow. Great script  =D&gt;

Jeff B.
Title: Re: Davis 'Live' Console script
Post by: Breezy on December 28, 2013, 01:20:59 PM
I've got it ... Finally having the great VP2/VUE script duplicate the real Davis VP2/VUE consoles.  So happy ...    \:D/

Jeff B.
Title: Re: Davis 'Live' Console script
Post by: PaulMy on December 28, 2013, 01:42:50 PM
Hi Jeff B,
Quote
Do you have any idea as to why my graph and forecast update is locked on 12:20 am. Yours is working correctly. Some setting in WD?
I use Cumulus, but as you use WD I note in the script lines 162-165 the following:

 $showupdate = true; // $showupdate = true; - Show message,  $showupdate = false; - Do NOT show message
                     // Requires var $timeofnextupdate to be updating correctly - can be an issue with some WD systems
                     // WD Users - if $timeofnextupdate in testtags.php is not present in, or not showing the right time, then
                     // please carefully review Ken True's setup guide at http://saratoga-weather.org/wxtemplates/setup-WD.php

but not sure if that could be the reason.

Paul
Title: Re: Davis 'Live' Console script
Post by: BCJKiwi on December 28, 2013, 06:41:20 PM
It seems I have been away too long!

A few points of clarification.
1. The graphics are all new and much improved over the originals. The screens of the console images have been completely replaced.
2. Forecasts. The script relies on the $vpforecasttext var to contain the actual Davis Forecast in English as this is parsed to determine the icon to use. This was the only way I could see to make the icon match the actual console. Using an alternative forecast won't achieve a match. It is an attempt to represent the actual console!
3. Sorry about the screen widths. The image is a fixed size so if the screen is too narrow, the only practical answer is to adjust the screen width.
4. Time of next update - if this is not filled or not updating on your website, then you do need to check WD - Ken has a good description of the configuration process on his site which does cover this.

Title: Re: Davis 'Live' Console script
Post by: Gert Woerden on December 29, 2013, 04:28:45 AM
Hi to you all
Today I  have find a problem into the script
This is only if you have 2 weather stations  and run weather display two times !!!!
The problem :
If you have the VP2 en VUE script running  you will see that all info are the same
The script looks for the head clientraw.txt and clientrawextra.txt
This is strange because the pads are not the same into davconvp2CW.php  and  davconvueCW.php
I just discover  you most disable 1 line into your second script from your weather station
Go to the davconvueCW.php file ore davconvp2CW.php  and disable the line
if (isset($SITE['clientrawfile'])) {$dataurl = $SITE['clientrawfile'];}  // Use Saratoga setting if available
you can disable it with // and the front
now the script see the pad to the clientrawfile
hope this will help
Greetings  Gert


Title: Re: Davis 'Live' Console script
Post by: BCJKiwi on December 29, 2013, 04:58:29 AM
This is only if you have 2 weather stations  and run weather display two times !!!!
This an untested use of the scripts.
Do you mean you have two websites, two WDs and two consoles running? If so the paths should be different and therefore there should be no conflicts.
If you are doing something else then a much better description of the setup for each system would be needed.
A good start would be links to the different websites.
But it seems you have found one solution. Perhaps a better one for your special setup would be to hard-code the paths to the essential files in each instance.
Title: Re: Davis 'Live' Console script
Post by: Gert Woerden on December 29, 2013, 08:07:09 AM
hi
yes I have 2 consoles running  Davis Pro2  and the Vue
and I have 2 weather displays running on the wx computer
have also 2 different maps on the server for al the files

I have your script here  Vue  = http://www.weerstation-woerden.nl/davconvueCW.php  still into test
and the Pro2 = http://www.weerstation-woerden.nl/davconvp2CW.php  also into test ( most translate some rules )

the rule : if (isset($SITE['clientrawfile'])) {$dataurl = $SITE['clientrawfile'];}  // Use Saratoga setting if available

this looks for het file clientrawfile  via the ajaxWDwx3.js ore it is another file  I don’t know ??
don’t shoot my if I am wrong ;-)

my settings  Pro2
if ($WXsoftware == 'WD') {
   $dataurl  = './WDL/clientraw.txt';       // for Weather Display 'realtime' data
   if (isset($SITE['clientrawfile'])) {$dataurl = $SITE['clientrawfile'];}  // Use Saratoga setting if available
   $graphurl = './WDL/clientrawextra.txt';  // for Weather Display graph data

My settings Vue
if ($WXsoftware == 'WD') {
   $dataurl  = './WDL_VUE/clientraw.txt';       // for Weather Display 'realtime' data
   //if (isset($SITE['clientrawfile'])) {$dataurl = $SITE['clientrawfile'];}  // Use Saratoga setting if available
   $graphurl = './WDL_VUE/clientrawextra.txt';  // for Weather Display graph data

If I remove the //  it will read ./WDL/clientraw.txt   and not ./WDL_VUE/clientraw.txt

I have test it
I have remove the file clientraw.txt  for the folder WDL = for the Pro2  on the server
and I see this  (http://www.weerstation-woerden.nl/foto/clientrawremove.png)
And if the file clientraw.txt  is back into the folder it’s read the clientraw.txt  from the Pro2
And if I disable the line  with // before it no problem
For test I have made a new page  1 is without the //
And one is with the // before
See for your self there are not the same
1= http://www.weerstation-woerden.nl/davconvueCW-kopie.php (http://www.weerstation-woerden.nl/davconvueCW-kopie.php)
2= // http://www.weerstation-woerden.nl/davconvueCW.php (http://www.weerstation-woerden.nl/davconvueCW.php)    

sorry I can not good explain my self into Engels
but I hope you know what I mean
greetings  Gert




This is only if you have 2 weather stations  and run weather display two times !!!!
This an untested use of the scripts.
Do you mean you have two websites, two WDs and two consoles running? If so the paths should be different and therefore there should be no conflicts.
If you are doing something else then a much better description of the setup for each system would be needed.
A good start would be links to the different websites.
But it seems you have found one solution. Perhaps a better one for your special setup would be to hard-code the paths to the essential files in each instance.

Title: Re: Davis 'Live' Console script
Post by: meteo-saint-brevin on December 29, 2013, 11:41:06 AM
Hi BCJKiwi,

MANY THANKS for "your superb looking live console" script  =D&gt;

Got it installed it here :(http://www.meteo-saint-brevin.fr/console.htm)

I did not setup everything now. I just have 2 questions:
1 - I change the value for Y since I am using a VP2+. I did not see any change. No indication of UV and Solar values
2 - Sometime, he Lo value is higher than the Hi value for TEMP and WIND. Seems to be correct for HUM and BAR.

Best regards,
Marcel
Title: Re: Davis 'Live' Console script
Post by: meteo-saint-brevin on December 29, 2013, 11:44:53 AM
Ooops, sorry, I forgot the link :

http://www.meteo-saint-brevin.fr/console.htm (http://www.meteo-saint-brevin.fr/console.htm)
Title: Re: Davis 'Live' Console script
Post by: Breezy on December 29, 2013, 12:57:22 PM
Hello Marcel,

The solar and UV are designed to only cycle and be shown during the daylight hours. At night time they are set to "off" and are not viewable.

Best regards,

Jeff B.
Title: Re: Davis 'Live' Console script
Post by: jgillett on December 29, 2013, 01:43:47 PM
Note that 2.2.5 is, as of this posting, current. Because of the rapid updates I would suggest keeping up to date.
Title: Re: Davis 'Live' Console script
Post by: BCJKiwi on December 29, 2013, 02:32:55 PM
I have your script here  Vue  = http://www.weerstation-woerden.nl/davconvueCW.php
and the Pro2 = http://www.weerstation-woerden.nl/davconvp2CW.php
I think this is the cause.
While you have two WD delivering into two different paths, the Saratoga scripts are running in the same folder and therefore the Saratoga environment is the same for both, so one will over-ride the other.
So you must manually set the path for one of them. Probably best to manually set them both for your special set up.
Title: Re: Davis 'Live' Console script
Post by: meteo-saint-brevin on December 29, 2013, 03:24:02 PM
Hi, Jeff B,

Thank you for your message. I knew that the UV-SOLAR function was not available during the night.
But the full day is gone here, it was really very sunny, and.... nothing on the console !
I probably was wrong in my settings, and I hope some clues from the author of the script.

Regards,

Marcel
Title: Re: Davis 'Live' Console script
Post by: Gert Woerden on December 29, 2013, 04:37:00 PM
hi
that’s possible there are into my root
only I can not put the script into a folder on the server  
if I do I have a error from whos online   but no problem
it is working ok on this way
and I leave it as it is
ps. into a post of my above you will find some new screens from the console vp2 and Vue
maybe if you are make again a update you can put them in ?
greetings  Gert


I have your script here  Vue  = http://www.weerstation-woerden.nl/davconvueCW.php
and the Pro2 = http://www.weerstation-woerden.nl/davconvp2CW.php
I think this is the cause.
While you have two WD delivering into two different paths, the Saratoga scripts are running in the same folder and therefore the Saratoga environment is the same for both as one will over-ride the other.
So you must manually set the path for one of them. Probably best to manually set them both for your special set up.
Title: Re: Davis 'Live' Console script
Post by: BCJKiwi on December 29, 2013, 10:35:09 PM
I probably was wrong in my settings, and I hope some clues from the author of the script.
Marcel
There are a number of issues!
Firstly this not the right place for support of the Cumulus only version which you appear to be running. Please raise questions for that version on the Cumulus Forum
Secondly, right now, solar is off so I am unable to see what is going on.
During the day, the UV should show 0.0 if there is no data what do you see?
If you click on the word SOLAR on the console what do you see in the graph?
For Cumulus, the VP2 Plus UV, SOLAR and ET data is extracted directly from realtime.txt.

The scripts appear to have been modified and have a number of errors. Until all the errors are fixed and I am able to see the if code is working as designed. How extensive the modifications are will affect how much I can help.

See the first post regarding updates a new version :-) - The Cumulus version will be available on from the Cumulus Forum.
Please do not reply here, but ask again on the Cumulus Forum if you are still having trouble once you have updated to the new version.
Title: Re: Davis 'Live' Console script
Post by: meteo-saint-brevin on December 30, 2013, 02:20:30 AM
Thank you for your answer and sorry for having asked my question on this forum.
In fact, I did not find your topic on Cumulus forum. But I got it now.
Well, tomorrow, I will uninstall everything, download the last release, install it without any modification
and let you know on Cumulus forum how it works here.
Thank you again for your help and best regards,
Marcel
Title: Re: Davis 'Live' Console script
Post by: Bunty on December 30, 2013, 03:17:20 AM
Very good, but I hope a future edition will have HI/LOW correspond to the console rather than a different page.
Title: Re: Davis 'Live' Console script
Post by: K3JAE on January 01, 2014, 07:25:24 AM
Have it working fine, with a few cosmetic changes to match my site theme.

Can review it here: http://www.k3jae.com/davconvp2CW.php (http://www.k3jae.com/davconvp2CW.php)

Thanks for the easy to install updated script. This appears to be more functional and have had no issues, to date, with it. Once daylight happens I will double check to make sure ET/UV/Solar etc. are properly being dumped into console.
Title: Re: Davis 'Live' Console script
Post by: Gert Woerden on January 03, 2014, 07:15:09 AM
Hi to you all
Today I have made a animation screen from the Vue
Now the antenna is bilking ( every 3sec ) into the screen
For made this work you most edit the php files
change all the lines with the vue_console_lit.png and vue_console.png
to vue_console_lit.gif  and vue_console.gif
screen in action http://www.weerstation-woerden.nl/davconvueCW.php

(http://www.weerstation-woerden.nl/download/vue_console_lit.gif)
screen download
1 = http://www.weerstation-woerden.nl/download/vue_console_lit.gif
2= http://www.weerstation-woerden.nl/download/vue_console.gif

Greetings  Gert
Title: Re: Davis 'Live' Console script
Post by: weathergirl on January 04, 2014, 12:17:37 PM
The script is working fine on my site also, everything is displaying as it should:

http://www.beamsvillewx.ca/davconvp2CW.php (http://www.beamsvillewx.ca/davconvp2CW.php)

There is, however, an extraneous "-->" appearing on the top left of the console, would anybody know where in the script this is coming from so I may remove it?
Title: Re: Davis 'Live' Console script
Post by: jgillett on January 04, 2014, 01:01:24 PM
There is, however, an extraneous "-->" appearing on the top left of the console, would anybody know where in the script this is coming from so I may remove it?
Hi,

Looks like a closing HTML comment with probably no opening one to keep it company. Try a search for it.

HTH...
Title: Re: Davis 'Live' Console script
Post by: PaulMy on January 04, 2014, 01:03:16 PM
Hi Anne-Marie,
From a View source it appears to be line 571, but I don't know where in your script file that would be.

Paul
Title: Re: Davis 'Live' Console script
Post by: jgillett on January 04, 2014, 02:17:26 PM
Appears to be around 253 in the 2CW-inc.php script. As mentioned, you're probably missing the opening <!-- a few lines above that (in my copy, anyway).
Title: Re: Davis 'Live' Console script
Post by: weathergirl on January 04, 2014, 04:14:00 PM
Thanks for all your help, guys, I solved the problem  :-)
Title: Re: Davis 'Live' Console script
Post by: BCJKiwi on January 12, 2014, 08:28:36 PM
January 13 2014
Package updated to ver 2.4.0!

See first post for details
Title: Re: Davis 'Live' Console script
Post by: Bunty on January 13, 2014, 04:01:19 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 (http://stillwaterweather.com/wx/davconvp2CW.php)
Title: Re: Davis 'Live' Console script
Post by: Gert Woerden on January 14, 2014, 04:01:17 PM
thanks for this  update
the scripts works ok on the website
thanks for made the antenna bilking into the Vue 
and also the X into the VP2 
greetings   Gert
Title: Re: Davis 'Live' Console script
Post by: BCJKiwi on January 14, 2014, 11:03:10 PM
Hi Folks,

It seems the station number was left at 6 (the one I use) and some of the sites seem to have this set at 6 also - suspect the setting;
$stnnumbers at line 161
may have been missed?

Have changed it on the downloads page for new downloads.
Title: Re: Davis 'Live' Console script
Post by: DW7240 on January 19, 2014, 11:03:42 AM
Well after installing the latest update, my graph and moon images don't correspond to the console, and seem to be fixed, they are not updating as they should, same problem I had the last time.  I've also noticed that there is no snow symbol showing either when it's clearly showing on the console.

Any ideas ? if I dare ask knowing the work you put into the fix last time.

Nick.
Title: Re: Davis 'Live' Console script
Post by: BCJKiwi on January 19, 2014, 09:16:55 PM
Well It looks like you have it working now? - is that correct or do you still have an issue I don't see at http://dw7240.com/Base-Canada/davconvp2CW.php ?

If so a couple of Q's;
1. did you install a _Full or an _Upd?
2. In either case did you at least replace ALL the files that are in the update package? - if not, please try that.

The graphs and the icons are two separate issues.

Graph data comes directly from clientrawextra so look there to ensure that that part of the process is working.
Icons are decoded from the original Davis English Forecast strings as delivered by WD/Saratoga in the variable $vpforecasttext - what is in that variable on your system?

If you check the ver 2.4.0 Howto you will find some info on widening your page a little so the image does not overhang.
Title: Re: Davis 'Live' Console script
Post by: DW7240 on January 21, 2014, 10:53:43 PM
Hi,

Problem solved...........this time of my own making  :oops:  I was having the devcon24T file sent to the Base-canada folder, should have been the Base-Canada folder, wow who would of thought a capital letter would make so much difference ?  I just thought, I'll just check that the file is sent correctly, as low and behold is wasn't.  Now everything is fine.....sorry to have wasted your time, but as ever thank you very much !!!!  =D&gt; :grin:

Nick. DW7240.
Title: Re: Davis 'Live' Console script
Post by: BCJKiwi on January 22, 2014, 03:17:07 AM
Thanks for the feedback - Its always good to know when a query gets resolved and how that resolution was achieved - helps everyone.

It's also nice to know the fix was straight forward :-)
Title: Re: Davis 'Live' Console script
Post by: DW7240 on January 26, 2014, 12:52:15 PM
Hi,

Hmm just when I think everything is ok with the console script..........not so.

My answer...uninstall / reinstall everything.......answer.......everything works, graphs as they should be etc, but........I have noticed two things....namely the forecast icons......I have no snow icon or Clear conditions icon (the one that looks like a big sun / star, this displays on the console where the snow icon displays, in between moon and cloud conditions)

Also when the console displays cloudy/sun conditions icon and next to it the snow icon, the scripts displays the raining cloud conditions icon only, so in theory what's on the console, the script doesn't live upto.

Version installed: latest full version 'davconsoleCW240_full'

Any thoughts ? PLEASE.

Nick. DW7240.
Title: Re: Davis 'Live' Console script
Post by: BCJKiwi on January 26, 2014, 02:38:49 PM
Will PM you - need to know some details and get some files from you to see what is happening.
Title: Re: Davis 'Live' Console script
Post by: W3DRM on January 27, 2014, 01:00:56 PM
Is there any similar scripts available for VWS users?
Title: Re: Davis 'Live' Console script
Post by: BCJKiwi on January 27, 2014, 03:09:16 PM
Is there any similar scripts available for VWS users?
Not at this time (this is the third request for a different system I have received so far)
Conceptually adding other systems is straightforward as there are three sets of data required
"realtime",
a handful of Saratoga variables,
Data for the graphs.

However, as I don't have access to weather software other than Cumulus as my primary, and a test version of WD, implementing and testing is not practical without some help. I received much help and assistance with testing from other forum members to get the package to its present state. 
I have prepared list of the variables required (these can be worked out by studying the scripts anyway).
I am happy to work with anyone who can supply the data files and provide assistance with debugging and testing.
However, as you may appreciate there is work involved so no guarantees on timetable or final result!
So if you wish to get involved and can provide the data and assistance then please PM me.
Title: Re: Davis 'Live' Console script
Post by: W3DRM on January 28, 2014, 12:45:44 AM
Is there any similar scripts available for VWS users?
Not at this time (this is the third request for a different system I have received so far)
Conceptually adding other systems is straightforward as there are three sets of data required
"realtime",
a handful of Saratoga variables,
Data for the graphs.

However, as I don't have access to weather software other than Cumulus as my primary, and a test version of WD, implementing and testing is not practical without some help. I received much help and assistance with testing from other forum members to get the package to its present state. 
I have prepared list of the variables required (these can be worked out by studying the scripts anyway).
I am happy to work with anyone who can supply the data files and provide assistance with debugging and testing.
However, as you may appreciate there is work involved so no guarantees on timetable or final result!
So if you wish to get involved and can provide the data and assistance then please PM me.

Thanks for the clear explanation. I would love to jump in and try this but at the moment I am swamped with non-weather related activities and commitments.

If I may make a suggestion that might apply not only to this script but many others too. Create some kind of script that automatically creates a common table of the various parameters that can be used by the myriad of scripts that have been and will be developed in the future. Basically, one creates a table that describes what their particular weather-station configuration is. It could include fields for CU, VWS, WD, and other weather programs and stations in existence. Once the configuration is known, a master table would be created that consists of all available data elements. Then, scripts, such as yours and others, could merely grab the necessary data fields and use them as they wish for that application. Ken (Saratogawx) has done something similar to this with some of his scripts. But, I'm thinking of something that is universal that future developers could tap into. I suppose this suggestion should go in a separate post of its' own so as not to detract from the Davis Live Console topic being discussed here.
Title: Re: Davis 'Live' Console script
Post by: DW7240 on January 28, 2014, 07:14:57 PM
Is there any similar scripts available for VWS users?
Not at this time (this is the third request for a different system I have received so far)
Conceptually adding other systems is straightforward as there are three sets of data required
"realtime",
a handful of Saratoga variables,
Data for the graphs.

However, as I don't have access to weather software other than Cumulus as my primary, and a test version of WD, implementing and testing is not practical without some help. I received much help and assistance with testing from other forum members to get the package to its present state. 
I have prepared list of the variables required (these can be worked out by studying the scripts anyway).
I am happy to work with anyone who can supply the data files and provide assistance with debugging and testing.
However, as you may appreciate there is work involved so no guarantees on timetable or final result!
So if you wish to get involved and can provide the data and assistance then please PM me.

Thanks for the clear explanation. I would love to jump in and try this but at the moment I am swamped with non-weather related activities and commitments.

If I may make a suggestion that might apply not only to this script but many others too. Create some kind of script that automatically creates a common table of the various parameters that can be used by the myriad of scripts that have been and will be developed in the future. Basically, one creates a table that describes what their particular weather-station configuration is. It could include fields for CU, VWS, WD, and other weather programs and stations in existence. Once the configuration is known, a master table would be created that consists of all available data elements. Then, scripts, such as yours and others, could merely grab the necessary data fields and use them as they wish for that application. Ken (Saratogawx) has done something similar to this with some of his scripts. But, I'm thinking of something that is universal that future developers could tap into. I suppose this suggestion should go in a separate post of its' own so as not to detract from the Davis Live Console topic being discussed here.

Great idea Don, sounds like a lot of hard work compiling it, but once done it's there for the asking.

 =D&gt;

Nick. DW7240.
Title: Re: Davis 'Live' Console script
Post by: BCJKiwi on January 28, 2014, 11:50:38 PM
Well, yes it does sound like a great idea - it's just not easy to do.

Ken has the xx-defs to convert all manner of data into a standard.
The console script can only take advantage of a handful of items from this process.
The 'realtime' is different in various ways for each software system and they do not have all the same data or in the same order.

The graph data for the WD console script comes from clientrawextra but for Cumulus, a file from webtags with almost 160 variables was created to get the corresponding data from Cumulus.

So the nirvana we would seek to enable all scripts what ever they may be in the future would effectively require a massive conversion file of every tag and every data file from every software package, or, an agreed standard that all the software packages followed - don't see either happening anytime soon! Then you would be loading every variable to the website every interval and you might only require a few of them.

The reality is that setting up the necessary file(s) for a particular script is relatively simple once you know what a given software package calls its variables and what their units are. Since I only have 2 software packages that is all I have designed for - I just need someone to supply the data required (as per the file I created listing them) from an alternate software system to enable that to be included.

Title: Re: Davis 'Live' Console script
Post by: Cienega32 on March 04, 2014, 09:04:42 PM
I finally got around to putting this great script in: http://www.lascruces-weather.com/davconvp2CW.php (http://www.lascruces-weather.com/davconvp2CW.php)

I use a 2nd temp sensor in the pool so I adjusted the script(s) to show that like I have on the actual console. I also don't have a VP2 Plus but I run a Solar sensor so I needed to make some changes for that as well; dropping the UV display. What I ended up with is (in the box area) TEMP IN and POOL TEMP at nite . When the sun comes up, it'll show as POOL TEMP and SOLAR/HUM IN (rotating).

I still have to set up the button links and actually link to it but it's good to have the console readily available on-line like this!

Kudos and thanks to BCJKiwi, Axelvold and all involved with putting this together.
Title: Re: Davis 'Live' Console script
Post by: CNYWeather on March 04, 2014, 09:11:00 PM
Pool temp is a bit chilly.  :grin:
Title: Re: Davis 'Live' Console script
Post by: Cienega32 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.
Title: Re: Davis 'Live' Console script
Post by: Bunty 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 (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 (http://stillwaterweather.com/wx/davconvp2CW.php)
Title: Re: Davis 'Live' Console script
Post by: BCJKiwi 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?
Title: Re: Davis 'Live' Console script
Post by: Bunty 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.
Title: Re: Davis 'Live' Console script
Post by: ValentineWeather 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
Title: Re: Davis 'Live' Console script
Post by: PaulMy 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
Title: Re: Davis 'Live' Console script
Post by: Bunty 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.
Title: Re: Davis 'Live' Console script
Post by: Bunty 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.
Title: Re: Davis 'Live' Console script
Post by: Bunty on April 09, 2014, 03:19:07 PM
Oh, well, at least a less elaborate version works:  http://stillwaterweather.com/wx/vp_console.php (http://stillwaterweather.com/wx/vp_console.php)
Title: Re: Davis 'Live' Console script
Post by: BCJKiwi 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?
Title: Re: Davis 'Live' Console script
Post by: blainec on August 17, 2014, 02:19:40 AM
has anyone got this to work on Leuven-Template
Title: Re: Davis 'Live' Console script
Post by: Bunty 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 (http://stillwaterweather.com/wx/davconvp2CW.php)
Title: Re: Davis 'Live' Console script
Post by: ValentineWeather on October 29, 2014, 11:38:07 PM
I wonder with the older version running it's somehow messing with the newer version. 
Title: Re: Davis 'Live' Console script
Post by: miraculon 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 (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 (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 (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.


Title: Re: Davis 'Live' Console script
Post by: BCJKiwi 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
Title: Re: Davis 'Live' Console script
Post by: ValentineWeather 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. 
Title: Re: Davis 'Live' Console script
Post by: BCJKiwi 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>
Title: Re: Davis 'Live' Console script
Post by: ValentineWeather 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. 
Title: Re: Davis 'Live' Console script
Post by: miraculon 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 (http://rogerscityweather.com/davconvueCW.php)

Greg H.
Title: Re: Davis 'Live' Console script
Post by: BCJKiwi 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.
Title: Re: Davis 'Live' Console script
Post by: Bunty 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 (http://stillwaterweather.com/wx/wxvp2.php)
Title: Re: Davis 'Live' Console script
Post by: BCJKiwi 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
Title: Re: Davis 'Live' Console script
Post by: ValentineWeather 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
Title: Re: Davis 'Live' Console script
Post by: Bunty 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?
Title: Re: Davis 'Live' Console script
Post by: ValentineWeather on October 31, 2014, 07:27:46 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?
Yeah kinda, its really generic and with all the other info available why confuse people. Yesterday it was forecasting warmer conditions for today because the pressure was rising rapidly and not taking into account it was a Canadian high pressure.
Title: Re: Davis 'Live' Console script
Post by: bianconero57 on November 23, 2014, 10:46:32 AM
Hello Community
for my weather station VP2 i can send you my data via Meteohub server
http://wiki.meteohub.de/Introduction
clientraw.txt automatically generates the files and / or clientrawextra.txt ...
allowing me to put my data online (flash animation) WDLive ??

explain the possibility of using (possibly) the script for displaying live console  :?:

thank you in advance ;)
greetings
Title: Re: Davis 'Live' Console script
Post by: BCJKiwi on November 23, 2014, 04:03:18 PM
Sent you a message which should get things working.
Title: Re: Davis 'Live' Console script
Post by: SteveJ on February 02, 2015, 01:24:53 AM
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.

I'm also trying to get this working with MeteoBridge, but so far I just get the dreaded "not found":

http://weather.lakewebster.com/davconvp2CW.php

I've made the change in jquery.davconsoleCW.js to change the WD variable to MB, but beyond that I'm not sure what to try next.

Anyone else have tips on getting this working with MeteoBridge data? Thanks!
Title: Re: Davis 'Live' Console script
Post by: miraculon on February 02, 2015, 09:37:19 AM
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.

I'm also trying to get this working with MeteoBridge, but so far I just get the dreaded "not found":

http://weather.lakewebster.com/davconvp2CW.php

I've made the change in jquery.davconsoleCW.js to change the WD variable to MB, but beyond that I'm not sure what to try next.

Anyone else have tips on getting this working with MeteoBridge data? Thanks!

Sorry to burst your bubble, but my meteohub generates the clientraw.txt and clientrawextra.txt files, not meteobridge.

I substituted clientraw.txt (and the extra version) appending to your URL and I got a "not found" error.

This was in my earlier post on the subject:

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

My site (and uploads to the various Wx services) are done by a hodge-podge of both my meteohub and meteobridge.

Greg H.
Title: Re: Davis 'Live' Console script
Post by: SteveJ on February 02, 2015, 10:00:46 AM
Thanks for the reply, @miraculon. That does indeed burst my bubble. :)

I'll email Boris and see if he knows of any ability (or has any plans) to allow MB to generate a clientraw.txt and clientrawextra.txt.
Title: Re: Davis 'Live' Console script
Post by: schwab on February 03, 2015, 08:10:28 AM
My station is a Davis VP2 using the WeatherlinkIP data logger and WeatherCat on a MacBookPro.

The data is live on the web at www.schwab1.com   

We use Saratoga scripts to publish this website.

Any chance the Davis 'Live' Console script will work on my set up?
 :roll:

Thanks.
Title: Re: Davis 'Live' Console script
Post by: BCJKiwi on February 03, 2015, 02:42:33 PM
Sorry, I have zero knowledge or experience with your setup.
If you could somehow generate the data files to match either Cumulus or WD tags then it may work.
Two files are required;
"realtime" data and 24 hours of hourly for the graphs.
WD supplies both files,
Cumulus requires an additional data file for the graph data and a few other variables.

I have no idea how you might generate these from WeatherCat.
Title: Re: Davis 'Live' Console script
Post by: SteveJ on February 03, 2015, 02:48:58 PM
Anyone know if VWS can generate the necessary files for it to work?
Title: Re: Davis 'Live' Console script
Post by: W3DRM on February 06, 2015, 03:55:11 PM
Anyone know if VWS can generate the necessary files for it to work?

Same question was asked earlier in this thread.
The developer does not have VWS so is unable to do anything with the scripts. He is (was) looking for someone to work with him on it. If you have the time and are interested, that offer may still stand. I personally would love to have something similar as I also use VWS but just don't have the time to work on it.
Title: Re: Davis 'Live' Console script
Post by: virusdunil on May 28, 2015, 01:39:53 PM
Is there a similar for Leuven template ?
Title: Re: Davis 'Live' Console script
Post by: bianconero57 on June 08, 2015, 10:55:34 AM
hello
upload Saratoga Template together with my Meteohub server
I proceeded to install the script for the live console Davis
http://valdefench57sgz.franceserv.com/meteo/davconvp2CW.php

i did not get to show UV + SOLAR alternately ?
"davconvp2CW.php" and I change well
at line 156, change $vp2Plus = 'N'; to $vp2Plus = 'Y';

how to display the wind speed unit ("km/h") ?
and properly display the variable "APPARENT" ?

there there's also problems with the icon of the moon phase right ??

another problem is the lack of GRAPHS ?
my Meteohub automatically generates the files.txt :
"clientraw" / "clientrawdaily" / "clientrawextra" and "clientrawhour"

thank you in advance
greetings
Title: Re: Davis 'Live' Console script
Post by: BCJKiwi on June 08, 2015, 04:46:01 PM
The scripts have not been tested against MeteoHub/meteoBridge and there are some differences in output compared to WD.
See other posts in this thread from users of meteobridge/hub for further info.

Carefully check ALL the settings in davconvp2CW.php

I see you have Solar and UV displaying now, however Solar and UV should NOT be displaying if it is not daylight. You appear to have both displaying at 22:23.
Edit - now see these have turned off at 22:48 ???

The setting for $dewrotate controls the display of dew/apparent/Humidex/Heat Index/Chill

I see wind speed is showing in KPH so presumably you have now set $uomsys correctly.

The moon phase icon requires $latitude to be set correctly, i.e. >= 0 for the Northern Hemisphere or < 0 for the southern Hemisphere. Note this has to be a regular number so simplest to use 1 or -1 instead of actual latitude!

I see you also now have the graphs working.
Title: Re: Davis 'Live' Console script
Post by: W3DRM on June 08, 2015, 09:19:06 PM
Is there any similar scripts available for VWS users?
Not at this time (this is the third request for a different system I have received so far)
Conceptually adding other systems is straightforward as there are three sets of data required
"realtime",
a handful of Saratoga variables,
Data for the graphs.

However, as I don't have access to weather software other than Cumulus as my primary, and a test version of WD, implementing and testing is not practical without some help. I received much help and assistance with testing from other forum members to get the package to its present state. 
I have prepared list of the variables required (these can be worked out by studying the scripts anyway).
I am happy to work with anyone who can supply the data files and provide assistance with debugging and testing.
However, as you may appreciate there is work involved so no guarantees on timetable or final result!
So if you wish to get involved and can provide the data and assistance then please PM me.

Digging up an old post and reply...

Okay, I have some time over the next few weeks that I can spend working on a VWS version of the Live Davis Console. No promises, but I'm hoping to be able to at least get down the list of data and graph info requirements that are needed. So, if your offer to provide that list still stands, I'll give this a shot.
Title: Re: Davis 'Live' Console script
Post by: bianconero57 on June 09, 2015, 05:13:24 AM
The scripts have not been tested against MeteoHub/meteoBridge and there are some differences in output compared to WD.
See other posts in this thread from users of meteobridge/hub for further info.
Carefully check ALL the settings in davconvp2CW.php
I see you have Solar and UV displaying now, however Solar and UV should NOT be displaying if it is not daylight. You appear to have both displaying at 22:23.
Edit - now see these have turned off at 22:48 ???
The setting for $dewrotate controls the display of dew/apparent/Humidex/Heat Index/Chill
I see wind speed is showing in KPH so presumably you have now set $uomsys correctly.
The moon phase icon requires $latitude to be set correctly, i.e. >= 0 for the Northern Hemisphere or < 0 for the southern Hemisphere. Note this has to be a regular number so simplest to use 1 or -1 instead of actual latitude!
I see you also now have the graphs working.

by cons, I still wind display "kph"?
Chenger through the measuring unit in there '"km / h" or "m / s"?
Finally it still stuck to the moon icon display
I did well the changes in the file "jquery.davconsoleCW.js"

***********

} Else if (wxsoftware == 'WD') {// split clientraw

// We need some gains from clientraw

// Split clientraw.txt

         var series.split cr = ('');

TIME AND DATE //

            var dy = cr [35]; if (dy <10) {dy = '0' + dy;}

to;

 } Else if (wxsoftware == 'WD' || 'MH' || 'MB') {// split clientraw

// We need some gains from clientraw

// Split clientraw.txt

         var series.split cr = ('');

TIME AND DATE //

            var dy = cr [35];

            if (wxsoftware == 'WD' && dy <10) {dy = '0' + dy;}

*************

 #-o #-o
a possible solution even if I use MH and not MB ?

next screnn console_live display in comparison with that of a friend who uses Cumulus
it has good icon and it is one that is also displayed on my desktop console ....
to check what files "jquery.davconsoleCW.js" / "MH-defs.php" and "MHtags.php"

thank you
greetings
Title: Re: Davis 'Live' Console script
Post by: BCJKiwi on June 09, 2015, 07:36:15 AM
As previously advised, I have no experience with MB or MH so you will need to be guided by those who have the script working already.

If someone cares to provide all the unit options for WD and/or MB/MH then they could be included in a future build.
As a user of Cumulus none of these unit options are required as the units displayed are automatically those set in Cumulus.

Title: Re: Davis 'Live' Console script
Post by: Jáchym on June 09, 2015, 08:48:55 AM
MB allows you to choose which units you want to report, there is a documentation that I used when making my scripts here:

http://meteobridge.com/wiki/index.php/Templates

Title: Re: Davis 'Live' Console script
Post by: bianconero57 on June 12, 2015, 02:32:30 AM
hello
a user who manages the station with MH and managed to get the lunar display  #-o
we are both in the same situation with a "colleague":
http://www.fleurie-meteolive.website.org/wxconsole.php
thank you in advance
Title: Re: Davis 'Live' Console script
Post by: miraculon on June 12, 2015, 10:00:13 AM
If I remember correctly, this is what I did to get mine to work (with help):

add the line;
 
Code: [Select]
$moonage = $WX['mbsystem-lunarage'];to the MB-defs.php file on the website and it should work.

I had to tweak it for reasons I don't remember..
$console_moonage = $WX['mbsystem-lunarage'];

Code: [Select]
$minwindch = $WX['wind0chill-dmin'];
// re-added to get moon-icon working 11/15/2014
$console_moonage = $WX['mbsystem-lunarage'];
// end of generation script

See it here: http://www.rogerscityweather.com/MB-defs.php?sce=view (http://www.rogerscityweather.com/MB-defs.php?sce=view)

I would strongly recommend making a backup of the MB-defs.php file before modifying it.

I will not have access to my computer where I store the files until the end of next week, so this is the best I can offer until then.

Note that MB-defs.php is part of the meteobridge template and not part of the console scripts.

There are a number of other variables that start with the "$", I just added it to the end.

Greg H.



Title: Re: Davis 'Live' Console script
Post by: bianconero57 on June 12, 2015, 02:15:06 PM
tags MH is different from MB  :?:
I have correspondence in my MH_defs and display is not good  ](*,)
Title: Re: Davis 'Live' Console script
Post by: FlaglerGunClub on June 13, 2015, 11:55:04 AM
For those with a Meteobridge looking to run the 'Live' Davis Console applet, without having to use Meteohub or other weather station software, I put together a solution for our site by modifying the existing scripts of the Saratoga MB plugin and 'Live' Davis Console applet. You can see it running here: http://weather.flaglergunclub.com/davconvp2CW.php (http://weather.flaglergunclub.com/davconvp2CW.php).

In a nutshell, the way it works is a new CSV file is created and maintained by the modified MB plugin files plus, adding an additional parameter to the MB AJAX HTTP upload URL.  The CSV file contains both 24 hr. graph and real time data that is then used by the modified applet files to update the console display.

Also, there’s some added functionality that includes additional 24 hr. graphs and the ability to change the console UOM on the fly from imperial to metric or vice versa.  This added functionality is accessed by clicking on the labels of the console (i.e. HEAT, DEW, CHILL, UV, ET, UNITS) but is disabled by default and only works for MB.

If you want to try it with your Saratoga MB setup, a zip file containing the update is attached to this post.  Since the zip contains only the files that have been modified you will first need to install the 'Live' Davis Console applet full package for Cumulus and WD which can be found here: http://silveracorn.co.nz/weather/wxscripts.php (http://silveracorn.co.nz/weather/wxscripts.php).

After getting it setup, be aware that until your MB pushes its first update, using the changed URL, the console will not be displayed and that after the first push the graphs will be incomplete for 24hrs.

Cheers, Brian
Title: Re: Davis 'Live' Console script
Post by: bianconero57 on June 15, 2015, 08:25:10 AM
 \:D/
thank you solved
ps
there is a script adapted to the Template if I want to view the data from my station Wireless Leaf & Soil Moisture/Temperature Station
with 4 soil moisture sensors and 4 temperature probes
server METEOHUB
thank you
Title: Re: Davis 'Live' Console script
Post by: hcorrin on July 19, 2015, 06:31:59 PM
Hi
the web address for the script has changed to http://silveracorn.nz/weather/wxscripts.php (http://silveracorn.nz/weather/wxscripts.php)

I have had this running for a couple of months but yesterday I was getting 500 internal error messages direct link is
http://www.hc-iom.co.uk/WD-AJAX/davconvp2CW.php (http://www.hc-iom.co.uk/WD-AJAX/davconvp2CW.php)  I have not altered anything to cause this but have checked the setup files and I have setup a test page at http://www.hc-iom.co.uk/WD-AJAX/console.php (http://www.hc-iom.co.uk/WD-AJAX/console.php) 2 links on live console option and have removed the page link from my  Leuven template everything else is working ok
I have no ideas as to what my be wrong
Title: Re: Davis 'Live' Console script
Post by: meteo.thenioux on September 28, 2015, 05:30:10 PM
Hello grieve for my bad english
I try to install davcon on my website,
http://station-meteo-thenioux.gedfr.co/davconvueCU.php (http://station-meteo-thenioux.gedfr.co/davconvueCU.php)

 but I am having a small problem

Fatal error: Call to undefined function: file_put_contents() in /home/gedfr/www/station-meteo-thenioux/davconvueCU.php on line 457
can you explain to me or there is an error
Title: Re: Davis 'Live' Console script
Post by: BCJKiwi on September 28, 2015, 11:24:33 PM
Not sure what is running in your website but the line number appears very high.

file_put_contents() relates to loading of the davconfcst.php file.
Please read again the HowTo file. The file davconfcstT.txt needs to copied into Cumulus\web folder, processed and Ftp'd to the website as davconfcst.php in the same folder as the davconvueCU.php file.

The blank areas in the image indicate the javascript is not working and it requires the data file davconfcst.php to work.
Title: Re: Davis 'Live' Console script
Post by: meteo.thenioux on September 29, 2015, 05:08:07 AM
Hello thank you for your answers
I made a mistake
I give the name of the pws folder WU
but that does not change there is always an error

Fatal error: Call to undefined function: json_decode() in /home/gedfr/thenioux-meteo-tomatologue/pws.php on line 49

http://thenioux-meteo-tomatologue.gedfr.co/pws.php (http://thenioux-meteo-tomatologue.gedfr.co/pws.php)
Title: Re: Davis 'Live' Console script
Post by: Jáchym on September 29, 2015, 05:20:20 AM
Hi,

I just read your email, where you had a problem with call to undefined function my_sqli

I think these errors are related, because it means you are using some very old version of PHP. These functions require PHP of 5.4+ and I highly recommend you upgrade, these versions have been around for quite some time and are safe and tested.
Title: Re: Davis 'Live' Console script
Post by: BCJKiwi on September 29, 2015, 06:16:39 AM
Would appreciate moving unrelated posts from this thread to where they belong.

Your Vue console script is still not working.
If you want further help, please give more detailed info so I can assist.

The Davis console scripts tested and work reliably on PHP 5.3.10 through 5.5.12 - not sure about earlier versions.
Title: Re: Davis 'Live' Console script
Post by: Jáchym on September 29, 2015, 06:29:32 AM
Would appreciate moving unrelated posts from this thread to where they belong.

If you meant my comment then it is related, because he gets the exact same error with my_sqli, which has also been introduced in later versions of PHP, which is why I said that he should check his PHP version. The error he gets when using my template probably has the same cause as this, because he also gets "call to undefined function" error.
Title: Re: Davis 'Live' Console script
Post by: meteo.thenioux on September 29, 2015, 09:01:35 AM
OK I change the web server ovh and move to
gedfr.info

http://meteo.thenioux.tomatologue.gedfr.info/icentre6.php (http://meteo.thenioux.tomatologue.gedfr.info/icentre6.php)

it works very well now
Thank you very much for your help
Title: Re: Davis 'Live' Console script
Post by: Dr. Faque on October 12, 2015, 06:17:49 PM
I need help getting stated with Davis Live Console script. I have a Vantage VUE and I have renamed the files and made the changes per the how to Txt. I transferred the files to my web site and I get. "" Warning: require_once(./Settings.php) [function.require-once]: failed to open stream: No such file or directory in D:\Hosting\3143614\html\davconvueCW.php on line 92

Fatal error: require_once() [function.require]: Failed opening required './Settings.php' (include_path='.;C:\php\pear') in D:\Hosting\3143614\html\davconvueCW.php on line 92"
 When I try to view what I have done
Title: Re: Davis 'Live' Console script
Post by: BCJKiwi on October 12, 2015, 11:49:05 PM
Need more info on your setup.
Settings.php is a Saratoga templates system file.
1. Are you running the Saratoga template system?
2. Which package did you download/install - the one for Saratoga template websites or the one for Cumulus websites?
3. Is the webserver on the internet or a local network? The path error suggests a local webserver.

The path(s) you need to set in the live console script setup are relative to where the script is running.
So if you have the files in the standard setup in the same folder as the rest of the Saratoga files then it will work without changing the paths in the script as supplied.

If you are not using the Saratoga template system for your website then what are you using? There are two different packages - one for the Saratoga template system and one for the Cumulus default HTML website - which are you using?

A link to your website would be helpful.
Title: Re: Davis 'Live' Console script
Post by: Dr. Faque on October 14, 2015, 10:38:43 AM
Thanks for your time.
Let me start with I think I may be way over my head on this project. I don't know what a Saratoga template System is. My web page is just what comes with Weather Display software.  The File that I downloaded was "davconsoleCW240_Full" from Silver Acorn. My webpage is on a webserver and you can find it at www.bradentonwx.com (http://www.bradentonwx.com). Would it help if I tried to make this work on a separate page? If you think I should just bail out of this project I would understand but I would be disappointed, I am always willing to learn If you have the time to help. :???:
Title: Re: Davis 'Live' Console script
Post by: BCJKiwi on October 14, 2015, 03:38:34 PM
Unfortunately the scripts have only been designed to work with the Saratoga Template and Cumulus HTML websites.

The Saratoga template system is available here http://saratoga-weather.org/wxtemplates/install.php and the detailed configuration for Weather Display is detailed here http://saratoga-weather.org/wxtemplates/setup-WD.php

Our website (link in our signature) is based on the Saratoga Templates.
Title: Re: Davis 'Live' Console script & WeatherCat
Post by: schwab on November 06, 2016, 08:47:14 AM
My original post was #131 on page 6 of this thread/

Has there been any progress made such that a WeatherCat software user can configure the Saratoga-Weather templates such that the Davis "Live" Console can be added to our website?

Thanks.
Title: Re: Davis 'Live' Console script
Post by: BCJKiwi on November 06, 2016, 02:43:08 PM
Sorry, no progress and no plan to extend the scripts.
Title: Re: Davis 'Live' Console script
Post by: bianconero57 on December 15, 2016, 12:27:33 PM
[SUPPRIM]
Title: Re: Davis 'Live' Console script
Post by: ConligWX on January 30, 2019, 08:03:16 AM
I know this is an old thread but wanted to reply...

Thanks for the work on this Brian.  I recently moved from CumulusMX to a Meteobridge Nano and wanted to keep the Davis console Live view.  I couldnt get the WD clientraw files to be read by this script, though the forecast was. so ended up with a blank console view except for the forecast.

This new script will hopefully gte me up and running again, though my MB-defs file is customised too so will need to do some editing on that., will let you know how I get on soon!

For those with a Meteobridge looking to run the 'Live' Davis Console applet, without having to use Meteohub or other weather station software, I put together a solution for our site by modifying the existing scripts of the Saratoga MB plugin and 'Live' Davis Console applet. You can see it running here: http://weather.flaglergunclub.com/davconvp2CW.php (http://weather.flaglergunclub.com/davconvp2CW.php).

Cheers, Brian
Title: Re: Davis 'Live' Console script
Post by: ConligWX on January 30, 2019, 09:01:24 AM
 \:D/ Seems to be working fine now.

Thanks again guys!
Title: Re: Davis 'Live' Console script
Post by: BCJKiwi on January 30, 2019, 02:37:58 PM
It is great to see the long term on-going interest in this script.

It was a lot of work and unfortunately I have not been able to extend the code to systems other than Cumulus and WD (I don't use WD myself) as I have no access to them and hence no way to test them.
I have asked those requesting help with alternative systems help to send me the relevant files but unfortunately have not received enough to assist, other than to make suggestions.

I would appreciate any users who have successfully completed scripts for other systems to send me what they have so I could review and potentially include in a future release.

Thanks.
Title: Re: Davis 'Live' Console script
Post by: ConligWX on January 30, 2019, 03:24:29 PM
It is great to see the long term on-going interest in this script.

It was a lot of work and unfortunately I have not been able to extend the code to systems other than Cumulus and WD (I don't use WD myself) as I have no access to them and hence no way to test them.
I have asked those requesting help with alternative systems help to send me the relevant files but unfortunately have not received enough to assist, other than to make suggestions.

I would appreciate any users who have successfully completed scripts for other systems to send me what they have so I could review and potentially include in a future release.

Thanks.

Brian, I managed to use the file attached here: for Meteobridge (Nano) however I was getting an error in the Apache log:

PHP Warning:  A non-numeric value encountered in /share/htdocs/weather/conds.php on line 511

Conds.php afaik is Kens script saratoga Template Script, which has been re-edited to add addition lines to get the davis console script working.script.

Line511-513 onwards:

Code: [Select]
        $CSV[19] = round($WX['rain0total-hmax'] * 25.3970886, 1);            // Rain total this hour (Converted from in to mm)
        $CSV[20] = round($WX['rain0total-mmax'] * 25.3970886, 1);            // Rain total this month (Converted from in to mm)
        $CSV[21] = round($WX['rain0total-ymax'] * 25.3970886, 1);            // Rain total this year (Converted from in to mm)

on looking at

rain0total-hmax
rain0total-mmax
rain0total-ymax

I am somehow confused.

rain0total: rain fall is in mm  so not sure why the comment is saying it is converting inches to mm?

then on Meteobridges website:

Quote
Sensors that deliver cumulated data like "rain0total", "sol0evo" and "sun0total" should be used with the following selectors only:

hoursum, daysum or sumday, monthsum, yearsum, allsum, ydaysum: selects summarized delta values from today, this month, this year, all time or yesterday. Example: "rain0total-sumday" is todays rain fall.

so why hmax, mmax, and ymax are being used is beyond me.

I have asked Boris (Meteobridge to confirm) what should be there. though I feel Ken may need to also give some comment on this as the 511-513 lines do not seem to be correct.

once I get some form of clarification I can send you an amended version for Meteobridge/Saratoga Template.

I am guessing there should be no calculation from Inch to mm since raintotal is in mm already (default) and the Sensor Selectors need to be changed too.

attached is a previous version (untouched)
Title: Re: Davis 'Live' Console script
Post by: johnd on January 15, 2020, 01:56:33 PM
Is there any version of this script where the console is displayed full-screen (or at least full browser viewport)? If so, anyone have a URL please?
Title: Re: Davis 'Live' Console script
Post by: BCJKiwi on January 15, 2020, 03:14:59 PM
@ johnd

The script works by positioning elements in fixed positions on a fixed size image.
That is that way it has always been since the original versions (see credits in the scripts) from which this version was developed.

A full screen (but how big is full screen?) version could be created by creating a larger image and another version of the -inc file with larger text size and new positions of all the dynamic elements.

Alternatively you could create a page that is just big enough to contain the image and has nothing else on it, and zoom the image by 150% 200% 250% etc.
Title: Re: Davis 'Live' Console script
Post by: BCJKiwi on January 15, 2020, 03:21:15 PM
@ ConligWX

Thanks for your post,
Will look forward to your updated file set with interest.
Title: Re: Davis 'Live' Console script
Post by: johnd on January 15, 2020, 04:23:21 PM
A full screen (but how big is full screen?) version could be created by creating a larger image and another version of the -inc file with larger text size and new positions of all the dynamic elements.

OK, thanks for the answer - much appreciated. Well I guess a variable sizing image could use relative rather than absolute positioning and starting from an appropriately scaled image (does eg CSS do that nowadays?), which I'm guessing ought to be pixel accurate these days. But it sounds like the answer to my question is no, there's no 'full-size' (fsvo) version available at present which was my main question. But behind which is the increasing interest in using eg a tablet as a console-substitute, but users would presumably want to see a full-sized console and not a larger webpage with a smaller console embedded.
Title: Re: Davis 'Live' Console script
Post by: the beteljuice on January 15, 2020, 07:57:49 PM
@johnd

Should be do-able ....
Positioning / sizing graphics is no great hardship, and I found a way to resize proportionally text (not in the example below).

the beteljuice has only played with viewport css sizing once (http://www.beteljuice.co.uk/paulmy/responsivetest.html), so someone with with a bit of expertise must surely be able to do it !

My example adapts to the smallest available width / height - the subject being a 'square'
Title: Re: Davis 'Live' Console script
Post by: BCJKiwi on January 16, 2020, 02:29:42 PM
There is this https://silveracorn.nz/m/
which is intended for mobiles.
Title: Re: Davis 'Live' Console script
Post by: dazza on April 21, 2021, 05:04:55 AM
hi sorry to drag up and really old post that i use davconfcst.txt but since i switch over to davis wLL now ive lost the forecast

here was the tags to read the console forecast

$forecast  = trim('<#wsforecast>');

is there a way to put Cumulus forecast?

 [ You are not allowed to view attachments ]
Title: Re: Davis 'Live' Console script
Post by: BCJKiwi on April 21, 2021, 04:36:17 PM
Well,
You could try
$forecast  = trim('<#cumulusforecast>');

Title: Re: Davis 'Live' Console script
Post by: dazza on April 21, 2021, 05:56:58 PM
cool that fix that and one last thing is forecast is just showing 3 lines?
Title: Re: Davis 'Live' Console script
Post by: BCJKiwi on April 21, 2021, 06:36:10 PM
Don't understand.

Would help if you included your website link.
I eventually found one of your posts on the Cumulus Forum with the website link and see there are multiple " s in the forecast.

You should get rid of those as there should not be any. Don't know what you have done?
Title: Re: Davis 'Live' Console script
Post by: mcrossley on April 22, 2021, 04:36:23 AM
Don't understand.

Would help if you included your website link.
I eventually found one of your posts on the Cumulus Forum with the website link and see there are multiple " s in the forecast.

You should get rid of those as there should not be any. Don't know what you have done?

Sounds like he is using a "strings.ini" file and did not update it a while back when one of the releases changed the format slightly.
Title: Re: Davis 'Live' Console script
Post by: dazza on April 23, 2021, 07:10:12 AM
ok um that my other site the other one is only on a webserver but the tage u sent me that it is working but i did noticed that when i swith to the davis WLL there is no forecast string from the WLL I read this

and it seem like forecasts icon olny work with u have the logger to the console or is there a work around for it ?

 There is a routine in the davconvp2CU.php script (and vue if used)
         to monitor the action of the icon matching routine.
      If the routine cannot determine the icon from $vpforecast it will
         create a file davconfcst.txt in the main scripts folder and write the
         missing forecast details to it while using grid.png
        (three horizontal bars) for the forecast icon.
      So if the grid icon is displayed as the forecast icon, (and the forecast
         is NOT "FORECAST REQUIRES 3 HOURS OF RECENT DATA"),
         and a station that provides a forecast string is being used, then
         1. The forecast is not Standard Davis, LaCrosse or Oregon scientific,
         2. The forecast is not in ENGLISH, or
         3. The forecast string is missing. Please advise BCJKiwi via
            the contact form on http://silveracorn.nz/weather so the script
            may be updated. Please include davconfcst.txt in your message.
         Davis forecasts are for the next 12 hours. The icon should match the
            real console. If one does not match, again, advise BCJKiwi
            including details of the icon and the forecast string.
Title: Re: Davis 'Live' Console script
Post by: BCJKiwi on April 23, 2021, 04:30:32 PM
That all relates to the forecast ICON (the icon just above Temp Out)
No relationship to the forecast string in the ticker.
Title: Re: Davis 'Live' Console script
Post by: dazza on April 23, 2021, 04:41:16 PM
yh the ticker wasnt working but now u gave me that tag it is now so thank for that it just the icon?
Title: Re: Davis 'Live' Console script
Post by: Radek6 on May 04, 2021, 08:10:43 AM
Hello, I need help with the file davconvp2CU.php on this page: http://pocasi-mesetice.cz/davconvp2CU.php. My chart is not updating and I do not know how to achieve it. I don't know how to put a photo here so you know what problem I have. Thanks for the advice
Title: Re: Davis 'Live' Console script
Post by: PaulMy on May 04, 2021, 09:37:06 AM



Hi,
Have you uploaded all the files, and is davcon24T.txt being processed and uploaded in Extra Web files?  It doesn't show at http://pocasi-mesetice.cz/davcon24.txt


Enjoy,
Paul
Title: Re: Davis 'Live' Console script
Post by: Radek6 on May 04, 2021, 01:10:21 PM
Another question, what should I upload everything to on the web so that I can see the data in the folder on the PC in cumulusMX / interface?
Title: Re: Davis 'Live' Console script
Post by: PaulMy on May 04, 2021, 02:34:15 PM

Quote
Another question, what should I upload everything to on the web so that I can see the data in the folder on the PC in cumulusMX / interface?


Not sure if I fully understand the question, but the script is intended for website display using the remote URL like your http://pocasi-mesetice.cz/davconvp2CU.php
Or as part of Brian's MXUIwebsite template http://www.komokaweather.com/cumulusmx/davconvp2CUmx.php


I suppose if someone wanted to take the time and had the skills something similar could be developed as an add-on to local CumulusMX dashboard.


Enjoy,
Paul
Title: Re: Davis 'Live' Console script
Post by: Radek6 on May 04, 2021, 02:43:46 PM
I'm thinking of the pc in the folder c: \ cumulusmx \ interface, it's somehow transferable to the web, like it's on this website: http://www.komokaweather.com/cumulusmx/index.php
Title: Re: Davis 'Live' Console script
Post by: PaulMy on May 04, 2021, 04:19:05 PM


That http://www.komokaweather.com/cumulusmx/index.php is a separate website template developed by BCJKiwi, https://silveracorn.nz/cumulusmx/index.php
the same person who developed the Cumulus Davis console scripts, to emulate the CumulusMX local PC dashboard.
It is available here [size=78%]CumulusMX and Cumulus1 UI style Multilingual Websites - Page 29 - Cumulus Support (hosiene.co.uk) (https://cumulus.hosiene.co.uk/viewtopic.php?p=138283#p138283)[/size]


Enjoy,
Paul







Title: Re: Davis 'Live' Console script
Post by: Radek6 on May 05, 2021, 10:20:09 AM
Anyway, don't you know where the template / script could be downloaded? Alternatively, other templates and scripts about the weather ...
Title: Re: Davis 'Live' Console script
Post by: PaulMy on May 05, 2021, 12:44:33 PM


Quote
Anyway, don't you know where the template / script could be downloaded?
Did you not see the link I included, It is available here?


Enjoy,
Paul

Title: Re: Davis 'Live' Console script
Post by: ConligWX on May 06, 2021, 02:55:45 AM
Anyway, don't you know where the template / script could be downloaded? Alternatively, other templates and scripts about the weather ...

download of BCJKiwi Template is here: https://cumulus.hosiene.co.uk/viewtopic.php?p=138283#p138283   
Title: Re: Davis 'Live' Console script
Post by: Radek6 on May 11, 2021, 03:50:22 PM
Hello, you can advise me what I'm wrong, the charts don't work, the month and the records tab. Thank you all for the previous answers. http://pocasi-mesetice.cz/template/pocasi/index.php
Title: Re: Davis 'Live' Console script
Post by: BCJKiwi on May 11, 2021, 04:26:52 PM
You should be posting on the cumulus Forum.
Title: Re: Davis 'Live' Console script
Post by: scudwatcher on May 20, 2021, 01:19:15 PM
Just installed this script yesterday, and running fine at:

 https://csraweather.org/davconvp2CW.php

  In the process of changing the button texts and pages.  I do have a question though:  How do I change the wind units from mph to knots?  Thank You in advance
Title: Re: Davis 'Live' Console script
Post by: PaulMy on August 14, 2021, 12:49:36 PM
Brian's Downloads page is here Silver Acorn Weather - Auckland, New Zealand - Scripts (https://silveracorn.nz/weather/wxscripts.php)

Re the wind units, I use the Cumulus version KomokaWeather (http://www.komokaweather.com/cumulusmx/davconvueCUmx.php) and assume it is the same for WD.  From Brian's HowTo:
Quote

1.   The units and Units of Measure legend displayed (kph/mph, deg C/F etc) will
      match the units set in CumulusMX

Enjoy,
Paul
Title: Re: Davis 'Live' Console script
Post by: scudwatcher on August 14, 2021, 06:57:50 PM
My wind units are set for kts in Cumulus1, CumulusMX, WeatherLink.com and Weatherlink LIVE.  My Davcon wind units are in mph.  I will download and install davcon for Cumulus 1 next week.
Title: Re: Davis 'Live' Console script
Post by: the beteljuice on August 15, 2021, 12:32:14 AM
Your page says you are using WD ?
Code: [Select]
<script type="text/javascript">
var wxsoftware  = 'WD'
var dataurl     = 'clientraw.txt'
...
var uomsys      = 'I'

If that really is the case ....

jquery.davconsoleCW.js says:

// ### 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.

Code: [Select]
// WIND
            //             var crwspd = (cr[1] * 1).toFixed(1);             // knots (average)
            //             var crwspd = (cr[1] * 0.5144444).toFixed(2);     // knots -> m/s
            var crwspd  = (uomsys != 'I') ? (cr[1] * 1.852).toFixed(1) : (cr[1] * 1.1507794).toFixed(1); // knots -> km/hr : mph
            var crwindu = (uomsys != 'I') ? 'KPH' : 'MPH';                                               // KPH : MPH
            $("#cajaxwind").html( crwspd);

// would become

// WIND
            var crwspd = (cr[1] * 1).toFixed(1);             // knots (average)
            //             var crwspd = (cr[1] * 0.5144444).toFixed(2);     // knots -> m/s
            //             var crwspd  = (uomsys != 'I') ? (cr[1] * 1.852).toFixed(1) : (cr[1] * 1.1507794).toFixed(1); // knots -> km/hr : mph
            //             var crwindu = (uomsys != 'I') ? 'KPH' : 'MPH';                                               // KPH : MPH
            var crwindu = 'KT';
            $("#cajaxwind").html( crwspd);

Title: Re: Davis 'Live' Console script
Post by: scudwatcher on August 20, 2021, 10:18:32 AM
Thanks for your response, beteljuice!  Yes, currently on WD.  I did observe this, but still a “learning curve” in editing javascript on NOTEBOOK++.  I will make an attempt to edit “tab over” this weekend.  I will attempt to set up davcon on Cumulus 1 legacy / CumulusMX as well.
Title: Re: Davis 'Live' Console script
Post by: waiukuweather on August 25, 2021, 03:11:27 PM
Quote
Just installed this script yesterday, and running fine at:

 https://csraweather.org/davconvp2CW.php

This is really neat I reckon :)
Title: Re: Davis 'Live' Console script
Post by: Bunty on February 17, 2024, 01:41:01 AM
Where is the WD, rather than Cumulus version of the Davis "Live" console script, so it will look better than this?

https://stillwaterweather.com/vp_console (https://stillwaterweather.com/vp_console)
Title: Re: Davis 'Live' Console script
Post by: weatherdoc on February 17, 2024, 06:57:45 AM
I have a copy of the script here: https://novawx.dscloud.me/davcon/davconsoleCW241_Full.zip that produces this webpage: https://novawx.dscloud.me/davconvp2CW.php if that's what you're looking for.
Title: Re: Davis 'Live' Console script
Post by: BKS97 on February 18, 2024, 05:53:53 PM
weatherdoc: Thanks for providing the link to the WD Davis live console script.  I've been wanting to give that a try and finally did today.  It seems to be working OK but this warning appears at the top of the webpage (my italics):

Warning: A non-numeric value encountered in /home/sartelleast/www/www/davconvp2CW.php on line 110

Line 110 in davcon2CW.php is this:

    $nextupd = (substr($timeofnextupdate,0,2)*60*60) + (substr($timeofnextupdate,3,5)*60); // next update hh:mm as seconds


Hoping someone can help me solve this.  Thanks.  --Bill

https://www.sartelleastweather.com/davconvp2CW.php
Title: Re: Davis 'Live' Console script
Post by: weatherdoc on February 19, 2024, 07:12:51 AM
The comment for that section of code where line 110 is located is:

// synchronise page refresh to tags upload time - assumes correct time zone set in php scripts to match WXstation location

I wonder if there is a time difference issue between your website/console?

I did notice right under the left side of your console it says Next Graph & Forecast update @ ~ 12:00 am but under my console (I'm eastern time) it says Next Graph & Forecast update @ ~ 07:10. I would think that should say Next Graph & Forecast update @ ~ 06:10, because you're in central time.

Yet, the time displayed in the upper right of the console itself is the same as the update time on your webpage.
Title: Re: Davis 'Live' Console script
Post by: BKS97 on February 19, 2024, 08:23:32 AM
Thanks, weatherdoc.  Yes, I think you are right that there must be a time discrepancy somewhere, even though the data on the console displays correctly and matches the website dashboard. As a temporary fix, I commented out the “next update” lines in the script and the warning now no longer shows up.  I will try to find where the error is coming from.
Title: Re: Davis 'Live' Console script
Post by: Adrian23 on March 07, 2024, 04:17:19 PM
Does this script work on the new 6313 console? That would look great
Title: Re: Davis 'Live' Console script
Post by: BKS97 on March 09, 2024, 02:12:42 PM
Thanks, weatherdoc.  Yes, I think you are right that there must be a time discrepancy somewhere, even though the data on the console displays correctly and matches the website dashboard. As a temporary fix, I commented out the “next update” lines in the script and the warning now no longer shows up.  I will try to find where the error is coming from.

After a lot of searching and failed attempts, I finally found a fix in davconvp2CW-inc.php so that the “Next Graph & Update @ ~” message is no longer “frozen” at 12:00 am and now shows the correct next update time.

First, I had to comment out lines 110 and 112 in davconvp2CW.php, which removes the notice: Warning: A non-numeric value encountered in /home/sartelleast/www/www/davconvp2CW.php on line 110.

Then in davconvp2CW-inc.php, I changed line 280 from

<?php if ($showupdate === 1) { ?>
         <div class="cellLeft50"> <?php echo 'Next Graph & Forecast update @ ~ ' . $nextupdate; ?> </div>

to

<?php if ($showupdate === 1) { ?>
         <div class="cellLeft50"> <?php echo 'Next Graph & Forecast update @ ~ ' . $timeofnextupdate; ?> </div>

(I just addied  “time of” to “$nextupdate;”)

Finally, I also set up a NWS Forecast upload in WD to replace the Davis VP forecast on the console ticker.

Not sure if I understand why the change in line 280 made a difference, but the page seems to be working fully now.