search
HomeBackend DevelopmentXML/RSS TutorialDetailed analysis of meteorological XML data source application
Detailed analysis of meteorological XML data source applicationApr 22, 2017 pm 02:42 PM
xmldata sourcemeteorological

Introduction

1. About the meteorological XML data source
The meteorological XML data source (service) allows Third-party applications request an XML feed through the weather.com® site to access a subset of the available data. Weather Channel Interactive, Inc. (TWCi) provides this data free of charge for developers who want to apply weather data into a single application and wish to exchange links with weather.com. This document describes how to use meteorological data and technically details requesting and using this XML data.
Weather data contains:
- Search area by city/state and zip code
- Data introduces necessary area details (such as name and local time)
- Current weather conditions for the selected area ( Observation)
- Two days of 4*12 hour partial forecast (currently a 10 day forecast appears to be provided)
To return, your application must:
- Show only one area at a time Meteorological Data
- Supports data request standards, usage rules, and update rate summary in Chapter 8 of this wizard
- Clear decomposition of TWCi data from a single visible element of data
- Identify your The weather data comes from TWCi and contains a hyperlink to the weather.com home page as described in Chapter 9 of this guide
- Provides a hyperlink to weather.com for additional weather data
- Provided for free For your end users
- less than 25,000 traffic per month (active users)

2. Obtain an account for the Weather XML data source
In order to use this service, First you must register at weather.com and you must agree to the Final User Agreement. Register on the following page:
www.weather.com/services/oap.html
At the end of the registration process you will receive an email containing your user ID, and unique license key, and You can download the software development kit (SDK). The user ID and license key request parameters must be included in any weather data request.

3. Application Type
Weather XML data is only available if the application can send a link to weather.com. This program is available as a web-based application or as a desktop application.

3.1. Web Basic Application

The HTML page of the Web application is submitted to the Web browser and must be directly linked to weather.com to obtain weather XML data through the link source. A Web application needs to access the weather XML data source to obtain weather data and present the data to the user through an HTML page in Microsoft's IE browser or Firefox browser. For example, applications are Web services written in languages ​​such as JSP, PHP, ASP, or CGI.

3.2. Desktop Application
The desktop application runs on the user's computer and presents weather data to the user's computer window, as an icon in the menu bar, or by dragging it directly on the desktop. The desktop application comparison can be run directly, or automatically through an external browser, by linking to the weather.com home page via a weather.com logo and opening a new browser window under the weather XML data source. For example, applications can be written in C++, Java, Visual Basic, Delphi, or Objective C and run on a network-connected Windows, Macintosh, or Linux computer.

3.3. Other applications
If you have an application that is not a Web application or a desktop application, such as an application on PDAs, mobile phones, radio stations, printing , fax, broadcast television or other platforms cannot link directly to weather.com, or if your usage extends beyond these services, you will need to determine other licensing options that may be appropriate for you. Typically, if your site or program has 500,000 unique users in a month, or more than 100,000 unique users per month and he submits 25,000 requests to weather.com per month.

The above is the detailed content of Detailed analysis of meteorological XML data source application. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
如何用PHP和XML实现网站的分页和导航如何用PHP和XML实现网站的分页和导航Jul 28, 2023 pm 12:31 PM

如何用PHP和XML实现网站的分页和导航导言:在开发一个网站时,分页和导航功能是很常见的需求。本文将介绍如何使用PHP和XML来实现网站的分页和导航功能。我们会先讨论分页的实现,然后再介绍导航的实现。一、分页的实现准备工作在开始实现分页之前,需要准备一个XML文件,用来存储网站的内容。XML文件的结构如下:<articles><art

XML外部实体注入漏洞的示例分析XML外部实体注入漏洞的示例分析May 11, 2023 pm 04:55 PM

