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

Cumuluswebtags.php query please

Discussion and questions about Cumulus weather station software version 1. This section is the main place to get help with Cumulus 1 software developed by Steve Loft that ceased development in November 2014.
User avatar
JennyLeez
Posts: 316
Joined: Wed 16 Dec 2009 2:32 am
Weather Station: La Crosse WS3083
Operating System: Windows XP, Win7 & Win 10
Location: Wairoa, Hawkes Bay. New Zealand.
Contact:

Cumuluswebtags.php query please

Post by JennyLeez »

Hi Weather People,
I downloaded version 1.1 of Cumuluswebtags.php to replace version 1.04 in order to play with new toolbox :)
There was no way 1.1 would process and each time I ended up with a nice white page :(
I compared both old and new files and found version 1.04 started with ?php while version 1.11 started with <?php
So I removed the < from 1.11 and now it runs. Ok I am new at this PHP having only written plain htm pages.
Could someone kindly explain why I needed to remove the < in order for Cumulus to process the cumuluswebtags file.
All the other .php files I am processing start with <?php and process just fine.
Many thanks for any explanation
Jenny
Wairoa, Hawkes Bay, New Zealand Weather Station:
http://wairoa.net/weather/index.htm
Cumulus Topsites:
http://cumulussites.net/
Image
User avatar
daj
Posts: 2041
Joined: Tue 29 Jul 2008 8:00 pm
Weather Station: WH1081
Operating System: Pi & MX
Location: SW Scotland
Contact:

Re: Cumuluswebtags.php query please

Post by daj »

All PHP code must start with <?php and end with ?>. Having said that I do not think Cumulus cares when it comes to processing it.

I'm using the 1.11 version on my site without modification.

If you just open the tag file in a browser it displays nothing anyway, as it is not designed to. It is simply a list of variables to be used.

Normally within your php code you would have

Code: Select all

<?php require_once("cumuluswebtags.php"); ?>
You could then refer to any of these variables...

Code: Select all

<?php 
.....
echo $temp;
...
?>
David
kippfordweather.uk
Cumulus MX & Raspberry Pi
User avatar
JennyLeez
Posts: 316
Joined: Wed 16 Dec 2009 2:32 am
Weather Station: La Crosse WS3083
Operating System: Windows XP, Win7 & Win 10
Location: Wairoa, Hawkes Bay. New Zealand.
Contact:

Re: Cumuluswebtags.php query please

Post by JennyLeez »

Thanks David for this but.........
with the < cumuluswebtags.php is blank as in 0.00k in size.
Without the < it is around 20k in size and not blank.
It also does return a nice page of info to read :)
Look :)

http://wairoa.net/weather/cumuluswebtags.php My webtags

Cheers
Jenny
Wairoa, Hawkes Bay, New Zealand Weather Station:
http://wairoa.net/weather/index.htm
Cumulus Topsites:
http://cumulussites.net/
Image
User avatar
daj
Posts: 2041
Joined: Tue 29 Jul 2008 8:00 pm
Weather Station: WH1081
Operating System: Pi & MX
Location: SW Scotland
Contact:

Re: Cumuluswebtags.php query please

Post by daj »

Oh, that is BAD! You should see nothing if you view the page...example

http://www.grantownweather.co.uk/data/cumulustags.php

Something has corrupted your webtag file -- what did you edit it in? Notepad?
David
kippfordweather.uk
Cumulus MX & Raspberry Pi
User avatar
JennyLeez
Posts: 316
Joined: Wed 16 Dec 2009 2:32 am
Weather Station: La Crosse WS3083
Operating System: Windows XP, Win7 & Win 10
Location: Wairoa, Hawkes Bay. New Zealand.
Contact:

Re: Cumuluswebtags.php query please

Post by JennyLeez »

I use TextPad 5.1 for all my htm pages.
I copied the cumuluswebtags.txt to the editor.
Saved it as a .php
Uploaded but as I said it did not process.
Take away the < it does process.
I am running other .php files again using TextPad 5.1 but none of those pages as with
get-UV-forecast-inc.php or realtimelog.php do this. Only the webtags one.

Any ideas :)

Cheers
Jenny
Wairoa, Hawkes Bay, New Zealand Weather Station:
http://wairoa.net/weather/index.htm
Cumulus Topsites:
http://cumulussites.net/
Image
User avatar
daj
Posts: 2041
Joined: Tue 29 Jul 2008 8:00 pm
Weather Station: WH1081
Operating System: Pi & MX
Location: SW Scotland
Contact:

Re: Cumuluswebtags.php query please

Post by daj »

Can you send me your PHP file and let me run it through my Cumulus please

