proximity v1.0.2

Proximity sensor that compares stream location with a reference location, either fixed location that is defined as properties or if it comes from anohter node that has rawData location and latitude.

Input arguments are:

  • node: if provided, sensor node which provides the reference location (latitude/longitude properties in returned raw data)
  • latitudeConfigured: latitude of the reference location from which you want to set out a perimeter
  • longitudeConfigured: longitude of the reference location from which you want to set out a perimeter
  • distance: proximity perimeter radius around the reference location defined by the node or configured reference location

Raw data:

  • distance, the actual distance between the streamed location and then reference location
  • latitude, streamed latitude
  • longitude, streamed longitude
  • latitudeConfigured
  • longitudeConfigured
  • distanceConfigured, what you provided in as sensor property

Required properties:

  • node
  • distance
  • latitudeConfigured
  • longitudeConfigured

States:

  • IN
  • OUT

Raw data:

  • distance (string)
  • latitude (double)
  • longitude (double)
  • latitudeConfigured (double)
  • longitudeConfigured (double)
  • distanceConfigured (double)