IMPORTANT! The server may go down soon - possibly permanently. Please read the latest post in Announcements and News

Please read the posts in the Announcements section about the current status of Cumulus development now that I have retired

Please read this post before posting

Latest Cumulus release v1.9.4 (build 1099) - Nov 28 2014
Latest Cumulus MX release - v3.0.0 build 3043 Jan 20 2017. See this post for download

Does Cumulus currently produce an XML file?

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

Moderators: daj, TNETWeather

User avatar
daj
Posts: 2041
Joined: Tue Jul 29, 2008 8:00 pm
Weather Station: WH1081
Operating System: Pi & MX
Location: SW Scotland
Contact:

Does Cumulus currently produce an XML file?

Postby daj » Tue Sep 01, 2009 10:23 pm

Steve (or anyone with knowledge of this!)....

Does Cumulus output an XML file? I've searched the help and checked my data folder and all the config screen to no avail, however on a website (TNET) I found this line...

....uses the Cumulus XML export datafile system to obtain its data rather than being totally parsed by Cumulus and uploaded each time.


:?:
David
kippfordweather.uk
Cumulus MX & Raspberry Pi

User avatar
steve
Cumulus Author
Posts: 26681
Joined: Mon Jun 02, 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Does Cumulus currently produce an XML file?

Postby steve » Wed Sep 02, 2009 6:56 am

It doesn't, but one can easily be generated using web tags, and I think that's what Kevin's XML stuff must do.
Steve
-----
Hosting available for Cumulus web sites. See http://sandaysoft.com/forum/viewtopic.php?f=2&t=11876

Please read the posts in the Announcements section about the current status of Cumulus development since I have retired from my day job

User avatar
daj
Posts: 2041
Joined: Tue Jul 29, 2008 8:00 pm
Weather Station: WH1081
Operating System: Pi & MX
Location: SW Scotland
Contact:

Re: Does Cumulus currently produce an XML file?

Postby daj » Wed Sep 02, 2009 8:34 am

Thanks -- I will create one. I just did not want to do it if one was hiding somewhere!
David
kippfordweather.uk
Cumulus MX & Raspberry Pi

User avatar
MarkB
Posts: 68
Joined: Tue Jan 13, 2009 4:03 pm
Weather Station: Elecsa 6975 (Fine Offset)
Contact:

Re: Does Cumulus currently produce an XML file?

Postby MarkB » Wed Sep 02, 2009 5:49 pm

Image

User avatar
daj
Posts: 2041
Joined: Tue Jul 29, 2008 8:00 pm
Weather Station: WH1081
Operating System: Pi & MX
Location: SW Scotland
Contact:

Re: Does Cumulus currently produce an XML file?

Postby daj » Wed Sep 02, 2009 6:01 pm

Thanks Mark

I'm looking for one containing all the webtags.

PS -- What about doing a write up in the Wiki on your realtime XML? :)
David
kippfordweather.uk
Cumulus MX & Raspberry Pi

User avatar
MarkB
Posts: 68
Joined: Tue Jan 13, 2009 4:03 pm
Weather Station: Elecsa 6975 (Fine Offset)
Contact:

Re: Does Cumulus currently produce an XML file?

Postby MarkB » Wed Sep 02, 2009 6:12 pm

It did contain all of the webtags up until about June this year!

I've been away for a little while and now need to play a bit of catch-up with Steve - the wiki did not even exist the last time I was here. I'll maybe add the missing ones over the next few days and update the wiki.

It's dead easy to add the missing ones (assuming you know what they are!) by following the structure in the XML template file if you wanted to do it yourself...
Image

User avatar
daj
Posts: 2041
Joined: Tue Jul 29, 2008 8:00 pm
Weather Station: WH1081
Operating System: Pi & MX
Location: SW Scotland
Contact:

Re: Does Cumulus currently produce an XML file?

Postby daj » Wed Sep 02, 2009 6:17 pm

MarkB wrote:It did contain all of the webtags up until about June this year!


Oh dear!

It's dead easy to add the missing ones (assuming you know what they are!) by following the structure in the XML template file if you wanted to do it yourself...


They are all listed here http://wiki.sandaysoft.com/index.php?title=Webtags

I was thinking of doing a PHP variable list and an XML equivalent. Once I have eaten I will give it a bash
David
kippfordweather.uk
Cumulus MX & Raspberry Pi

User avatar
MarkB
Posts: 68
Joined: Tue Jan 13, 2009 4:03 pm
Weather Station: Elecsa 6975 (Fine Offset)
Contact:

Re: Does Cumulus currently produce an XML file?

Postby MarkB » Thu Sep 03, 2009 11:10 pm

http://sandaysoft.com/forum/viewtopic.php?f=14&t=832 is now updated with a new version of the XML template which contains all of the webtags listed in the same order as the Cumulus Wiki Webtags entry.
Image

User avatar
daj
Posts: 2041
Joined: Tue Jul 29, 2008 8:00 pm
Weather Station: WH1081
Operating System: Pi & MX
Location: SW Scotland
Contact:

Re: Does Cumulus currently produce an XML file?