Attach it or PM -- you may need to ZIP it as I think the fourm will not allow PHP directly
David
kippfordweather.uk
Cumulus MX & Raspberry Pi
User avatar
JennyLeez
Posts: 316
Joined: Wed 16 Dec 2009 2:32 am
Weather Station: La Crosse WS3083
Operating System: Windows XP, Win7 & Win 10
Location: Wairoa, Hawkes Bay. New Zealand.
Contact:

Re: Cumuluswebtags.php query please

Post by JennyLeez »

I have sent the file to the email address on your weather station site.
If thats not ok, let me know.
Thanks
Wairoa, Hawkes Bay, New Zealand Weather Station:
http://wairoa.net/weather/index.htm
Cumulus Topsites:
http://cumulussites.net/
Image
User avatar
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: Cumuluswebtags.php query please

Post by beteljuice »

... Oh, that is BAD! You should see nothing if you view the page...example

http://www.grantownweather.co.uk/data/cumulustags.php
I think Jenny may be getting confused, and expects to see a visual o/p from the page ?

By removing the leading < the page is NOT being processed by php and is being treated as html, so you 'see' all the (php) instructions - in other words GARBAGE !

.. Welcome to the forum BTW Jenny ;)
Image
......................Imagine, what you will KNOW tomorrow !
User avatar
JennyLeez
Posts: 316
Joined: Wed 16 Dec 2009 2:32 am
Weather Station: La Crosse WS3083
Operating System: Windows XP, Win7 & Win 10
Location: Wairoa, Hawkes Bay. New Zealand.
Contact:

Re: Cumuluswebtags.php query please

Post by JennyLeez »

Hi there,
If I leave the < in cumulus does not process it. 0.00k is the size so I presume it is not processed.
Would the file not have a size if processed pleased.
Cheers
Wairoa, Hawkes Bay, New Zealand Weather Station:
http://wairoa.net/weather/index.htm
Cumulus Topsites:
http://cumulussites.net/
Image
User avatar
JennyLeez
Posts: 316
Joined: Wed 16 Dec 2009 2:32 am
Weather Station: La Crosse WS3083
Operating System: Windows XP, Win7 & Win 10
Location: Wairoa, Hawkes Bay. New Zealand.
Contact:

Re: Cumuluswebtags.php query please

Post by JennyLeez »

Oh and I should add here, it does not FTP to web server either with the < at the beginning. Without the < it does ftp.
I know this from the time stamp.
Thanks for help
Jenny
Wairoa, Hawkes Bay, New Zealand Weather Station:
http://wairoa.net/weather/index.htm
Cumulus Topsites:
http://cumulussites.net/
Image
User avatar
daj
Posts: 2041
Joined: Tue 29 Jul 2008 8:00 pm
Weather Station: WH1081
Operating System: Pi & MX
Location: SW Scotland
Contact:

Re: Cumuluswebtags.php query please

Post by daj »

Jenny

I have just added the "<" back to the start of your file and Cumulus processes it fine. As far as I know Cumulus does not care what the file is anyway, as all it does is look for webtags <#xxxx> and replace them with values.

When you say the file is 0bytes -- what file?

Given that you are not uploading it to the web, what is the remote file you have for the entry in the config. screen? I'm wondering if you have it as the same location and name as the local?!
David
kippfordweather.uk
Cumulus MX & Raspberry Pi
User avatar
JennyLeez
Posts: 316
Joined: Wed 16 Dec 2009 2:32 am
Weather Station: La Crosse WS3083
Operating System: Windows XP, Win7 & Win 10
Location: Wairoa, Hawkes Bay. New Zealand.
Contact:

Re: Cumuluswebtags.php query please

Post by JennyLeez »

Ok when I say file, I am meaning the cumuluswebtags.phptmp is 0.0k
I would expect it to be much the same size once processed as the original cumuluswebtags.php file.
Every one of my processed web pages adds another page like xxxx.htmtmp or xxxxphptmp into the cumulus folder of which I presume is normal. These tmp files all have a file size.
The cumuluswebtags.phptmp does not.
Ok its 2.00am here so bed for me.
I have added the < back on and I will leave and see what happens over night.
Gee all this just so I can play with the new Toolbox :)
Many thanks David.
Night all

Jenny
Wairoa, Hawkes Bay, New Zealand Weather Station:
http://wairoa.net/weather/index.htm
Cumulus Topsites:
http://cumulussites.net/
Image
User avatar
JennyLeez
Posts: 316
Joined: Wed 16 Dec 2009 2:32 am
Weather Station: La Crosse WS3083
Operating System: Windows XP, Win7 & Win 10
Location: Wairoa, Hawkes Bay. New Zealand.
Contact:

