Welcome to the Cumulus Support forum.

Latest Cumulus MX release 3.9.0 (build 3095) - 09 October 2020 (please see announcement regarding releases since 3.5.0)
Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014 (a patch is available for 1.9.4 build 1099 that extends the date range of the NOAA report and Snow Index drop-down menus to 2030)

Use this Wiki link to Download the Software (Cumulus MX / Cumulus 1 and other related items).

Davis 'Live' Console for Saratoga Websites Ver CW2.4.0

Discussion of Ken True's web site templates

Moderator: saratogaWX

BCJKiwi
Posts: 1005
Joined: Mon 09 Jul 2012 8:40 pm
Weather Station: Davis VP2 Cabled with Solar
Operating System: Windows 10 Pro
Location: Auckland, New Zealand
Contact:

Davis 'Live' Console for Saratoga Websites Ver CW2.4.0

Post by BCJKiwi »

8 April 2014
Changes required to implement "storm rain"
See details at the end of THIS post.

13 January 2014
ver 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.
There are also some additional setting options for the temp 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 Cumulus should it be made available in the future.
BCJKiwi

1 January 2014
ver 2.3.0 bugfix
Some bug fixes - see details at end of post - most users will not be affected.
BCJKiwi

30 December 2013
Updated to ver 2.3.0
There are a number of code revisions and refinements 'under the hood'.
'US' 24Hour date & time formats added. Separate options included for metric/US (24/12hr with am/pm) time and for Metric/US date (dd/mm or mm/dd).
There is also a new feature which 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.
BCJKiwi

