Home
Categories
Dictionary
Glossary
Download
Project Details
Changes Log
What Links Here
FAQ
License

Meteo Application



meteo
Function decode TAF or METAR messages
Distribution Meteo-bin-.zip
Jar files MeteoModule.jar
Modules marytts
Namespace http://dassault-aviation.com/meteo

Provided services http://dassault-aviation.com/meteo:decode
http://dassault-aviation.com/meteo:decodeDatas
http://dassault-aviation.com/meteo:decodeAll

Optional properties lang

The built-in Meteo application allows to decode TAF or METAR messages.

Properties

The Meteo Application has only one lang optional property which specifices in which language the TAF or METAR must be decoded. The supported languages are:
  • "en" for English language (the default)
  • "fr" for French language
  • "de" for German language

Services

See the following file for the detailed description of the Services.

Provided services

The Meteo application provides two request-response Services:
  • http://dassault-aviation.com/meteo:decode: This service is used to decode the whole content of a TAF or METAR
  • http://dassault-aviation.com/meteo:decodeDatas: This service is used to decode parts of a TAF or METAR
  • http://dassault-aviation.com/meteo:decodeAll: This service is used to decode parts of several TAFs or METARs
For example:
      ServiceInstance<?,?> decodeService = module.getService("http://dassault-aviation.com/meteo", "decode");
      decodeService.setDataStringValue("meteoType", "METAR");
      decodeService.setDataStringValue("level", "COMPACT");
      decodeService.setDataStringValue("encoded", <the METAR code content>);
      decodeService.invoke();      

Decode service

This service is used to decode the whole content of a TAF or METAR.

For example:
      ServiceInstance<?,?> decodeService = module.getService("http://dassault-aviation.com/meteo", "decode");
      decodeService.setDataStringValue("meteoType", "METAR");
      decodeService.setDataStringValue("level", "COMPACT");
      decodeService.setDataStringValue("encoded", <the METAR code content>);
      decodeService.invoke();      

DecodeDatas service

This service is used to decode parts of a TAF or METAR:
  • The datas request data is an array of Strings allowing to specify which parts of the TAF of METAR must be returned
  • The meteoType request data specifies if this is an encoded "TAF" or "METAR"
  • The encoded request data is the encoded TAF or METAR
  • The level request data is the level of the decoded String messages ("COMPACT", "NORMAL", or "FULL")
  • The decoded response data is a Map returning the parts of decoded TAFs or METAR
For example:
      ServiceInstance<?,?> decodeService = module.getService("http://dassault-aviation.com/meteo", "decodeDatas");
      List<String> list = new ArrayList<>
      list.add(MeteoDataTypes.WIND_SPEED);
      list.add(MeteoDataTypes.TEMPERATURE);            
      decodeService.setDataStringValue("meteoType", "METAR");
      decodeService.setDataStringValue("level", "COMPACT");
      decodeService.setDataStringValue("datas", list); 
      decodeService.setDataStringValue("encoded", <the METAR code content>);
      decodeService.invoke();      

DecodeAll service

This service is used to decode parts of several TAFs or METARs:
  • The datas request data is an array of Strings allowing to specify which parts of the TAF of METAR must be returned
  • The meteoType request data specifies if this is an encoded "TAF" or "METAR"
  • The encoded request data is the array of encoded TAFs or METARs
  • The level request data is the level of the decoded String messages ("COMPACT", "NORMAL", or "FULL")
  • The decoded response data is a org.da.protoframework.meteo.common.MeteoDatas object containing the decoded TAFs or METARs
For example:
      ServiceInstance<?,?> decodeService = module.getService("http://dassault-aviation.com/meteo", "decodeDatas");
      List<String> list = new ArrayList<>
      list.add(MeteoDataTypes.WIND_SPEED);
      list.add(MeteoDataTypes.TEMPERATURE);           
      decodeService.setDataStringValue("meteoType", "METAR");
      decodeService.setDataStringValue("level", "COMPACT");
      decodeService.setDataStringValue("datas", list); 
      decodeService.setDataStringValue("encoded", <the METAR code content>);
      decodeService.invoke();      

Data parts

The following tags are used for the datas data:
  • "windSpeed": the wind speed in Knots
  • "windDirection": the wind direction in Degrees
  • "windMessage": the message for the wind
  • "temperature": the temperature in Celsius
  • "minTemperature": the minimum temperature in Celsius
  • "maxTemperature": the maximum temperature in Celsius
  • "temperatureMessage": the message for the temperature
  • "minTemperatureMessage": the message for the minimum temperature
  • "maxTemperatureMessage": the message for the maximum temperature
  • "dewPoint": the dew point in Celsius
  • "humidity": the humidity in percentage
  • "visibility": the visibility distance
  • "visibilityMessage": the visibility message
  • "seaLevelPressure": the sea level pressure in Hpa
  • "cloudMessage": the cloud message
All these types are available in the MeteoDataTypes interface.

See also


Categories: builtin-applis

Copyright 2017-2020 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v3 licence