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

XML Realtime PHP parsing.

Other discussion about creating web sites for Cumulus that doesn't have a specific subforum

Moderator: daj

Post Reply
TNETWeather

XML Realtime PHP parsing.

Post by TNETWeather »

First time I've had a chance to mess with this for a while.

One of the issues that I've had was that loading the dynamic XML file seems to be inconsistent.
It think I figured out the issue by placing the actualy data in the description area (the actualy data). This was causing the data itself to be parsed which resulted in unexpected results.

So I have encapsulated the data with <![CDATA[ ... ]]> containers.

I need to catch up on some of the new tags that have been added since I started this back in April but it seems to be working now.

Raw XML output...
http://cumulus.tnetweather.com/cumulus-xml.php

Descriptive Output...
http://cumulus.tnetweather.com/cumulus-xml.php?desc

Also need to clean up the descriptions of the fields... some are missing and some are not accurate.

Below are some things that use the output of the XML file...

Default looking Cumulus website:
http://cumulus.tnetweather.com/

Which is a PHP Template that uses the XML file to feed it data rather than being uploaded enmass like the default template is.

Wap page:
http://cumulus.tnetweather.com/wap2.php

WML formatted WAP page that gets its data from an XML file. Note that the Moonset stuff is acutally from the XML parser not from Cumulus as a plugin.
TNETWeather

Re: XML Realtime PHP parsing.

Post by TNETWeather »

Still filling it in, but now I have an RSS feed working off the XML data...

RSS Feed:
http://cumulus.tnetweather.com/rss.php

Rather opportunistic in that it actually just started raining, so I was able to test the No Rain Today code. Watched it switch over from No Rain Today to Rain Today: 0.01 in
Sadgit
Posts: 192
Joined: Sun 04 Jan 2009 5:56 pm
Weather Station: Vantage Vue
Operating System: Windows 7
Location: Middlesbrough, England

Re: XML Realtime PHP parsing.

Post by Sadgit »

Kevin, Now this is what I like... I am a RSS feeds freak *cough* Geek. I will for 1 be using this so thanks.
Post Reply