7 December 2013
Updated to ver 2.2.3
Further refinements.
Wind rose presentation revised.
Repositioned various data items to better match console - mostly for VP2.
Removed left over lines from 2.2.2 :(

18 November 2013
Updated to ver 2.2
Further code refinements
Improved management and coding of table below image
Simpler configuration

5 November 2013
Updated to ver 2.1b
Further code refinements

28 October 2013
Updated to ver 2.1
Further code refinements, stability, tests for files etc
Added a few further options and further unified code with the CU version.

21 October 2013
Version 2.0 has arrived
A rework of the file structure, bug fixes and enhancements!

29 September 2013
Davis 'Live' Console
VERSION CW1.1d

This is a new script for Cumulus users of the Saratoga template system
(there is a separate thread for Cumulus generated Websites here https://cumulus.hosiene.co.uk/viewtopic.php?f=4&t=10597)
It is adapted from the original script by Axelvold for Weather Display and subsequent updates by others.
Project has been discussed with and code submitted to Axelvold and Allessandro Bardi (who supplied the version that this script mostly resembles).
It retains all the original credits, copyrights and GNU licence etc.
It has been some months in development with subsequent on-going refinements and testing.
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.

Significant changes have been made to numerous aspects of the script and it's concept, graphics and various other elements.
This presents either the Vue or the VP2 / Plus 'Live' Console. (two separate .php scripts)
This version also works with both Cumulus and Weather Display. - This version will be posted on the WD Forum in due course.

It will work with the Saratoga template system provided the webserver supports a recent version of PHP with GD2 graphics (i.e. pretty much any Apache based webserver).
The scripts include live updating via javascript/jquery so client browsers require javascript loaded.

A working version of both the Cumulus and Saratoga based websites can be viewed at;
Cumulus version - http://silveracorn.co.nz/cumulus (navigation bar option 'console')
Saratoga version - http://silveracorn.co.nz/weather (menu item 'Live Console')

As these scripts receive data from Cumulus or WD, either or both the Vue and VP2 versions can be used even if you don't have a Davis console!
However you will need a console that delivers a forecast string. Forecast strings and icons should work for SOME LaCrosse and Oregon Scientific models but as I don't have access to any of these stations this functionality is not tested.

All configuration options are in the main davconvxxCW.php script
The only settings required for Cumulus users to get started is to add a menu item to flyout-menu.xml) and to add the setting 'Plus' if you have a VPro2 Plus.
There is a .. HowTo.txt file which describes all the steps required to add the package to you website and for some other options.

Edit 1 23 Sep 2013
OK it's Back with a bit of a tidy up here and there but just one real change as advised by Mark Crossley - many thanks.
3 previous downloads
Revised to Version CW1.1b to resolve FTP issues found by PaulMy
No need to update from 1.1a if you have no issues with the operation of 1.1a
8 downloads

Edit 2 26 Sep 2013
Ver CW1.1c
Change to auto refresh from 1 hr to 10 mins (works in I.E.) - refreshes graphs more often
Re-instatement of GET retries - it seems that Firefox times out sometimes if other data is being downloaded at the same time (graphics etc) as realtime without this.
Added moonage to davcon24T.txt. My CUtags.php had this added but it is not a part of the default Saratoga file so the moon icon did not update.
Some minor code revisions
Revised HowTo instructions.

Edit 3 29 Sep 2013
Ver CW1.1d
Some code revisions, moved some blocks to functions
moonage fix for Cumulus users (a CUtags issue)
recoded barotrend arrow
added imperial unit variants for rain decimal places, and for barotrend arrow
Updated HowTo
Recommend all users update from previous versions.
The _Upd.zip contains all files except the static libraries and graphics in the _Full.zip

Edit 4 30 Sep 2013

Edit 5 21 October 2013
Version 2.0
This version changes the main file structures.
There is now a single file with all the code that is not console type specific.
There are two separate -inc include files, one for vp2 and the other for vue, that contain all the console type specific code.
A 'Page updated' indicator has been added.
Imperial mm/dd layout fixed and more logical setting layout - thanks to suggestions from n9mfk
More robust file loading/checking routines
See the file header and the ....HowTo.txt file for full details on changes, installation and configuration.

The _Upd.zip contains all files except the static libraries and graphics in the _Full.zip
Please ensure you apply ALL the files in the ..._Upd.zip if updating an earlier version as all files in the update package have changed in some way.

Edit 6 28 October 2013
Version 2.1
Hopefully this will be the last revision (E&OE!)
Note this _Upd package requires Ver 2.0
The _Upd.zip contains all files except the static libraries and graphics in the _Full.zip
If you are updating from an earlier version please download ver 2.1_Full

Edit 7 5 November 2013
Version 2.1b
Note the _Upd package requires Ver 2.1
The _Upd.zip contains all files except the static libraries and graphics in the _Full.zip
If you are updating from an earlier version please download ver 2.1b_Full

Edit 8, 18th November 2013
Version 2.2
Note the _Upd package requires Ver 2.1b
The _Upd.zip contains all files except the static libraries and graphics in the _Full.zip
If you are updating from an earlier version please download ver 2.2_Full

Edit 9 - 2 December 2013
Version 2.2.2
Note this _Upd package requires Ver 2.2
The _Upd.zip contains all files except the static libraries and graphics in the _Full.zip
If you are updating from a version earlier than 2.2, please download ver 2.2.2 _Full

Edit 10 - 7 December 2013
Version 2.2.3
It seems that there was an issue with the 2.2.2 davconvp2CW.php file. The .zip packages have been refreshed so if you are seeing the "./davcon/datafile.txt not found!" message detailed by Kapo please download the 2.2.3_upd. If you already have ver 2.2.2, only davconvp2CW.php needs replacing. Apologies for any inconvenience.
Note this _Upd package requires Ver 2.2
The _Upd.zip contains all files except the static libraries and graphics in the _Full.zip
If you are updating from a version earlier than 2.2, please download ver 2.2.3 _Full

Edit 11 - 30 December 2013
Version 2.3.0
Note the _Upd package requires Ver 2.2
The _Upd.zip contains all files except the static libraries and graphics in the _Full.zip
If you are updating from a version earlier than 2.2, please download ver 2.3.0_Full
Please note there are updated davconCW.css and jquery.davconsoleCW.js files in the ./davcon/ folder - both are required.

Edit 12 - 1 January 2014
davcon24T.txt file bugfix.

Edit 13 - 13 January 2014
Ver 2.4.0
Refer to first post for details.
Note the _Upd package requires Ver 2.2
The _Upd.zip contains all files except the static libraries and graphics in the _Full.zip
If you are updating from a version earlier than 2.2, please download ver 2.4.0_Full
Please note if updating ALL the files in the package are required!!!

Edit 14 - 8 April 2014
To add storm rain to the Saratoga template setup, two files require modification;
1. C:\Cumulus\web\CUtagsT.txt
Add these two lines into the file - location is not important.

Code: Select all

vpstormrainstart|<#StormRainStart>:|:
vpstormrain|<#StormRain>:|:
2. On your Website, CU-defs.php
Add these two lines into the file somewhere between $WXsoftware = 'CU';
and the beginning of the functions - suggest immediately after $vpforecasttext = $WX['wsforecast'];

Code: Select all

$vpstormrainstart = $WX['vpstormrainstart'];  //Davis VP Storm rain start date
$vpstormrain = $WX['vpstormrain']; //Davis VP Storm rain value
The davcon console script files have already been configured to use the $vpstormrain variable and does not use the start variable.
Of course you won't see anything on your website unless there is "storm rain" as defined by Davis.
Note, the term "Rain Event" is used in the davcon console scripts in place of "Storm Rain"

BCJKiwi

Enjoy! ;)
You do not have the required permissions to view the files attached to this post.
Last edited by BCJKiwi on Mon 07 Apr 2014 10:58 pm, edited 31 times in total.

