Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
10 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<?xml version="1.0" encoding="UTF-8"?><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" attributeFormDefault="unqualified" elementFormDefault="qualified"><xs:element name="coindex"><xs:complexType><xs:sequence><xs:element name="reference_time" type="xs:unsignedInt" /><xs:element name="reception_time" type="xs:unsignedInt" /><xs:element name="location"><xs:complexType><xs:sequence><xs:element name="name" type="xs:string" /><xs:element name="coordinates"><xs:complexType><xs:sequence><xs:element name="lon" type="xs:decimal" /><xs:element name="lat" type="xs:decimal" /></xs:sequence></xs:complexType></xs:element><xs:element name="ID" type="xs:unsignedInt" /><xs:element name="country" type="xs:string" /></xs:sequence></xs:complexType></xs:element><xs:element name="interval" type="xs:string" /><xs:element name="co_samples"><xs:complexType><xs:sequence><xs:element maxOccurs="unbounded" name="co_sample"><xs:complexType><xs:sequence><xs:element name="value" type="xs:string" /><xs:element name="pressure" type="xs:string" /><xs:element name="precision" type="xs:string" /></xs:sequence></xs:complexType></xs:element></xs:sequence></xs:complexType></xs:element></xs:sequence></xs:complexType></xs:element></xs:schema> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<?xml version="1.0" encoding="utf-8"?><xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"><xs:element name="forecast"><xs:complexType><xs:sequence><xs:element name="interval" type="xs:string" /><xs:element name="reception_time" type="xs:unsignedInt" /><xs:element name="location"><xs:complexType><xs:sequence><xs:element name="name" type="xs:string" /><xs:element name="coordinates"><xs:complexType><xs:sequence><xs:element name="lon" type="xs:decimal" /><xs:element name="lat" type="xs:decimal" /></xs:sequence></xs:complexType></xs:element><xs:element name="ID" type="xs:unsignedInt" /><xs:element name="country" type="xs:string" /></xs:sequence></xs:complexType></xs:element><xs:element name="weathers"><xs:complexType><xs:sequence><xs:element maxOccurs="unbounded" name="weather"><xs:complexType><xs:sequence><xs:element name="status" type="xs:string" /><xs:element name="weather_code" type="xs:unsignedShort" /><xs:element name="rain" /><xs:element name="snow"> <xs:complexType> <xs:sequence minOccurs="0"> <xs:element name="all" type="xs:decimal" /> </xs:sequence> </xs:complexType></xs:element><xs:element name="pressure"> <xs:complexType> <xs:sequence> <xs:element name="press" type="xs:decimal" /> </xs:sequence> </xs:complexType></xs:element><xs:element name="sunrise_time" type="xs:unsignedByte" /><xs:element name="weather_icon_name" type="xs:string" /><xs:element name="clouds" type="xs:unsignedByte" /><xs:element name="temperature"> <xs:complexType> <xs:sequence> <xs:element name="morn" type="xs:decimal" /> <xs:element name="min" type="xs:decimal" /> <xs:element name="max" type="xs:decimal" /> <xs:element name="night" type="xs:decimal" /> <xs:element name="eve" type="xs:decimal" /> <xs:element name="day" type="xs:decimal" /> </xs:sequence> </xs:complexType></xs:element><xs:element name="detailed_status" type="xs:string" /><xs:element name="reference_time" type="xs:unsignedInt" /><xs:element name="sunset_time" type="xs:unsignedByte" /><xs:element name="humidity" type="xs:unsignedByte" /><xs:element name="wind" /></xs:sequence></xs:complexType></xs:element></xs:sequence></xs:complexType></xs:element></xs:sequence></xs:complexType></xs:element></xs:schema> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<?xml version="1.0" encoding="utf-8"?><xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"><xs:element name="location"><xs:complexType><xs:sequence><xs:element name="name" type="xs:string" /><xs:element name="coordinates"><xs:complexType><xs:sequence><xs:element name="lon" type="xs:decimal" /><xs:element name="lat" type="xs:decimal" /></xs:sequence></xs:complexType></xs:element><xs:element name="ID" type="xs:unsignedInt" /><xs:element name="country" type="xs:string" /></xs:sequence></xs:complexType></xs:element></xs:schema> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<?xml version="1.0" encoding="UTF-8"?><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" attributeFormDefault="unqualified" elementFormDefault="qualified"><xs:element name="no2index"><xs:complexType><xs:sequence><xs:element name="reference_time" type="xs:unsignedInt" /><xs:element name="reception_time" type="xs:unsignedInt" /><xs:element name="location"><xs:complexType><xs:sequence><xs:element name="name" type="xs:string" /><xs:element name="coordinates"><xs:complexType><xs:sequence><xs:element name="lon" type="xs:decimal" /><xs:element name="lat" type="xs:decimal" /></xs:sequence></xs:complexType></xs:element><xs:element name="ID" type="xs:unsignedInt" /><xs:element name="country" type="xs:string" /></xs:sequence></xs:complexType></xs:element><xs:element name="interval" type="xs:string" /><xs:element name="no2_samples"><xs:complexType><xs:sequence><xs:element maxOccurs="unbounded" name="no2_sample"><xs:complexType><xs:sequence><xs:element name="value" type="xs:string" /><xs:element name="label" type="xs:string" /><xs:element name="precision" type="xs:string" /></xs:sequence></xs:complexType></xs:element></xs:sequence></xs:complexType></xs:element></xs:sequence></xs:complexType></xs:element></xs:schema> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<?xml version="1.0" encoding="utf-8"?><xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"><xs:element name="observation"><xs:complexType><xs:sequence><xs:element name="reception_time" type="xs:unsignedInt" /><xs:element name="location"><xs:complexType><xs:sequence><xs:element name="name" type="xs:string" /><xs:element name="coordinates"><xs:complexType><xs:sequence><xs:element name="lon" type="xs:decimal" /><xs:element name="lat" type="xs:decimal" /></xs:sequence></xs:complexType></xs:element><xs:element name="ID" type="xs:unsignedInt" /><xs:element name="country" type="xs:string" /></xs:sequence></xs:complexType></xs:element><xs:element name="weather"><xs:complexType><xs:sequence><xs:element name="status" type="xs:string" /><xs:element name="weather_code" type="xs:unsignedShort" /><xs:element name="rain" /><xs:element name="snow" /><xs:element name="pressure"><xs:complexType><xs:sequence><xs:element name="press" type="xs:unsignedShort" /></xs:sequence></xs:complexType></xs:element><xs:element name="sunrise_time" type="xs:unsignedInt" /><xs:element name="weather_icon_name" type="xs:string" /><xs:element name="clouds" type="xs:unsignedByte" /><xs:element name="temperature"><xs:complexType><xs:sequence><xs:element name="temp_min" type="xs:decimal" /><xs:element name="temp" type="xs:decimal" /><xs:element name="temp_max" type="xs:decimal" /></xs:sequence></xs:complexType></xs:element><xs:element name="detailed_status" type="xs:string" /><xs:element name="reference_time" type="xs:unsignedInt" /><xs:element name="sunset_time" type="xs:unsignedInt" /><xs:element name="humidity" type="xs:unsignedByte" /><xs:element name="wind"><xs:complexType><xs:sequence><xs:element name="gust" type="xs:decimal" /><xs:element name="speed" type="xs:decimal" /><xs:element name="deg" type="xs:unsignedByte" /></xs:sequence></xs:complexType></xs:element></xs:sequence></xs:complexType></xs:element></xs:sequence></xs:complexType></xs:element></xs:schema> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<?xml version="1.0" encoding="utf-8"?><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" attributeFormDefault="unqualified" elementFormDefault="qualified"><xs:element name="station"><xs:complexType><xs:sequence><xs:element name="name" type="xs:string"/><xs:element name="station_id" type="xs:unsignedShort"/><xs:element name="station_type" type="xs:unsignedShort"/><xs:element name="status" type="xs:unsignedShort"/><xs:element name="coordinates"><xs:complexType><xs:sequence><xs:element name="lon" type="xs:decimal"/><xs:element name="lat" type="xs:decimal"/></xs:sequence></xs:complexType></xs:element><xs:element name="reciption_time" type="xs:decimal"/><xs:element name="distance" type="xs:decimal"/><xs:element name="weather"><xs:complexType><xs:sequence><xs:element name="status" type="xs:string"/><xs:element name="weather_code" type="xs:unsignedShort"/><xs:element name="rain"/><xs:element name="snow"/><xs:element name="pressure"><xs:complexType><xs:sequence><xs:element name="press" type="xs:unsignedShort"/></xs:sequence></xs:complexType></xs:element><xs:element name="sunrise_time" type="xs:unsignedInt"/><xs:element name="weather_icon_name" type="xs:string"/><xs:element name="clouds" type="xs:unsignedByte"/><xs:element name="temperature"><xs:complexType><xs:sequence><xs:element name="temp_min" type="xs:decimal"/><xs:element name="temp" type="xs:decimal"/><xs:element name="temp_max" type="xs:decimal"/></xs:sequence></xs:complexType></xs:element><xs:element name="detailed_status" type="xs:string"/><xs:element name="reference_time" type="xs:unsignedInt"/><xs:element name="sunset_time" type="xs:unsignedInt"/><xs:element name="humidity" type="xs:unsignedByte"/><xs:element name="wind"><xs:complexType><xs:sequence><xs:element name="gust" type="xs:decimal"/><xs:element name="speed" type="xs:decimal"/><xs:element name="deg" type="xs:unsignedByte"/></xs:sequence></xs:complexType></xs:element></xs:sequence></xs:complexType></xs:element><xs:element name="reception_time" type="xs:unsignedInt"/></xs:sequence></xs:complexType></xs:element></xs:schema> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<?xml version="1.0" encoding="utf-8"?><xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"><xs:element name="station_history"><xs:complexType><xs:sequence><xs:element name="station_id" type="xs:unsignedShort" /><xs:element name="interval" type="xs:string" /><xs:element name="reception_time" type="xs:unsignedInt" /><xs:element name="measurements"><xs:complexType><xs:sequence><xs:element maxOccurs="unbounded" name="measurement"><xs:complexType><xs:sequence><xs:element name="reference_time" type="xs:unsignedInt" /><xs:element name="wind" type="xs:decimal" /><xs:element name="pressure" type="xs:decimal" /><xs:element name="temperature" type="xs:decimal" /><xs:element name="humidity" type="xs:decimal" /></xs:sequence></xs:complexType></xs:element></xs:sequence></xs:complexType></xs:element></xs:sequence></xs:complexType></xs:element></xs:schema> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<?xml version="1.0" encoding="UTF-8"?><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" attributeFormDefault="unqualified" elementFormDefault="qualified"><xs:element name="uvindex"><xs:complexType><xs:sequence><xs:element name="reference_time" type="xs:unsignedInt" /><xs:element name="reception_time" type="xs:unsignedInt" /><xs:element name="location"><xs:complexType><xs:sequence><xs:element name="name" type="xs:string" /><xs:element name="coordinates"><xs:complexType><xs:sequence><xs:element name="lon" type="xs:decimal" /><xs:element name="lat" type="xs:decimal" /></xs:sequence></xs:complexType></xs:element><xs:element name="ID" type="xs:unsignedInt" /><xs:element name="country" type="xs:string" /></xs:sequence></xs:complexType></xs:element><xs:element name="value" type="xs:decimal" /></xs:sequence></xs:complexType></xs:element></xs:schema> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<?xml version="1.0" encoding="utf-8"?><xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"><xs:element name="weather"><xs:complexType><xs:sequence><xs:element name="status" type="xs:string" /><xs:element name="weather_code" type="xs:unsignedShort" /><xs:element name="rain" /><xs:element name="snow" /><xs:element name="pressure"><xs:complexType><xs:sequence><xs:element name="press" type="xs:unsignedShort" /></xs:sequence></xs:complexType></xs:element><xs:element name="sunrise_time" type="xs:unsignedInt" /><xs:element name="weather_icon_name" type="xs:string" /><xs:element name="clouds" type="xs:unsignedByte" /><xs:element name="temperature"><xs:complexType><xs:sequence><xs:element name="temp_min" type="xs:decimal" /><xs:element name="temp" type="xs:decimal" /><xs:element name="temp_max" type="xs:decimal" /></xs:sequence></xs:complexType></xs:element><xs:element name="detailed_status" type="xs:string" /><xs:element name="reference_time" type="xs:unsignedInt" /><xs:element name="sunset_time" type="xs:unsignedInt" /><xs:element name="humidity" type="xs:unsignedByte" /><xs:element name="wind"><xs:complexType><xs:sequence><xs:element name="gust" type="xs:decimal" /><xs:element name="speed" type="xs:decimal" /><xs:element name="deg" type="xs:unsignedByte" /></xs:sequence></xs:complexType></xs:element></xs:sequence></xs:complexType></xs:element></xs:schema> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
""" | ||
XMLNS configuration | ||
""" | ||
|
||
# XML Schemas URLs for PyOWM model entities | ||
ROOT_XMLNS_URL = 'http://github.com/csparpa/pyowm/tree/master/pyowm/webapi25/xsd' | ||
LOCATION_XMLNS_URL = ROOT_XMLNS_URL + '/location.xsd' | ||
WEATHER_XMLNS_URL = ROOT_XMLNS_URL + '/weather.xsd' | ||
OBSERVATION_XMLNS_URL = ROOT_XMLNS_URL + '/observation.xsd' | ||
FORECAST_XMLNS_URL = ROOT_XMLNS_URL + '/forecast.xsd' | ||
STATION_HISTORY_XMLNS_URL = ROOT_XMLNS_URL + '/station_history.xsd' | ||
LIST_STATION_XMLNS_URL = ROOT_XMLNS_URL + '/station.xsd' | ||
UVINDEX_XMLNS_URL = ROOT_XMLNS_URL + '/uvindex.xsd' | ||
COINDEX_XMLNS_URL = ROOT_XMLNS_URL + '/coindex.xsd' | ||
OZONE_XMLNS_URL = ROOT_XMLNS_URL + '/ozone.xsd' | ||
NO2INDEX_XMLNS_URL = ROOT_XMLNS_URL + '/no2index.xsd' | ||
SO2INDEX_XMLNS_URL = ROOT_XMLNS_URL + '/so2index.xsd' | ||
|
||
# XML Schema prefixes for PyOWM model entities | ||
LOCATION_XMLNS_PREFIX = 'l' | ||
WEATHER_XMLNS_PREFIX = 'w' | ||
OBSERVATION_XMLNS_PREFIX = 'o' | ||
FORECAST_XMLNS_PREFIX = 'f' | ||
STATION_HISTORY_XMLNS_PREFIX = 'sh' | ||
LIST_STATION_XMLNS_PREFIX = 's' | ||
UVINDEX_XMLNS_PREFIX = 'u' | ||
COINDEX_XMLNS_PREFIX = 'co' | ||
OZONE_XMLNS_PREFIX = 'oz' | ||
NO2INDEX_XMLNS_PREFIX = 'no2' | ||
SO2INDEX_XMLNS_PREFIX = 'so2' |