Re: Cumuluswebtags.php query please

Post by JennyLeez »

Update.
All is working now after a lot of mucking around on another PC and coping across to weather station computer. I have no idea where I went wrong but at least its fixed. Thank you David for all your time, your answers actually gave me more insight as to how things work so you certainly did not waste your time with me :)
The toolbox is another story and another post "shudder"
Cheers
Wairoa, Hawkes Bay, New Zealand Weather Station:
http://wairoa.net/weather/index.htm
Cumulus Topsites:
http://cumulussites.net/
Image
gemini06720
Posts: 1700
Joined: Mon 10 Aug 2009 10:16 pm
Weather Station: No weather station
Operating System: No operating system
Location: World...

Re: Cumuluswebtags.php query please

Post by gemini06720 »

Jenny, the 'cumuluswebtags.php' file is released as a text file under the name 'cumuluswebtags.txt' - the file you have downloaded from the Cumulus Wiki is NOT a PHP file until it has been processed by Cumulus and uploaded to a server.

Code: Select all

To create the PHP file you need to adjust the following setting in Cumulus (this is a review to ensure you got everything properly setup):

- from the Cumulus main screen, select the 'Configuration -> Internet';
- on the 'Internet Settings' screen, select the 'Files' tab;
- in a left side box under the 'Local filenames', enter the name 'cumuluswebtags.txt';
- in a right side box under the 'Remote filenames', enter the name 'cumuluswebtags.php';
- place a check mark in the box under 'Process?' and a check mark in the box under 'FTP?'
To ensure that the 'cumuluswebtags.php' file has been created and uploaded, go to your Web site and enter something such:

Code: Select all

http://tzouhalem.net/cumulus/web/cumulustags.php?source=view
...the above link should display the content of my 'cumulustags.php' (it is the same file but just under a different name).

Unless you enter a specific server folder name, the 'cumuluswebtags.php' should be uploaded to the server folder/directory where the other Cumulus weather files are uploaded (files such as 'index.htm', etc.).

In order to produce a PHP file, the '<?php' must be present at the beginning of the file and the '?>' mus be present that the end of the file - otherwise the server's PHP decoder will not recognize the PHP file.
I use TextPad 5.1 for all my htm pages.
I copied the cumuluswebtags.txt to the editor.
Saved it as a .php
Uploaded but as I said it did not process.
Take away the < it does process.
Jenny, you DO NOT and CANNOT save the file and just replace the extension! The 'cumuluswebtags.txt' file has to be processed and uploaded by Cumulus and NOT just by you - this way, Cumulus replaces the tags that are in the files with the proper weather data and then uploads and rename the file to 'cumuluswebtags.php'.

I have just checked your 'cumuluswebtags.php' file using the following link:

http://wairoa.net/weather/cumuluswebtag ... ource=view

The file is incomplete - you must have done something with the original code... :(
All is working now after a lot of mucking around on another PC and coping across to weather station computer. I have no idea where I went wrong but at least its fixed.
Just checked and the 'cumuluswebtags.php' is still incomplete - it only has 27 line when it should contain 307 lines - my 'cumuluswebtags.txttmp' is at 41K.

May I recommend that you download a new copy of the 'cumuluswebtags.txt' file:

http://wiki.sandaysoft.com/files/cumuluswebtags.txt

Do not edit the file - no editing is required. Do not rename the file - no renaming is required. Place the file in the same folder/directory where the Cumulus templates files (such as 'indexT.htm') are located and proceed with the above mentioned setting of Cumulus.

Please keep me posted on the results... ;)
User avatar
JennyLeez
Posts: 316
Joined: Wed 16 Dec 2009 2:32 am
Weather Station: La Crosse WS3083
Operating System: Windows XP, Win7 & Win 10
Location: Wairoa, Hawkes Bay. New Zealand.
Contact:

Re: Cumuluswebtags.php query please

Post by JennyLeez »

Hi Ray,

Thanks heaps, you sorted me, well as much as any man can :)
I had been renaming it to xxx.php and telling cumulus to process that :?
Ok file size is now 47k with no snow on the bottom, which will always be so down here. We do not have snow like up there, in fact I have never seen snow where I am. Only the high center of New Zealand has snow fall.

Anyways please check for me and I will leave ftp switched on over night.
Again thank you for your full explanation.
I understand now.
Want any more problems? Nah only kidding.

Cheers
Jenny
Wairoa, Hawkes Bay, New Zealand Weather Station:
http://wairoa.net/weather/index.htm
Cumulus Topsites:
http://cumulussites.net/
Image
Post Reply