Welcome to the Cumulus Support forum.

Latest Cumulus MX release v3.0.0 build 3050 - 1 May 2019.
Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014

See the Wiki for downloading either version.

MX Web Tag File ???

Discussion of version 3 of Cumulus, which runs on Windows, Linux, and OS X. All Cumulus MX queries in here, please.

Moderator: mcrossley

Post Reply
User avatar
odintheterrible
Posts: 63
Joined: Wed 16 Jan 2013 8:18 am
Weather Station: Aercus WS3083 Wireless
Operating System: Windows 10 64-bit
Location: Torre-Pacheco, Murcia, Spain

MX Web Tag File ???

Post by odintheterrible » Tue 13 Aug 2019 7:30 am

Is there a Web Tag file available for MX ... and if so, where do I find it ??
If not, anyone know how to create one ???
Thanks ;)
"Qui Custodit Ipsos Custodes ? ..."

Duct Tape is like 'The Force' ... it has a 'Light Side' AND a 'Dark Side' and it binds the Universe together !

User avatar
beteljuice
Posts: 2710
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: ex XP SP3 - now W10 laptop grr
Location: Dudley, West Midlands, UK

Re: MX Web Tag File ???

Post by beteljuice » Tue 13 Aug 2019 3:10 pm

The <webtags> are pretty much identical - you just have to be careful with any date / time formats ..

https://cumuluswiki.wxforum.net/a/Webtags
Image
......................Imagine, what you will KNOW tomorrow !

User avatar
odintheterrible
Posts: 63
Joined: Wed 16 Jan 2013 8:18 am
Weather Station: Aercus WS3083 Wireless
Operating System: Windows 10 64-bit
Location: Torre-Pacheco, Murcia, Spain

Re: MX Web Tag File ???

Post by odintheterrible » Tue 13 Aug 2019 8:19 pm

Thanks for the input, and I have read the WIKI in respect of the tags. However, is there a specific file that contains the tags ... (if so, where can it be downloaded )and if not, how do you create a web tag file ??
Thanks

(I'm asking because it's a location request in the Cumulus Toolbox)
"Qui Custodit Ipsos Custodes ? ..."

Duct Tape is like 'The Force' ... it has a 'Light Side' AND a 'Dark Side' and it binds the Universe together !

ExperiMentor
Posts: 69
Joined: Tue 24 Nov 2015 11:30 pm
Weather Station: Fine Offset
Operating System: Windows 7; Linux
Location: Switzerland

Re: MX Web Tag File ???

Post by ExperiMentor » Fri 16 Aug 2019 8:49 pm

I think you might have missed the point (or else I've misinterpreted your question?)

Webtags in Cumulus are a feature by which Cumulus can 'process' any file (a template file) and convert all the Webtags within it to the actual value. Typically this is used in any *.htm or *.html files that you want to create including data from your weather station. You can create such a file with any text editor (eg Notepad on Windows or nano on a Raspberry Pi or even a fully fledged web file authoring package).

This is described near the start of the Wiki page referred above as:

Using web tags in templates for creating HTML pages
  • You can create a template file that has a structure of HTML elements with Cumulus web tags to represent the information you want included.
  • f you ask Cumulus to process that template file, it will create a HTML page from the template, and during that file creation replace the tag with the current value of the item the tag represents.
  • You also need to tell Cumulus that the resulting HTML file is to be uploaded to the internet (or copied to a local web server).
For example, the supplied template webpage file CumulusMX/web/TodayT.htm contains many Webtags, such as

Code: Select all

<title><#location> weather</title>
When Cumulus processes this template file, it changes the Webtag <#location> into the text that you have set for your location, and the processed output file including that (as well as all the other tags for date, time, temperature etc etc) is saved with a new filename, in this case Today.htm. In my case, this contains

Code: Select all

<title>Chummetweg weather</title>
See how <#location> has been changed into Chummetweg?
Apart from the standard ones, you need to tell Cumulus which files you want it to process in the web interface / Settings / Extra web files table.

They don't have to be *.htm files - they are just text files to Cumulus. So I use the same feature to convert from twitter.txt containing almost nothing except a list of webtags:

Code: Select all

<#shortdayname> <#hour><#minute>: <#forecast>. <#temp>C (app: <#apptemp>C). Wind <#wdir> <#wspeed><#windunit>. Rain <#rfall><#rainunit>. Humidity <#hum>%. <#press><#pressunit> <#presstrend>
to human readable with current data in tweet.txt

Code: Select all

Fri 2235: Settled fine. 16.3C (app: 16.8C). Wind N 0.0mph. Rain 0.0mm. Humidity 74%. 1031.2mb Rising slowly
before uploading it using TwitterBot to https://twitter.com/LiesbergDorf

Hope that helps you!

water01
Posts: 1547
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: WH1081
Operating System: Windows 7 64bit HP SP1
Location: Somewhere in the USA
Contact:

Re: MX Web Tag File ???

Post by water01 » Sat 17 Aug 2019 12:46 pm

(I'm asking because it's a location request in the Cumulus Toolbox)
If you read the instructions for Cumulus Toolbox in the wiki https://cumuluswiki.wxforum.net/a/Toolbox is tells you to use the PHP webtags file and there is a link to it in the article.

Dennisdg
Posts: 137
Joined: Tue 07 Feb 2012 9:42 am
Weather Station: Davis Vantage PRO2
Operating System: Win 7 Ultimate
Location: Camberley
Contact:

Re: MX Web Tag File ???

Post by Dennisdg » Sat 17 Aug 2019 6:01 pm

I don't think Cumulus Tool Box works with CumulusMX Web Tags - it was designed long before CumulusMX was released. I guess you want to set up various alerts. Please let me know if you succeed!
Dennis

https://www.g4glp.co.uk

Davis Vantage PRO2
Win 7 Ultimate

ExperiMentor
Posts: 69
Joined: Tue 24 Nov 2015 11:30 pm
Weather Station: Fine Offset
Operating System: Windows 7; Linux
Location: Switzerland

Re: MX Web Tag File ???

Post by ExperiMentor » Sat 17 Aug 2019 8:57 pm

water01 wrote:
Sat 17 Aug 2019 12:46 pm
If you read the instructions for Cumulus Toolbox in the wiki https://cumuluswiki.wxforum.net/a/Toolbox is tells you to use the PHP webtags file and there is a link to it in the article.
Ah so I didn't know anything about this!

The answer to the original poster is basically that it's a plain text file (create with any text editor) and you can put it anywhere. You just need to put the path and name of the source file and the destination *.php file into the relevant boxes in the Settings / Extra web files table - not forgetting to tell Cumulus that you want it to process that file, and if you want to FTP it somewhere etc when done.

Or if he means the file containing all the possible webtags, see https://cumuluswiki.wxforum.net/a/Php_webtags where it says:
"The download file on this page (download File:Cumuluswebtags.txt) contains all current webtags produced by Cumulus v 1.9.4. IMPORTANT This file is only for use with Cumulus v1.9.4, it will not work with Cumulus MX. "
The actual link location is: https://cumuluswiki.wxforum.net/a/File: ... ebtags.txt

Post Reply