Welcome to the Cumulus Support forum.
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 2024
Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)
Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 2024
Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)
Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki
Davis 'Live' Console for Saratoga Websites Ver CW2.4.0
Moderator: saratogaWX
-
- Posts: 1256
- Joined: Mon 09 Jul 2012 8:40 pm
- Weather Station: Davis VP2 Cabled
- Operating System: Windows 10 Pro
- Location: Auckland, New Zealand
- Contact:
Re: Davis 'Live' Console for Saratoga Websites Ver CW1.1c
davcon24T is a simple text file and only supplies graph data.
In the CW version the forecast comes from the $vpforecast in CU-defs
This uses the tag <#wsforecast> from CUtagsT which is the weatherstation forecast (which normally generates the same information as <#forecast>.
Would you please check the contents of CUtagst.txt in C:\Cumulus\web and verifiy which forecast fields are in there and if they contain the expected data.
However as I am not familiar with your particular station, the icon may still not get decoded properly if at all.
If you can supply me with a list of the forecast strings, or tell me where to find them I may be able to include them.
Perhaps you could PM me to continue this discussion.
Thanks
In the CW version the forecast comes from the $vpforecast in CU-defs
This uses the tag <#wsforecast> from CUtagsT which is the weatherstation forecast (which normally generates the same information as <#forecast>.
Would you please check the contents of CUtagst.txt in C:\Cumulus\web and verifiy which forecast fields are in there and if they contain the expected data.
However as I am not familiar with your particular station, the icon may still not get decoded properly if at all.
If you can supply me with a list of the forecast strings, or tell me where to find them I may be able to include them.
Perhaps you could PM me to continue this discussion.
Thanks
-
- 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
Very good idea.
I checked my CUtags.php file and I find problem.
#wsforecast in my file was: unavailable....
I changed #wsforecast to #forecast on my Cumulus machine, and >>EVERYTHING<< work perfect.
Thanks a lot!!!
Welcome on my page http://burza.pokluda.net
Regards from Poland...
I checked my CUtags.php file and I find problem.
#wsforecast in my file was: unavailable....
I changed #wsforecast to #forecast on my Cumulus machine, and >>EVERYTHING<< work perfect.
Thanks a lot!!!
Welcome on my page http://burza.pokluda.net
Regards from Poland...
- PaulMy
- Posts: 3849
- Joined: Sun 28 Sep 2008 11:54 pm
- Weather Station: Davis VP2 Plus 24-Hour FARS
- Operating System: Windows8 and Windows10
- Location: Komoka, ON Canada
- Contact:
Re: Davis 'Live' Console for Saratoga Websites Ver CW1.1c
Very good!
You may need to edit the links on lines 137-141 to get the right side buttons to work to your liking,
Paul
You may need to edit the links on lines 137-141 to get the right side buttons to work to your liking,
Paul
VP2+
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
-
- Posts: 1256
- Joined: Mon 09 Jul 2012 8:40 pm
- Weather Station: Davis VP2 Cabled
- Operating System: Windows 10 Pro
- Location: Auckland, New Zealand
- Contact:
Re: Davis 'Live' Console for Saratoga Websites Ver CW1.1d
Ver CW1.1d posted
Refer first post in this thread.
Refer first post in this thread.
-
- Posts: 1256
- Joined: Mon 09 Jul 2012 8:40 pm
- Weather Station: Davis VP2 Cabled
- Operating System: Windows 10 Pro
- Location: Auckland, New Zealand
- Contact:
Re: Davis 'Live' Console for Saratoga Websites Ver CW1.1d
Update to the barotrend arrow code posted
please refer to first post in this thread.
please refer to first post in this thread.
-
- 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
Now, after comparing it to my console..... it is same as it is in my homepageBCJKiwi wrote: The moon pic looks right for the northern hemisphere.
Compare it to your console, not to your home page
Thank You about really fine script
p.s. From where can I take off that wind direction in degrees from console wiev? I think it is not necessary for me...
-kapo-
Last edited by kapo on Mon 30 Sep 2013 2:26 pm, edited 1 time in total.
- gluepack
- Posts: 460
- Joined: Tue 22 Jan 2013 9:20 pm
- Weather Station: PCE-FWS 20
- Operating System: Win 7 Pro
- Location: Zlatina, Bulgaria
Re: Davis 'Live' Console for Saratoga Websites Ver CW1.1d
Wow, thanks for this code, the result looks very professional and works great straight off. Only complaint I have is that jQuery and the led font are in the davcon folder.
Now I have a base to plagiarize for creating a PCE-FWS20 version. Don't tell me! Someone has already done that? Oh, it is a WH1080 clone, someone must have done.
Now I have a base to plagiarize for creating a PCE-FWS20 version. Don't tell me! Someone has already done that? Oh, it is a WH1080 clone, someone must have done.
PWS links: Wunderground➤IVARNAPR3…CWOP/APRS➤E(W)2048…PWSWeather➤ZLATINABG…Awekas➤10631…Twitter➤@Zlatina_weather
Station type: PCE-FWS 20…Webcam link: View south to edge of Provadisko plateau
-
- Posts: 1256
- Joined: Mon 09 Jul 2012 8:40 pm
- Weather Station: Davis VP2 Cabled
- Operating System: Windows 10 Pro
- Location: Auckland, New Zealand
- Contact:
Re: Davis 'Live' Console for Saratoga Websites Ver CW1.1d
So why would the location of the jquery and the font in the davcon folder be a reason for complaint?
They don't relate to anything else on your site so they are better placed with the other files that are specific to this package.
They don't relate to anything else on your site so they are better placed with the other files that are specific to this package.
- gluepack
- Posts: 460
- Joined: Tue 22 Jan 2013 9:20 pm
- Weather Station: PCE-FWS 20
- Operating System: Win 7 Pro
- Location: Zlatina, Bulgaria
Re: Davis 'Live' Console for Saratoga Websites Ver CW1.1d
I use jQuery and I have a fonts folder. Each are pretty common to many add-ons.
PWS links: Wunderground➤IVARNAPR3…CWOP/APRS➤E(W)2048…PWSWeather➤ZLATINABG…Awekas➤10631…Twitter➤@Zlatina_weather
Station type: PCE-FWS 20…Webcam link: View south to edge of Provadisko plateau
-
- Posts: 1256
- Joined: Mon 09 Jul 2012 8:40 pm
- Weather Station: Davis VP2 Cabled
- Operating System: Windows 10 Pro
- Location: Auckland, New Zealand
- Contact:
Re: Davis 'Live' Console for Saratoga Websites Ver CW1.1d
gluepack
The standard CDN jquery library is not in the davcon folder.
While some of the jquery libs in the davcon folder are standard libs they need to be downloaded (i.e. they are not CDN) and others are specific to this script.
I also have font folders - more than one - as different developers use different standards.
If you want to move these to meet your personal preferences then do so - no need to complain.
The present structure makes it simple and straight forward to set up so the package "works straight off" as you said!
The standard CDN jquery library is not in the davcon folder.
While some of the jquery libs in the davcon folder are standard libs they need to be downloaded (i.e. they are not CDN) and others are specific to this script.
I also have font folders - more than one - as different developers use different standards.
If you want to move these to meet your personal preferences then do so - no need to complain.
The present structure makes it simple and straight forward to set up so the package "works straight off" as you said!
-
- Posts: 845
- Joined: Sun 10 May 2009 8:52 pm
- Weather Station: davis vp2 Serial datalogger
- Operating System: Windows 7 64-bit
- Location: Springfield, IL
Re: Davis 'Live' Console for Saratoga Websites Ver CW1.1d
Hi BCJKiwi,
Im not sure that i missed it not showing data
http://99.37.51.93/working/davconvp2CW.php
Ok I found it it was line 117
could sme like this be done?
Beau
Im not sure that i missed it not showing data
http://99.37.51.93/working/davconvp2CW.php
Ok I found it it was line 117
could sme like this be done
Code: Select all
if (isset($SITE['realtimefile'])) { $dataurl = $SITE['realtimefile'];}
Beau
-
- Posts: 1256
- Joined: Mon 09 Jul 2012 8:40 pm
- Weather Station: Davis VP2 Cabled
- Operating System: Windows 10 Pro
- Location: Auckland, New Zealand
- Contact:
Re: Davis 'Live' Console for Saratoga Websites Ver CW1.1d
Don't fully understand the question/issue.
If the realtime.txt file does not exist on your site then the realtime data will not be displayed - but all other aspects of the script and the site will continue to work.
If realtime.txt exists but is not updating then realtime data will be displayed but won't be changing - again everything else will continue to work.
There were alerts in the original jquery script but they were not reliable and had undesirable side effects. Timeout and retries were implemented to improve the reliability of loading the realtime.txt file.
The code you have displayed is from elsewhere and has never (if my memory serves correctly) been a part of this script.
If the realtime.txt file does not exist on your site then the realtime data will not be displayed - but all other aspects of the script and the site will continue to work.
If realtime.txt exists but is not updating then realtime data will be displayed but won't be changing - again everything else will continue to work.
There were alerts in the original jquery script but they were not reliable and had undesirable side effects. Timeout and retries were implemented to improve the reliability of loading the realtime.txt file.
The code you have displayed is from elsewhere and has never (if my memory serves correctly) been a part of this script.
-
- Posts: 845
- Joined: Sun 10 May 2009 8:52 pm
- Weather Station: davis vp2 Serial datalogger
- Operating System: Windows 7 64-bit
- Location: Springfield, IL
Re: Davis 'Live' Console for Saratoga Websites Ver CW1.1d
here my thought
your code
my idea
that way if you're using timple is set in your setting and if not you can do it by hand
your code
Code: Select all
// SITE SETTINGS OVERRIDES - overrides from Settings.php & Settings-weather.php if available
/* if ( !isset($SITE['DavisVP']) || $SITE['DavisVP'] == false ) { ?> <h1> ERROR - DAVIS CONSOLE REQUIRED </h1> <?php return; }
// not a Davis VP weather station!! */
if (isset($SITE['latitude'])) {$latitude = $SITE['latitude'];}
if (isset($SITE['WXsoftware'])) {$WXsoftware = $SITE['WXsoftware'];}
// determine 'realtime' data file
if ($WXsoftware == 'CU') { $dataurl = '../realtime.txt'; // './realtime.txt'; for Cumulus
$dayYN = 'N'; } else
if ($WXsoftware == 'WD') { $dataurl = './clientraw.txt'; // './clientraw.txt' for Weather Display
$dayYN = ($dayornight == 'Day')? 'Y' : 'N'; } // turn off Plus ET/UV/Solar at night
// These settings used in this script and / or in ./davcon/jquery.davconsoleCW.js
if(isset($WX['ET'])) { $VPet = $WX['ET']; }
$vp2 = ' '; // $vp2 = ' ' or 'Plus' for VPro2 Plus - i.e ET/UV/Solar
$uomsys = ' '; // Only required by WD - ' ' for Metric units, 'Imp' for Imperial units
$imgdir = './davcon/'; // path to jquery and images with trailing /
$dewrotate = 3;
Code: Select all
// SITE SETTINGS OVERRIDES - overrides from Settings.php & Settings-weather.php if available
/* if ( !isset($SITE['DavisVP']) || $SITE['DavisVP'] == false ) { ?> <h1> ERROR - DAVIS CONSOLE REQUIRED </h1> <?php return; }
// not a Davis VP weather station!! */
if (isset($SITE['latitude'])) {$latitude = $SITE['latitude'];}
if (isset($SITE['WXsoftware'])) {$WXsoftware = $SITE['WXsoftware'];}
// determine 'realtime' data file
if ($WXsoftware == 'CU') { $dataurl = '../realtime.txt'; // './realtime.txt'; for Cumulus
$dayYN = 'N'; } else
if ($WXsoftware == 'WD') { $dataurl = './clientraw.txt'; // './clientraw.txt' for Weather Display
$dayYN = ($dayornight == 'Day')? 'Y' : 'N'; } // turn off Plus ET/UV/Solar at night
if (isset($SITE['realtimefile'])) { $dataurl = $SITE['realtimefile'];}
// These settings used in this script and / or in ./davcon/jquery.davconsoleCW.js
if(isset($WX['ET'])) { $VPet = $WX['ET']; }
$vp2 = ' '; // $vp2 = ' ' or 'Plus' for VPro2 Plus - i.e ET/UV/Solar
$uomsys = ' '; // Only required by WD - ' ' for Metric units, 'Imp' for Imperial units
$imgdir = './davcon/'; // path to jquery and images with trailing /
$dewrotate = 3;
-
- Posts: 1256
- Joined: Mon 09 Jul 2012 8:40 pm
- Weather Station: Davis VP2 Cabled
- Operating System: Windows 10 Pro
- Location: Auckland, New Zealand
- Contact:
Re: Davis 'Live' Console for Saratoga Websites Ver CW1.1d
Well I'm sorry but I really don't see the advantage.
If you are not using the Saratoga template then you have a lot more changes to make than just the realtime file! You are free to customise the code to do something special at which time you are on your own with your own version. If you are not using the Saratoga script, you might be better starting with the Cumulus only davconCU version instead of the Saratoga davconCW version.
We need to check CU or WD to set the $dayYN here as the source for this if different between the systems.
By setting the realtime file here as well we can more easily see within the context of this script where the data is coming from.
It also makes it simpler should we need to change the file from realtime.txt to some other file later or, as you seem to want to do, to 'manually set it'.
However, if we were to rely on the more obscure $SITE setting then the code for your suggested change would more efficiently become;
I confess that have difficulty following these suggestions you make. To me it appears you are offering solutions to some issue or idea you have but you do not explain the background nor WHY you want to make the change, just WHAT you want to change.
If you are not using the Saratoga template then you have a lot more changes to make than just the realtime file! You are free to customise the code to do something special at which time you are on your own with your own version. If you are not using the Saratoga script, you might be better starting with the Cumulus only davconCU version instead of the Saratoga davconCW version.
We need to check CU or WD to set the $dayYN here as the source for this if different between the systems.
By setting the realtime file here as well we can more easily see within the context of this script where the data is coming from.
It also makes it simpler should we need to change the file from realtime.txt to some other file later or, as you seem to want to do, to 'manually set it'.
However, if we were to rely on the more obscure $SITE setting then the code for your suggested change would more efficiently become;
Code: Select all
// turn off Plus ET/UV/Solar at night
if ($WXsoftware == 'CU') { $dayYN = 'N'; } else
if ($WXsoftware == 'WD') {$dayYN = ($dayornight == 'Day')? 'Y' : 'N'; }
if (isset($SITE['realtimefile'])) { $dataurl = $SITE['realtimefile'];}
-
- Posts: 845
- Joined: Sun 10 May 2009 8:52 pm
- Weather Station: davis vp2 Serial datalogger
- Operating System: Windows 7 64-bit
- Location: Springfield, IL
Re: Davis 'Live' Console for Saratoga Websites Ver CW1.1d
Hi BCJKiwi,
the idea was if you are using Saratoga package as part of the setup you set
here the other one
so why not use it to set the path in the script?
Beau
the idea was if you are using Saratoga package as part of the setup you set
Code: Select all
$SITE['realtimefile'] = '../realtime.txt'; // directory and name of Cumulus realtime.txt file
here the other one
Code: Select all
$SITE['clientrawfile'] = 'clientraw.txt'; // directory and name of Weather-Display realtime.txt file
Beau