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

0 Members and 1 Guest are viewing this topic.

Offline BCJKiwi

  • Senior Contributor
  • ****
  • Posts: 290
    • Silver Acorn Weather - N.Z.
Davis 'Live' Console script
« 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

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
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
and here;
http://silveracorn.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
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!
« Last Edit: January 19, 2017, 08:26:39 PM by BCJKiwi »

Offline PaulMy

  • Forecaster
  • *****
  • Posts: 4504
    • KomokaWeather
Re: Davis 'Live' Console script
« Reply #1 on: December 20, 2013, 05:28:31 PM »
And I have it working here http://komokaweather.ca/davconvp2CW.php

Paul
Davis Vantage Pro 2 Plus 24-FARS Wireless
Envoy/USB DataLogger/Cumulus v.1.9.4   -   Vue Console/WiFiLogger/CumulusMX
Komoka, ON  Canada
www.komokaweather.ca   www.komokaweather.com   www.komokaweather.com/weather28/  
www.komokaweather.com/pws/index.php
Blitzortung Station #1076 www.lightningmaps.org/blitzortung7/america/index.php?bo_page=statistics&bo_show=network&lang=en&bo_station_id=969


Offline cospringswx

  • Forecaster
  • *****
  • Posts: 4073
    • Colorado Springs Weather
Re: Davis 'Live' Console script
« Reply #2 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




Ryan 

Colorado Springs, CO
www.cospringsweather.com
Davis Vantage Vue
Weather Display Software
Hikvision HD IP Camera

Offline jgillett

  • Forecaster
  • *****
  • Posts: 1186
  • Boltek, Win7 Pro, ToA
    • TiggrWeather Phoenix
Re: Davis 'Live' Console script
« Reply #3 on: December 20, 2013, 07:24:43 PM »
Running at http://tiggrweather.net/davconvp2CW.php for some time.

Well done, BCJKiwi.
John
W7JKG

Offline CNYWeather

  • Forecaster
  • *****
  • Posts: 2185
  • Yeah, I'm hugging my traffic light.
    • http://www.cnyweather.com
Re: Davis 'Live' Console script
« Reply #4 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.
Tony




Offline PaulMy

  • Forecaster
  • *****
  • Posts: 4504
    • KomokaWeather
Re: Davis 'Live' Console script
« Reply #5 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
Davis Vantage Pro 2 Plus 24-FARS Wireless
Envoy/USB DataLogger/Cumulus v.1.9.4   -   Vue Console/WiFiLogger/CumulusMX
Komoka, ON  Canada
www.komokaweather.ca   www.komokaweather.com   www.komokaweather.com/weather28/  
www.komokaweather.com/pws/index.php
Blitzortung Station #1076 www.lightningmaps.org/blitzortung7/america/index.php?bo_page=statistics&bo_show=network&lang=en&bo_station_id=969


Offline BCJKiwi

  • Senior Contributor
  • ****
  • Posts: 290
    • Silver Acorn Weather - N.Z.
Re: Davis 'Live' Console script
« Reply #6 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?

Offline BCJKiwi

  • Senior Contributor
  • ****
  • Posts: 290
    • Silver Acorn Weather - N.Z.
Re: Davis 'Live' Console script
« Reply #7 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!
« Last Edit: December 22, 2013, 02:00:35 PM by BCJKiwi »

Offline jgillett

  • Forecaster
  • *****
  • Posts: 1186
  • Boltek, Win7 Pro, ToA
    • TiggrWeather Phoenix
Re: Davis 'Live' Console script
« Reply #8 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...
John
W7JKG

Offline miraculon

  • Sunrise Side Weather
  • Forecaster
  • *****
  • Posts: 3431
  • KE8DAF
    • Sunrise Side Weather in Rogers City MI USA
Re: Davis 'Live' Console script
« Reply #9 on: December 22, 2013, 10:42:51 AM »
This is really neat. Any chance of adding Meteobridge support?

Greg


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

Offline mcrossley

  • Forecaster
  • *****
  • Posts: 433
    • Wilmslow Astro
Re: Davis 'Live' Console script
« Reply #10 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.
Mark

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2205
    • SouthEast Lincoln, NE Weather