Postby daj » Fri Sep 04, 2009 8:34 am

Great

I will try and pull together a little Wiki article tonight and you can perhaps review it

Thanks
David
kippfordweather.uk
Cumulus MX & Raspberry Pi

User avatar
daj
Posts: 2041
Joined: Tue Jul 29, 2008 8:00 pm
Weather Station: WH1081
Operating System: Pi & MX
Location: SW Scotland
Contact:

Re: Does Cumulus currently produce an XML file?

Postby daj » Sat Sep 05, 2009 5:09 pm

David
kippfordweather.uk
Cumulus MX & Raspberry Pi

User avatar
TNETWeather
Posts: 663
Joined: Wed Sep 17, 2008 1:34 pm
Weather Station: Davis VP2 Plus w/24 FARS
Operating System: WinX Pro SP3 Dedicated wstn
Location: Mesa, AZ USA
Contact:

Re: Does Cumulus currently produce an XML file?

Postby TNETWeather » Mon Sep 07, 2009 4:27 am

The process that I am/was using was to create a tag file that was output to the unix side kin of how markb is doing it, though it is more like php code.

I have a php script that would pick that up in real time and generate on the fly an XML file. It also provided documentation at the same time if you called the php script with options.

The XML side worked okay, but I was having strange results which I think are more due to the configuration that I have rather than the script itself.

Unfortunately, this has been a crushingly busy year... since before January, I've been absolutely swamped. About the only thing I've kept up on is request for the Cumulus User map which is easy since I can do that with my cell phone if needed. Economy may be bad, but it has not effected my business, never been so busy.

I will say that Cumulus has been rock solid since I have basically not touched the workstation for long stretches of time without any real issues. The only problem is tha I've had to cull the realtime.log files from time to time which I do on the 5th of each month.

I am upgrading my server here shortly and might have some breathing room soon to do some more playing...

Current php output:

http://cumulus.tnetweather.com/cumulus-xml.php

Used with an option ?desc it was a self-documented output

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

The tag file it reads is like this on the Cumulus side...

Code: Select all

$FIELDS = array (
    'formatver'         => array ( '1.2',
                        'NOT A TAG. This is the version of this configuration file.' ),
    'version'           => array ( '<#version>',
                        'The version of Cumulus in use' ) ,
    'build'             => array ( '<#build>', 'The build of Cumulus in use' ),
    'generated'         => array ( '<#shortdayname>, <#day> <#shortmonthname> <#year> <#hour>:<#minute> -0700', 'Generated Date' ) ,
    'date'              => array ( '<#date>', 'The current date.' ) ,
    'time'              => array ( '<#time>', 'The current date and time' ),
    'hour'              => array ( '<#hour>',    'The current hour as a 2-digit number.' ),
    'minute'            => array ( '<#minute>', 'The current minute as a 2-digit number.' ),
    'day'               => array ( '<#day>', 'The current day as a 2-digit number.' ),
    'dayname'           => array ( '<#dayname>', 'The current day as a word.' ),
    'shortdayname'      => array ( '<#shortdayname>', 'The current day as a shortened word' ),
    'shortmonthname'    => array ( '<#shortmonthname>',  'The current month as a shortened word.' ),
    'month'             => array ( '<#month>',   'The current month as a 2-digit number' ),
    'monthname'         => array ( '<#monthname>',       'The current month as a word.' ),
    'year'              => array ( '<#year>',    'The current year as a 4-digit number.' ),
    'shortyear'         => array ( '<#shortyear>', 'The current year as a 2-digit number.' ),
   
    'stationtype'       => array ( '<#stationtype>', 'The type of station in use' ),
    'recordsbegandate'  => array ( '<#recordsbegandate>', 'The date that the all time records began' ),
    'graphperiod'       => array ( '<#graphperiod>',     'The number of hours displayed by the graphs' ),
    'rollovertime'      => array ( '<#rollovertime>',        'Data Roll overtime as in Midnight or 9am' ),
    'update'            => array ( '<#update>',      'WThe date and time of the last web site update' ),
    'location'          => array ( '<#location>', 'The station location' ),


Which the cumulus-xml.php script parsed to do what it does...

When used in a script, you ended up with an array which had a unique id_name to reference them by which is how some of my scripts are working.
Kevin
Image
All you need is Time, Aptitude and Desire ... and you can build just about anything...

User avatar
steve
Cumulus Author
Posts: 26681
Joined: Mon Jun 02, 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Does Cumulus currently produce an XML file?

Postby steve » Mon Sep 07, 2009 7:52 am

TNETWeather wrote:Unfortunately, this has been a crushingly busy year... since before January, I've been absolutely swamped.


Hi Kevin, and welcome back :)

About the only thing I've kept up on is request for the Cumulus User map which is easy since I can do that with my cell phone if needed.


It hasn't gone un-noticed, many thanks for that.

Economy may be bad, but it has not effected my business, never been so busy.


I'm pleased it's something good that's kept you away!

Steve


Return to “Web site - General”

Who is online

Users browsing this forum: No registered users and 4 guests