DAVIS Weather Talker Specifications Page 102

  • Download
  • Add to my manuals
  • Print
  • Page
    / 191
  • Table of contents
  • TROUBLESHOOTING
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 101
Using XML to show weather data on any web page
102
Using XML to show weather data on
any web page
Still needs some work!
By using an XML data file you can create a static Weather Display web page that doesn't
need to be uploaded frequently and also update multiple web pages just by uploading a
single file. This is a good way to reduce upload traffic or to display data from multiple
stations.
Step by step example:
1. Tick the option in the Custom Web Page setup, under Setup, FTP/Internet setup.
2. If a template file hasn't already been created, Weather Display will create a new
template file called wdfulldata.htm, at the custom web page update times, or you can set
times to update and upload the wxlocal.html file (even if you dont have it in use) in the
customise internet and file creation setup you can alter that afterwards then from that
wdfulldata.xml is created and uploaded then to use the data in the xml page (and any
number of pages can use this one page, or you can even use pages from other web sites )
to add (example) to your custom web pages (and you can even add to the default wd
datahtm0.txt etc if you tick that option)
Add the following code somewhere near the start of your HTML code, i.e. after the BODY
command. Each ID must be different and formatted as 'dsoCitySt', according to the city and
state you are grabbing data from, e.g. dsoOmahaNE
1. Now create a table. Tables are needed for this to work. The table tag should look like
this: ??? You can add anything into this table tag, but DATASRC="#dsoCityST" must be
included in it.
2. Grab the data! Where you want the temperature to be, you simply add and that's it! This
will go where you would normally add your WD tags. Of course, you will still need to add
units text, e.g. 'mph' and " text after that as you normally would using a WD template.
3. Tables cannot share data. Each City/State must have its own table to work. There is no
closing tag for the XML. Your normal will work for this.
Example:
°C (°F) kts at time/date:/
Note: To use data from other web sites you will need to adjust your browser settings.
1. In IE, go to Tools > Internet Options > Security Tab.
2. Select Internet
3. Select Custom Level.
4. Select Access Data Sources Across Domains from Miscellaneous
Source: http:/ / wiki. weather- watch. com/ index. php? title=Using_ XML_ to_ show_
weather_ data_ on_ any_ web_ page&oldid=1795
Principal Authors: ANONIPEDITS:0
Page view 101
1 2 ... 97 98 99 100 101 102 103 104 105 106 107 ... 190 191

Comments to this Manuals

No comments