radiXpl
Posts: 7
Joined: Wed 11 Sep 2013 11:26 am
Weather Station: WS-01/01
Operating System: WIN/UBUNTU
Location: Poland, Tarnowskie Gory
Contact:

Re: Davis 'Live' Console for Saratoga Websites Ver CW1.1

Post by radiXpl »

Good work !
Incredible ;-)

Look: http://burza.pokluda.net/davconvp2CW.php

Now it's only one problem - forecast is unavailable.... I don't know why now.

and Warning: max() [function.max]: Array must contain at least one element in davconvp2CW.php on line 205

Tell me - whats wrong ???

Regards.....

radiXpl
Posts: 7
Joined: Wed 11 Sep 2013 11:26 am
Weather Station: WS-01/01
Operating System: WIN/UBUNTU
Location: Poland, Tarnowskie Gory
Contact:

Re: Davis 'Live' Console for Saratoga Websites Ver CW1.1

Post by radiXpl »

DC_Niedostepna|grid.png|

this is may davconfcst.txt file

BCJKiwi
Posts: 1005
Joined: Mon 09 Jul 2012 8:40 pm
Weather Station: Davis VP2 Cabled with Solar
Operating System: Windows 10 Pro
Location: Auckland, New Zealand
Contact:

Re: Davis 'Live' Console for Saratoga Websites Ver CW1.1

Post by BCJKiwi »

As detailed in the ...HowTo file,
the system is developed and tested in English only - specifically that the icon matching code relies on the standard english text of the Davis DLL forecast text strings.

BCJKiwi
Posts: 1005
Joined: Mon 09 Jul 2012 8:40 pm
Weather Station: Davis VP2 Cabled with Solar
Operating System: Windows 10 Pro
Location: Auckland, New Zealand
Contact:

Re: Davis 'Live' Console for Saratoga Websites Ver CW1.1a

Post by BCJKiwi »

New version CW1.1a posted.

Please see the first post in this thread.

kapo
Posts: 246
Joined: Thu 03 Jan 2013 1:59 pm
Weather Station: Davis VP2
Operating System: Windows 10
Location: Vihtavuori, Laukaa, Finland

Re: Davis 'Live' Console for Saratoga Websites Ver CW1.1a

Post by kapo »

Hi!!
Thank You for this script / app. It started to work at once! Without any problems!! This is truly a wonderful addition to my web page. Thank You very much about that! Only those buttons links I have to change to links that works in my webpage. That work I will do tomorrow. Thank You once more about this, I have waited this script quite a long time and now it is here! Nice day to me today :lol: :lol:
With best regards kapo

BCJKiwi
Posts: 1005
Joined: Mon 09 Jul 2012 8:40 pm
Weather Station: Davis VP2 Cabled with Solar
Operating System: Windows 10 Pro
Location: Auckland, New Zealand
Contact:

Re: Davis 'Live' Console for Saratoga Websites Ver CW1.1b

Post by BCJKiwi »

