четверг, 27 июля 2017 г.

The weather alerts on our meteorological data

The weather alerts are ones of the tools that we offer for agricultural monitoring of fields http://agromonitoring.com/. For your convenience we have designed an interface for our API where you can create triggers for a polygon of any shape. These triggers will work out in case of emergence of specified weather conditions (temperature, humidity, pressure, etc.) during a certain period of time.    
For example, there is a field where some plants are inclined to suffer from freezing, while other plants need measures to be taken in case of strong wind – and you can easily get this information with our tool. Just set specific trigger conditions and if they happen you will get a program warning.  
Four simple steps for working with Weather Triggers API:
1  Create an account in members area and receive a key to access API.
2  Name your field and draw a polygon with visual tools. 
 
3 Create the trigger with the necessary conditions for temperature, pressure, humidity, wind speed, wind direction and clouds.
Parameters description: 
The Start and the End fields define the time period.
These fields also contain nested structures describing the beginning and the end of a time interval which is used to check the conditions.
The beginning and the end of a time interval represent a set of instructions for dynamic timestamp estimation. Timestamp is calculated considering the current time at the moment when conditions are being checked.
Parameter
  Description
amount
  Number of milliseconds
expression
  Specifies how to process value of the amount field
 
The field Expression has three admissible values:
  • exact - the field amount will be interpreted as a timestamp indicating an exact date/time
  • аfter - the field amount will be interpreted as a number of milliseconds, which needs to be added to the current timestamp at the moment of validation to receive a chosen date/time.
  • before - the field amount will be interpreted as a number of milliseconds, which needs to be subtracted from the current timestamp at the moment of validation to receive a chosen date/time.

The field Сonditions contains an array of objects describing the parameters that are used to do the comparison.
Parameter
  Description
name
  The name of the parameter to be compared with
expression
  The expression, which will be used to compare
amount
  Numerical value to be compared with

In the field name the following values are allowed: temp, pressure, humidity, wind_speed, wind_direction, clouds. Value of the name field specifies the corresponding parameter in a response from the Weather API that will be compared with.
The field expression indicates how exactly to perform comparison. The following values are available:
$gt - more than a value specified in amount.
$lt - less than a value specified in amount.
$gte - greater than or equals to a value specified in amount.
$lte - less than or equals to a value specified in amount.
$eq - equals to a value specified in amount.
$ne - not equals to a value specified in amount.
4  Check our service and receive information about an occurrence or a forecast of the upcoming events, which you are interested in.

See further: 
API documentation for Weather Alerts http://openweathermap.org/triggers 
Weather Alerts structure -  http://openweathermap.org/triggers-struct

Комментариев нет:

Отправить комментарий