Re: Davis 'Live' Console script
« Reply #11 on: December 22, 2013, 12:38:23 PM »
I have had it running here 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!

Regards, Jerry Wilkins
gwwilk@inebraska.com

Offline jgillett

  • Forecaster
  • *****
  • Posts: 1186
  • Boltek, Win7 Pro, ToA
    • TiggrWeather Phoenix
Re: Davis 'Live' Console script
« Reply #12 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.
John
W7JKG

Offline BCJKiwi

  • Senior Contributor
  • ****
  • Posts: 290
    • Silver Acorn Weather - N.Z.
Re: Davis 'Live' Console script
« Reply #13 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?

Offline BCJKiwi

  • Senior Contributor
  • ****
  • Posts: 290
    • Silver Acorn Weather - N.Z.
Re: Davis 'Live' Console script
« Reply #14 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.

Offline Andy G

  • Forecaster
  • *****
  • Posts: 304
    • SunPrairieWeather.com
Re: Davis 'Live' Console script
« Reply #15 on: December 23, 2013, 08:09:35 AM »
Have it running here http://www.sunprairieweather.com/davconvp2CW.php. It looks Great!

Thanks and happy holidays Andy
Once you can accept the universe as being something expanding into an infinite nothing which is something, wearing stripes with plaid is easy.
~Einstein


SunPrairieWeather.com
Davis VP2 24 FARS

Offline PaulMy

  • Forecaster
  • *****
  • Posts: 4504
    • KomokaWeather
Re: Davis 'Live' Console script
« Reply #16 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/davconvueCW.php
Davis Vantage Pro 2 Plus 24-FARS Wireless
Envoy/USB DataLogger/Cumulus v.1.9.4   -   Vue Console/WiFiLogger/CumulusMX
Komoka, ON  Canada
www.komokaweather.ca   www.komokaweather.com   www.komokaweather.com/weather28/  
www.komokaweather.com/pws/index.php
Blitzortung Station #1076 www.lightningmaps.org/blitzortung7/america/index.php?bo_page=statistics&bo_show=network&lang=en&bo_station_id=969


Offline Saunookweather

  • Member
  • *
  • Posts: 24
    • Saunookweather
Re: Davis 'Live' Console script
« Reply #17 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 !!
« Last Edit: December 25, 2013, 09:39:28 PM by Saunookweather »

Offline jgillett

  • Forecaster
  • *****
  • Posts: 1186
  • Boltek, Win7 Pro, ToA
    • TiggrWeather Phoenix
Re: Davis 'Live' Console script
« Reply #18 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.
John
W7JKG

Offline BCJKiwi

  • Senior Contributor
  • ****
  • Posts: 290
    • Silver Acorn Weather - N.Z.
Re: Davis 'Live' Console script
« Reply #19 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).
« Last Edit: December 26, 2013, 06:49:47 AM by BCJKiwi »

Offline Saunookweather

  • Member
  • *
  • Posts: 24
    • Saunookweather
Re: Davis 'Live' Console script
« Reply #20 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.
« Last Edit: December 26, 2013, 07:28:18 AM by Saunookweather »

Offline BCJKiwi

  • Senior Contributor
  • ****
  • Posts: 290
    • Silver Acorn Weather - N.Z.
Re: Davis 'Live' Console script
« Reply #21 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).

Offline Saunookweather

  • Member
  • *
  • Posts: 24
    • Saunookweather
Re: Davis 'Live' Console script
« Reply #22 on: December 26, 2013, 08:10:50 PM »
Ok, I'll check that out. Thank you for your help.

Offline Breezy

  • Indian Trail Weather
  • Forecaster
  • *****
  • Posts: 310
    • Indian Trail Weather
Re: Davis 'Live' Console script
« Reply #23 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
Jeff

W7-64, Intel Z170A 16 GB RAM
Davis VP2 Plus, Davis Soil Moisture/Temp Sensors, Laser Snow Depth Sensor LR4/Fluke 414D

Offline Saunookweather

  • Member
  • *
  • Posts: 24
    • Saunookweather
Re: Davis 'Live' Console script
« Reply #24 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