XML data

Hi
I have finally worked out how to get some XML data displayed on my pages. I can display the max and min temps for the previous day - which I have done in Fahrenheit, but I wanted deg C. I have looked up and down the XML data file and dont seem to be able to locate a Maxtempyest for Celsius.

I am also confused by similar sounding tags which seem to have different values. Is there a definitive list of tag names and what they actually mean!

Cheers

Hi, I am currently working on that for Brian. Hopefully he likes my new design. Its rather easy to read and everythings should be in there. I should soon have it to brian and hopefully he will like what I have done and use it. Its taking ages for me to do it, because its not by anymeans a small job to get it all catagorised.

Hi
you can add more tags to the xml file (the raw file)…just as long as you keep the same system :slight_smile:
(there should be tags for max/min in the different units (i think!)

new xml, sounds good

Hi you can add more tags to the xml file (the raw file)....just as long as you keep the same system :) (there should be tags for max/min in the different units (i think!)

Hmm, but how does the data get into the XML file, I have looked at the HTM equivalent - where the data is separated by %.
I am sure that just calling a tag wont magically create that value. Oddly there is a monthly max temp in celsius.
Even odder my min temp for last month was 0 deg C yet WD is saying that the coldest day last month was 46.2F ??? Any ideas on either of these issues.

I know that if I display obviously incorrect data any number of people will be challenging me.!

you add it tot he file
wdfulldata.htm

i.e at the end
i.e
%snowtodaycm%
%seaconditions%

is the current end

so add in say, mynewtag, just add in the line
%snowtodaycm%
%seaconditions%
%mynewtag%

and then make sure the actual data is corrrect in wd (you can enter your own all time records, or reset selected all time records…see under action)

and then the file wdfullata.xml will contain that new line

Hi… back from holiday and keen to bottom this out…
I understand the format of the HTML page with the tags, what I am not sure is how my new tag (monthlyminimumCelsius for example) relates to the data in WD.

There must be something wrong with the current monthly min C tag as it always shows as 0c the Fahrenheit version is also wrong at (32).

hi
what is the tag that you are using?

Hi
I want to use which is showing as 0 deg C (the farenheit equivalent is also showing 0)… But my WD data is showing a minimum temperature of 13.6 on the 7th August…

I also want to display the max and min temps for yesterday (in deg C) there doesnt appear to be a tag for that - hence my earlier questions about adding a new one

You can browse my xml data if you wish on www.geoffwebber.co.uk/weather/wdfulldata.xml

hi
that tag uses the graph data files, and so you must have a default reading there, or wd is reading the start of the default graph data

i will make some changes and then we can see if that fixes it
(i will upload a new beta 10.15q now)

there are custom tags for yesterdays values…try using those
%maxtempyest%…Yesterday’s max temperature
%maxtempyestt%…Time of yesterday’s max temperature
%mintempyest%…Yesterday’s min temperature

they are in the units that you are using in wd though …

Hi I want to use which is showing as 0 deg C (the farenheit equivalent is also showing 0)... But my WD data is showing a minimum temperature of 13.6 on the 7th August...

I also want to display the max and min temps for yesterday (in deg C) there doesnt appear to be a tag for that - hence my earlier questions about adding a new one

You can browse my xml data if you wish on www.geoffwebber.co.uk/weather/wdfulldata.xml

Hi,
maybe it’s easier to rename the file “owntemplate.txt” to wxlocal(anynumber). Read then the wx(anynumber) file and you’ll get something like this.
33.2…Maximum temperature so far for the month
33.2.Maximum temperature so far for the month, celsius always
14.4…Minimum temperature so far for the month
14.4.Minimum temperature so far for the month, celsius always

32.8

try the latest beta version vegit

if still zero’s
then try:
action, convert wd log files to graphs, select 82004lg.txt
and then click on convert

Hi Brian - after some delay tried that with no effect.
I still have as 0 deg, when WD tells me elsewhere the minimum temp for the month was much higher.

Whats is the difference between and which has a value of 14.6 are they both supposed to show the minimum temp in deg C for the month (which is what I want)

you could use the other one…
the former is derived by looking at the data in the current data file…which must have a temperature spike in it, or similar

ok - I’ll try that… thanks for all your help on this protracted thread. As you know I am new to this, but have some ideas that eventually I will get up on the web. Thanks