Revised to Version CU1.1b to resolve FTP issues found by PaulMy
Updates available in first post of this thread.

kapo
Posts: 246
Joined: Thu 03 Jan 2013 1:59 pm
Weather Station: Davis VP2
Operating System: Windows 10
Location: Vihtavuori, Laukaa, Finland

Re: Davis 'Live' Console for Saratoga Websites Ver CW1.1b

Post by kapo »

Hi!
I wonder why my webpage´s error log makes this text always, when Davisconsole opens?
[24-Sep-2013 19:37:28 Europe/Helsinki] PHP Warning: min() [<a href='function.min'>function.min</a>]: Array must contain at least one element in /home/myname/public_html/davconvp2CW.php on line 205
What is wrong and what should I do to correct that?

-kapo-

BCJKiwi
Posts: 1005
Joined: Mon 09 Jul 2012 8:40 pm
Weather Station: Davis VP2 Cabled with Solar
Operating System: Windows 10 Pro
Location: Auckland, New Zealand
Contact:

Re: Davis 'Live' Console for Saratoga Websites Ver CW1.1b

Post by BCJKiwi »

It seems that there was an issues with the version of davcon24T.txt included in the package.
I have also been alerted to a problem with the moon icon for Cumulus an the CW version and have altered the php file to address this.
Please try the revised files included in the .zip and please confirm they fix both issues.

Thanks
You do not have the required permissions to view the files attached to this post.

kapo
Posts: 246
Joined: Thu 03 Jan 2013 1:59 pm
Weather Station: Davis VP2
Operating System: Windows 10
Location: Vihtavuori, Laukaa, Finland

Re: Davis 'Live' Console for Saratoga Websites Ver CW1.1b

Post by kapo »

Jep, now it seems to work o.k. except that moon pic. I think it is different than my homepage.... But no errors in error log. Thanks

-kapo-

BCJKiwi
Posts: 1005
Joined: Mon 09 Jul 2012 8:40 pm
Weather Station: Davis VP2 Cabled with Solar
Operating System: Windows 10 Pro
Location: Auckland, New Zealand
Contact:

Re: Davis 'Live' Console for Saratoga Websites Ver CW1.1b

Post by BCJKiwi »

Thanks for the feed back.
The moon pic looks right for the northern hemisphere.
The icon is pretty crude as there are only 4 segments.

Compare it to your console, not to your home page ;)

BCJKiwi
Posts: 1005
Joined: Mon 09 Jul 2012 8:40 pm
Weather Station: Davis VP2 Cabled with Solar
Operating System: Windows 10 Pro
Location: Auckland, New Zealand
Contact:

Re: Davis 'Live' Console for Saratoga Websites Ver CW1.1c

Post by BCJKiwi »

Ver CW1.1c posted

Please check out first post in this thread.

radiXpl
Posts: 7
Joined: Wed 11 Sep 2013 11:26 am
Weather Station: WS-01/01
Operating System: WIN/UBUNTU
Location: Poland, Tarnowskie Gory
Contact:

Re: Davis 'Live' Console for Saratoga Websites Ver CW1.1c

Post by radiXpl »

Hi...

ver 1.1.c working perfectly, without any errors (excepting forecast....)

BCJKiwi
Posts: 1005
Joined: Mon 09 Jul 2012 8:40 pm
Weather Station: Davis VP2 Cabled with Solar
Operating System: Windows 10 Pro
Location: Auckland, New Zealand
Contact:

Re: Davis 'Live' Console for Saratoga Websites Ver CW1.1c

Post by BCJKiwi »

Thanks, appreciate the feed back.

forecast ??
I presume that is because your WS01/01 does not have a forecast?

radiXpl
Posts: 7
Joined: Wed 11 Sep 2013 11:26 am
Weather Station: WS-01/01
Operating System: WIN/UBUNTU
Location: Poland, Tarnowskie Gory
Contact:

Re: Davis 'Live' Console for Saratoga Websites Ver CW1.1c

Post by radiXpl »

I have forecast.
For example in realtimegauges.txt template.
HTML tag is
"forecast":"<#forecastenc>",

Nothing in davcon24T.txt about forecast.

Any suggestions ?

Post Reply