一、XML外部实体注入XML外部实体注入漏洞也就是我们常说的XXE漏洞。XML作为一种使用较为广泛的数据传输格式,很多应用程序都包含有处理xml数据的代码,默认情况下,许多过时的或配置不当的XML处理器都会对外部实体进行引用。如果攻击者可以上传XML文档或者在XML文档中添加恶意内容,通过易受攻击的代码、依赖项或集成,就能够攻击包含缺陷的XML处理器。XXE漏洞的出现和开发语言无关,只要是应用程序中对xml数据做了解析,而这些数据又受用户控制,那么应用程序都可能受到XXE攻击。本篇文章以java

国产翼龙系列无人机:谱写多领域应用新篇章,涵盖气象、应急、安防等众多领域国产翼龙系列无人机:谱写多领域应用新篇章,涵盖气象、应急、安防等众多领域Dec 01, 2023 pm 05:47 PM

据科技日报消息11月28日,在位于四川自贡的中航无人机现场,中国航空工业集团有限公司举行了一场以“大国之翼龙行天下”为主题的开放日活动,全面展示国产大型高端无人机研制及产业建设的发展成就。经过十几年的发展,中航无人机自主研制的国产“翼龙”系列无人机产品已形成谱系化。翼龙-2亮相国企开放日现场,并进行了飞行表演。翼龙-2是由航空工业研制的中高空、长航时多用途无人机系统,具备全天时、全天候、全疆域、多场景任务执行能力。该无人机系统是我国第一型国产涡桨动力大型无人机系统,具有先进的气动布局、机体结构、

php如何将xml转为json格式?3种方法分享php如何将xml转为json格式?3种方法分享Mar 22, 2023 am 10:38 AM

当我们处理数据时经常会遇到将XML格式转换为JSON格式的需求。PHP有许多内置函数可以帮助我们执行这个操作。在本文中,我们将讨论将XML格式转换为JSON格式的不同方法。

Python中xmltodict对xml的操作方式是什么Python中xmltodict对xml的操作方式是什么May 04, 2023 pm 06:04 PM

Pythonxmltodict对xml的操作xmltodict是另一个简易的库,它致力于将XML变得像JSON.下面是一个简单的示例XML文件:elementsmoreelementselementaswell这是第三方包,在处理前先用pip来安装pipinstallxmltodict可以像下面这样访问里面的元素,属性及值:importxmltodictwithopen("test.xml")asfd:#将XML文件装载到dict里面doc=xmltodict.parse(f

Python中怎么对XML文件的编码进行转换Python中怎么对XML文件的编码进行转换May 21, 2023 pm 12:22 PM

1.在Python中XML文件的编码问题1.Python使用的xml.etree.ElementTree库只支持解析和生成标准的UTF-8格式的编码2.常见GBK或GB2312等中文编码的XML文件,用以在老旧系统中保证XML对中文字符的记录能力3.XML文件开头有标识头,标识头指定了程序处理XML时应该使用的编码4.要修改编码,不仅要修改文件整体的编码,还要将标识头中encoding部分的值修改2.处理PythonXML文件的思路1.读取&解码:使用二进制模式读取XML文件,将文件变为

xml中node和element的区别是什么xml中node和element的区别是什么Apr 19, 2022 pm 06:06 PM

xml中node和element的区别是:Element是元素,是一个小范围的定义,是数据的组成部分之一,必须是包含完整信息的结点才是元素;而Node是节点,是相对于TREE数据结构而言的,一个结点不一定是一个元素,一个元素一定是一个结点。

使用nmap-converter将nmap扫描结果XML转化为XLS实战的示例分析使用nmap-converter将nmap扫描结果XML转化为XLS实战的示例分析May 17, 2023 pm 01:04 PM

使用nmap-converter将nmap扫描结果XML转化为XLS实战1、前言作为网络安全从业人员,有时候需要使用端口扫描利器nmap进行大批量端口扫描,但Nmap的输出结果为.nmap、.xml和.gnmap三种格式,还有夹杂很多不需要的信息,处理起来十分不方便,而将输出结果转换为Excel表格,方面处理后期输出。因此,有技术大牛分享了将nmap报告转换为XLS的Python脚本。2、nmap-converter1)项目地址:https://github.com/mrschyte/nmap-

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

Hot Tools

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.