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

0 Members and 1 Guest are viewing this topic.

Offline ValentineWeather

  • Forecaster
  • *****
  • Posts: 6367
    • Valentine Nebraska's Real-Time Weather
Re: Davis 'Live' Console script
« Reply #125 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.
Randy

Offline bianconero57

  • Contributor
  • ***
  • Posts: 134
    • Valdefensch@57
Re: Davis 'Live' Console script
« Reply #126 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

Offline BCJKiwi

  • Forecaster
  • *****
  • Posts: 302
    • Silver Acorn Weather - N.Z.
Re: Davis 'Live' Console script
« Reply #127 on: November 23, 2014, 04:03:18 PM »
Sent you a message which should get things working.

Offline SteveJ

  • Senior Member
  • **
  • Posts: 95
    • My Blog
Re: Davis 'Live' Console script
« Reply #128 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!
My LinkedIn

Weather.LakeWebster.com

WU: KMAPLE47 | PWS: JNKNS | CWOP: EW6690 | WXBug: p22113


Offline miraculon

  • Sunrise Side Weather
  • Forecaster
  • *****
  • Posts: 4108
  • KE8DAF
    • Sunrise Side Weather in Rogers City MI USA
Re: Davis 'Live' Console script
« Reply #129 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.


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

Offline SteveJ

  • Senior Member
  • **
  • Posts: 95
    • My Blog
Re: Davis 'Live' Console script
« Reply #130 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.
My LinkedIn

Weather.LakeWebster.com

WU: KMAPLE47 | PWS: JNKNS | CWOP: EW6690 | WXBug: p22113


Offline schwab

  • Senior Member
  • **
  • Posts: 94
Re: Davis 'Live' Console script
« Reply #131 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.

Offline BCJKiwi

  • Forecaster
  • *****
  • Posts: 302
    • Silver Acorn Weather - N.Z.
Re: Davis 'Live' Console script
« Reply #132 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.

Offline SteveJ

  • Senior Member
  • **
  • Posts: 95
    • My Blog
Re: Davis 'Live' Console script
« Reply #133 on: February 03, 2015, 02:48:58 PM »
Anyone know if VWS can generate the necessary files for it to work?
My LinkedIn

Weather.LakeWebster.com

WU: KMAPLE47 | PWS: JNKNS | CWOP: EW6690 | WXBug: p22113


Offline W3DRM

  • Forecaster
  • *****
  • Posts: 3360
    • Emmett Weather
Re: Davis 'Live' Console script
« Reply #134 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.
Don - W3DRM - Emmett, Idaho --- Blitzortung ID: 808 --- FlightRadar24 ID: F-KBOI7
Davis Wireless VP2, WD 10.37s150,
StartWatch, VirtualVP, VPLive, Win10 Pro
--- Logitech HD Pro C920 webcam (off-line)
--- RIPE Atlas Probe - 32849

Offline virusdunil

  • Forecaster
  • *****
  • Posts: 388
    • Station Meteo Hebertville
Re: Davis 'Live' Console script
« Reply #135 on: May 28, 2015, 01:39:53 PM »
Is there a similar for Leuven template ?
Cabled Vantage pro2 + Solar / Stevensen screen
Weather Display latest version + Boltek PCI-NexStorm-StormVue NGX / NSDisplay


http://www.meteolacstjean.com/weather28/index.php
Meteotemplate : http://www.meteolacstjean.com/hebert/index.php

Offline bianconero57

  • Contributor
  • ***
  • Posts: 134
    • Valdefensch@57
Re: Davis 'Live' Console script
« Reply #136 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

Offline BCJKiwi

  • Forecaster
  • *****
  • Posts: 302
    • Silver Acorn Weather - N.Z.
Re: Davis 'Live' Console script
« Reply #137 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.
« Last Edit: June 08, 2015, 04:52:55 PM by BCJKiwi »

Offline W3DRM

  • Forecaster
  • *****
  • Posts: 3360
    • Emmett Weather
Re: Davis 'Live' Console script
« Reply #138 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.
« Last Edit: June 08, 2015, 11:33:49 PM by W3DRM »
Don - W3DRM - Emmett, Idaho --- Blitzortung ID: 808 --- FlightRadar24 ID: F-KBOI7
Davis Wireless VP2, WD 10.37s150,
StartWatch, VirtualVP, VPLive, Win10 Pro
--- Logitech HD Pro C920 webcam (off-line)
--- RIPE Atlas Probe - 32849

Offline bianconero57

  • Contributor
  • ***
  • Posts: 134
    • Valdefensch@57
Re: Davis 'Live' Console script
« Reply #139 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
« Last Edit: June 09, 2015, 05:16:29 AM by bianconero57 »

Offline BCJKiwi

  • Forecaster
  • *****
  • Posts: 302
    • Silver Acorn Weather - N.Z.
Re: Davis 'Live' Console script
« Reply #140 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.


Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Re: Davis 'Live' Console script
« Reply #141 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


Offline bianconero57

  • Contributor
  • ***
  • Posts: 134
    • Valdefensch@57
Re: Davis 'Live' Console script
« Reply #142 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

Offline miraculon

  • Sunrise Side Weather
  • Forecaster
  • *****
  • Posts: 4108
  • KE8DAF
    • Sunrise Side Weather in Rogers City MI USA
Re: Davis 'Live' Console script
« Reply #143 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

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.





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

Offline bianconero57

  • Contributor
  • ***
  • Posts: 134
    • Valdefensch@57
Re: Davis 'Live' Console script
« Reply #144 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  ](*,)

Offline FlaglerGunClub

  • Member
  • *
  • Posts: 1
    • Flagler Gun & Archery Club Weather
Re: Davis 'Live' Console script
« Reply #145 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.

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.

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

Offline bianconero57

  • Contributor
  • ***
  • Posts: 134
    • Valdefensch@57
Re: Davis 'Live' Console script
« Reply #146 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

Offline hcorrin

  • Contributor
  • ***
  • Posts: 128
    • Ballaugh Weather
Re: Davis 'Live' Console script
« Reply #147 on: July 19, 2015, 06:31:59 PM »
Hi
the web address for the script has changed to 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  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 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

Offline meteo.thenioux

  • Member
  • *
  • Posts: 13
    • Thenioux Méteo Tomatologue
Re: Davis 'Live' Console script
« Reply #148 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

 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

Offline BCJKiwi

  • Forecaster
  • *****
  • Posts: 302
    • Silver Acorn Weather - N.Z.
Re: Davis 'Live' Console script
« Reply #149 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.