Welcome to the Cumulus Support forum.
Latest Cumulus MX V4 release 4.0.1 (build 4023) - 16 May 2024
(Note that 4.1.0 (build 4024) - 05 June 2024 remains available, but usage of this version is not recommended - particularly for Davis stations - and the included utility in this distribution for migrating to v4 is known to contain errors affecting conversion of dayfile.txt)
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 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 V4 release 4.0.1 (build 4023) - 16 May 2024
(Note that 4.1.0 (build 4024) - 05 June 2024 remains available, but usage of this version is not recommended - particularly for Davis stations - and the included utility in this distribution for migrating to v4 is known to contain errors affecting conversion of dayfile.txt)
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 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
CumulusMX PHP Webtags
Moderator: daj
-
- Posts: 3337
- Joined: Sat 13 Aug 2011 9:33 am
- Weather Station: Ecowitt HP2551
- Operating System: Windows 10 64bit
- Location: Burnham-on-Sea
- Contact:
Re: CumulsMX PHP Webtags
OK after reading the PHP documentation pointed to by sfws I have changed the two files to exclude the closing ?> and tested them to see if they work correctly.
Been programming in PHP now for so many years I care not to recall, but I am always willing to learn!! Why I never spotted this I will never know as I always RTFM!!
Been programming in PHP now for so many years I care not to recall, but I am always willing to learn!! Why I never spotted this I will never know as I always RTFM!!
- beteljuice
- Posts: 3292
- Joined: Tue 09 Dec 2008 1:37 pm
- Weather Station: None !
- Operating System: W10 - Threadripper 16core, etc
- Location: Dudley, West Midlands, UK
Re: CumulsMX PHP Webtags
the beteljuice will continue to 'close' his tags (keeps the editor happy)
Just as I'm sort of trying to rebuild the Saratoga / Kocher style 'wxstatus' page for everyone, the files and tags and file sizes are in 'flux' .
test page is also in flux and has much yet to do and 'new records' has an incredible amount of possible notifications to try and code for.
Different size versions have been mentioned, so what is the expected upload frequency of this file ?
Last edited by beteljuice on Sun 26 Apr 2020 6:39 am, edited 1 time in total.
......................Imagine, what you will KNOW tomorrow !
- HansR
- Posts: 6084
- Joined: Sat 20 Oct 2012 6:53 am
- Weather Station: GW1100 (WS80/WH40)
- Operating System: Raspberry OS/Bookworm
- Location: Wagenborgen (NL)
- Contact:
Re: CumulsMX PHP Webtags
Ah, that's a nice one @beteljuice. Had been looking at something like this with kocher but did not have the time to dive in deep.
Looks good. Has it finished already? And I don't even use webtags.
Looks good. Has it finished already? And I don't even use webtags.
Hans
https://meteo-wagenborgen.nl
CMX build 4023+ ● RPi 3B+ ● Raspbian Linux 6.1.21-v7+ armv7l ● dotnet 8.0.3
https://meteo-wagenborgen.nl
CMX build 4023+ ● RPi 3B+ ● Raspbian Linux 6.1.21-v7+ armv7l ● dotnet 8.0.3
-
- Posts: 3337
- Joined: Sat 13 Aug 2011 9:33 am
- Weather Station: Ecowitt HP2551
- Operating System: Windows 10 64bit
- Location: Burnham-on-Sea
- Contact:
Re: CumulsMX PHP Webtags
If you mean my cumulswubtags.txt only if there is an error or Mark adds more webtags.Different size versions have been mentioned, so what is the expected upload frequency of this file ?
-
- Posts: 3337
- Joined: Sat 13 Aug 2011 9:33 am
- Weather Station: Ecowitt HP2551
- Operating System: Windows 10 64bit
- Location: Burnham-on-Sea
- Contact:
Re: CumulsMX PHP Webtags
OK Mark is a hard man to keep up with but I have added all the new build 3076 "feels like" webtags and updated and added the Davis webtags in cumuluswebtags.txt in the first post and tested it on my website. All is working at it should be!!
This is both files by the way as there are new ByMonth Feels Like webtags
This is both files by the way as there are new ByMonth Feels Like webtags
- dazza1223
- Posts: 878
- Joined: Sun 25 Jan 2015 8:41 pm
- Weather Station: Davis Vantage Pro 2 plus
- Operating System: Raspberry pi 4 (4gb)
- Location: Worthing
- Contact:
Re: CumulsMX PHP Webtags
hi i took on somthink abit here
im trying to get cumuluswebtags.php to inport in the tags with out cumuls prossising it
but it not outputing the same way as if it get prosested bye cumuls
this is the one
var then_month = 06 -1;
var then = Date.UTC(2020, then_month, 10, 18, 50, 07);
var timetodie = 10 * missed * 60000; // milliseconds per minute
im trying to get it done in php
and the php one outputs this
// Javascript Cumulus update checker - betejuice v2.0 July 2011
// set these variables to suit
var missed = 2; // Number of updates to miss before deciding "offline", MUST be > 1, fractions allowed (eg. 1.5)
var online_pic = "images/pictures/greenbrightled21px.gif"; // location of ONline image
var online_txt = "on line"; // your ONline text
var online_txt2 = "0";
var offline_pic = "images/pictures/redgreenled21px.gif"; // location of OFFline image
var offline_txt = "off line"; // your OFFline text
var offline_txt2 = "2";
// END user vars
im trying to get cumuluswebtags.php to inport in the tags with out cumuls prossising it
but it not outputing the same way as if it get prosested bye cumuls
this is the one
var then_month = 06 -1;
var then = Date.UTC(2020, then_month, 10, 18, 50, 07);
var timetodie = 10 * missed * 60000; // milliseconds per minute
im trying to get it done in php
and the php one outputs this
// Javascript Cumulus update checker - betejuice v2.0 July 2011
// set these variables to suit
var missed = 2; // Number of updates to miss before deciding "offline", MUST be > 1, fractions allowed (eg. 1.5)
var online_pic = "images/pictures/greenbrightled21px.gif"; // location of ONline image
var online_txt = "on line"; // your ONline text
var online_txt2 = "0";
var offline_pic = "images/pictures/redgreenled21px.gif"; // location of OFFline image
var offline_txt = "off line"; // your OFFline text
var offline_txt2 = "2";
// END user vars
Code: Select all
script type="text/javascript">
<!--
// Javascript Cumulus update checker - betejuice v2.0 July 2011
// set these variables to suit
var missed = 2; // Number of updates to miss before deciding "offline", MUST be > 1, fractions allowed (eg. 1.5)
var online_pic = "images/pictures/greenbrightled21px.gif"; // location of ONline image
var online_txt = "on line"; // your ONline text
var online_txt2 = "0";
var offline_pic = "images/pictures/redgreenled21px.gif"; // location of OFFline image
var offline_txt = "off line"; // your OFFline text
var offline_txt2 = "2";
// END user vars
var now = new Date();
var then_month = <?php echo $timeUTC?> format=mm> -1;
var then = Date.UTC(<?php echo $timeUTC?> format=yyyy>, then_month, <?php echo $timeUTC?> format="dd', 'hh', 'mm', 'ss");
var timetodie = <?php echo $interval?> * missed * 60000; // milliseconds per minute
if(now - then < timetodie){
status_pic = online_pic;
status_txt = online_txt;
status_txt2 = online_txt2;
} else {
status_pic = offline_pic;
status_txt = offline_txt;
status_txt2 = offline_txt2;
}
-->
</script>
-
- Posts: 3337
- Joined: Sat 13 Aug 2011 9:33 am
- Weather Station: Ecowitt HP2551
- Operating System: Windows 10 64bit
- Location: Burnham-on-Sea
- Contact:
Re: CumulsMX PHP Webtags
I am sorry but I do not understand what you are attempting to do.
By it's very nature cumuluswebtags.txt has to be processed by CumulusMX in order to produce the values required to upload cumulswebtags.php, otherwise the values will not be present in the file.
By it's very nature cumuluswebtags.txt has to be processed by CumulusMX in order to produce the values required to upload cumulswebtags.php, otherwise the values will not be present in the file.
- ConligWX
- Posts: 1681
- Joined: Mon 19 May 2014 10:45 pm
- Weather Station: Davis vPro2+ w/DFARS + AirLink
- Operating System: Ubuntu 24.04 LTS
- Location: Bangor, NI
- Contact:
Re: CumulsMX PHP Webtags
David.
Line 791 of cumulusmxwebtags.txt has a typo by the looks of it. $txchammels
Line 791 of cumulusmxwebtags.txt has a typo by the looks of it. $txchammels
Regards Simon
https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir • CumulusMX v4.0.0
https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir • CumulusMX v4.0.0
-
- Posts: 3337
- Joined: Sat 13 Aug 2011 9:33 am
- Weather Station: Ecowitt HP2551
- Operating System: Windows 10 64bit
- Location: Burnham-on-Sea
- Contact:
Re: CumulsMX PHP Webtags
Not really an error as it is a PHP generated tag anyway i.e. not output by MX, but I have altered it to channels.
File now available.
To anyone who was using it $txchammels is now $txchannels (would only apply to David users).
File now available.
To anyone who was using it $txchammels is now $txchannels (would only apply to David users).
-
- Posts: 3337
- Joined: Sat 13 Aug 2011 9:33 am
- Weather Station: Ecowitt HP2551
- Operating System: Windows 10 64bit
- Location: Burnham-on-Sea
- Contact:
Re: CumulsMX PHP Webtags
Updated for all builds up to Build 3092 on 23rd August, sorry for delay.
-
- Posts: 3337
- Joined: Sat 13 Aug 2011 9:33 am
- Weather Station: Ecowitt HP2551
- Operating System: Windows 10 64bit
- Location: Burnham-on-Sea
- Contact:
Re: CumulsMX PHP Webtags
Updated for all builds up to Build 3094 on 14th September, sorry for delay.