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

0 Members and 1 Guest are viewing this topic.

Offline BCJKiwi

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

Offline mcrossley

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

Offline dazza

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

Offline BCJKiwi

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

Offline dazza

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

Offline Radek6

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

Offline PaulMy

  • Forecaster
  • *****
  • Posts: 5119
    • KomokaWeather
Re: Davis 'Live' Console script
« Reply #181 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

Offline Radek6

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

Offline PaulMy

  • Forecaster
  • *****
  • Posts: 5119
    • KomokaWeather
Re: Davis 'Live' Console script
« Reply #183 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

Offline Radek6

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

Offline PaulMy

  • Forecaster
  • *****
  • Posts: 5119
    • KomokaWeather
Re: Davis 'Live' Console script
« Reply #185 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)[/size]


Enjoy,
Paul








Offline Radek6

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

Offline PaulMy

  • Forecaster
  • *****
  • Posts: 5119
    • KomokaWeather
Re: Davis 'Live' Console script
« Reply #187 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


Offline ConligWX

  • Forecaster
  • *****
  • Posts: 766
  • #conligwx
    • conligwx.org
Re: Davis 'Live' Console script
« Reply #188 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   
Regards Simon
Davis Vantage Pro2 Plus (6162UK) • Daytime FARS • WeatherLink Live • AirLink • PurpleAir PA-II-SD • CumulusMX •


Offline Radek6

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

Offline BCJKiwi

  • Senior Contributor
  • ****
  • Posts: 299
    • Silver Acorn Weather - N.Z.
Re: Davis 'Live' Console script
« Reply #190 on: May 11, 2021, 04:26:52 PM »
You should be posting on the cumulus Forum.

Offline scudwatcher

  • Forecaster, Webmaster
  • Senior Member
  • **
  • Posts: 60
  • Amateur Radio KC4SRA
    • CSRA Weather and Air Quality
Re: Davis 'Live' Console script
« Reply #191 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
|Davis VP2 Plus 24-Hour FARS (Wireless) | Davis Soil Moisture/Temperature Station | Davis Weatherlink Live | Meteobridge Pro Red | Davis Airlink Indoor/Outdoor Sensors | Purple Air PM2.5, PM10, VOC Sensors |Saratoga Base USA /Weather Display | Cumulus 1 Legacy | CumulusMX WLL | Weather34 on My Site

Offline PaulMy

  • Forecaster
  • *****
  • Posts: 5119
    • KomokaWeather
Re: Davis 'Live' Console script
« Reply #192 on: August 14, 2021, 12:49:36 PM »
Brian's Downloads page is here Silver Acorn Weather - Auckland, New Zealand - Scripts

Re the wind units, I use the Cumulus version KomokaWeather 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

Offline scudwatcher

  • Forecaster, Webmaster
  • Senior Member
  • **
  • Posts: 60
  • Amateur Radio KC4SRA
    • CSRA Weather and Air Quality
Re: Davis 'Live' Console script
« Reply #193 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.
|Davis VP2 Plus 24-Hour FARS (Wireless) | Davis Soil Moisture/Temperature Station | Davis Weatherlink Live | Meteobridge Pro Red | Davis Airlink Indoor/Outdoor Sensors | Purple Air PM2.5, PM10, VOC Sensors |Saratoga Base USA /Weather Display | Cumulus 1 Legacy | CumulusMX WLL | Weather34 on My Site

Offline the beteljuice

  • the beteljuice
  • Forecaster
  • *****
  • Posts: 316
    • test site
Re: Davis 'Live' Console script
« Reply #194 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);

Imagine what you will KNOW tomorrow !

Offline scudwatcher

  • Forecaster, Webmaster
  • Senior Member
  • **
  • Posts: 60
  • Amateur Radio KC4SRA
    • CSRA Weather and Air Quality
Re: Davis 'Live' Console script
« Reply #195 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.
|Davis VP2 Plus 24-Hour FARS (Wireless) | Davis Soil Moisture/Temperature Station | Davis Weatherlink Live | Meteobridge Pro Red | Davis Airlink Indoor/Outdoor Sensors | Purple Air PM2.5, PM10, VOC Sensors |Saratoga Base USA /Weather Display | Cumulus 1 Legacy | CumulusMX WLL | Weather34 on My Site

Offline waiukuweather

  • Forecaster
  • *****
  • Posts: 1000
Re: Davis 'Live' Console script
« Reply #196 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 :)

 

anything