Developer Portal
Connector Guides
API ReferenceConsole

Swift Sensors

Swift

Swift Sensors provides contact sensors to monitor the status of mechanical assets. The data conveys a range from 0 to 1 where 0 is out of contact and 1 is in contact. The interpretation of the value can vary and is up to the user to determine what they mean for the particular sensor usecase.

Use Cases

Potential use cases include:

  • Determining if a contact sensor is in contact or out of contact

Configuration

This connector requires the following credentials:

CredentialDescription
Base URLURL of the Swift API (Production is https://api.swiftsensors.net/api/client)
API KeyAPI Key provided by Swift
UsernameUsername registerd with Swift for API
PasswordPassword registered with Swift for API

Mapped Concepts

Connector ConceptMapped Type
DeviceSensor_Equipment
SensorPoint

Sample Code

Since you'll be looking for data from a specific sensor for this connector, quickest route is to filter by the thing id like so:

Request Response
Copy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{
  things(filter: {id: {eq: "THGSR1zvEqunZaNAZD4HHAbCd"}}) {
    id
    name
    exactType
    points {
      id
      name
      exactType
      series(latest: true) {
        value {
          float64Value
        }
        timestamp
      }
    }
  }
}