Thingsup Docs
  • Documentation
  • MQTT
    • MQTT Broker
    • Add MQTT Device
    • Authorize MQTT Device
    • Test MQTT Connection
    • Tutorial - MQTT Basics
  • Connections
    • MySQL Connection
    • Redis Connection
    • InfluxDB Connection
    • AWS Connection
    • PostgreSQL Connection
    • MQTT Connection
    • InfluxDBv2 Connection
    • Firebase Connection
    • MSG91 Connection
  • Actions
    • MySQL Query Action
    • Redis Query Action
    • InfluxDB Read Query Action
    • InfluxDB Write Point Action
    • Send Email Action
    • DynamoDB PutItem Action
    • DynamoDB UpdateItem Action
    • DynamoDB GetItem Action
    • DynamoDB Query Action
    • DynamoDB Scan Action
    • DynamoDB DeleteItem Action
    • PostgreSQL Query Action
    • InfluxDBv2 Read Query Action
    • InfluxDBv2 Write Point Action
    • Firebase Cloud Firestore Action
    • Firebase RealTime Database Action
    • Firebase Messaging Action
    • AWS Lambda Invoke Action
    • AWS SQS Send Messsage Action
    • Publish MQTT Message Action
    • MQTT CommandResponse Action
    • ProcessFunction Action
    • WebHook Action
    • Push to Thingsup Track Action
    • Send MSG91 SMS Action
  • Rules
    • MQTT Rules Engine
    • HTTP API
  • Command
    • HTTP Command
    • Action Command
  • Alerts
    • Basic Alert
  • Dashboards
    • Add Dashboard
    • Dashboard Settings
  • Widgets
    • Button Widget
    • Data Text Widget
    • Toggle Switch Widget
    • Image Switch Widget
    • Dropdown Widget
    • LED Widget
    • Text Widget
    • Navigation Button Widget
    • Form Widget
    • Date Picker Widget
    • Date Time Range Widget
    • Slider Widget
    • Table Widget
    • Google Map Widget
    • Data Tile Widget
    • HTML Tile Widget
    • Line Chart Widget
    • Bar Chart Widget
    • Pie Chart Widget
    • Scatter Chart Widget
    • Radar Chart Widget
    • Radial Gauge
    • Linear Gauge
Powered by GitBook
On this page

Was this helpful?

  1. Actions

Push to Thingsup Track Action

Push data directly to Thingsup Track platform.

This provides a way to push data directly to Thingsup Track platform. User need to provide following parameters.

Function

  • Javascript code to process input data.

  • "payload" object is available in this code. This payload will be sent to Thingsup Track Servers.

//Example 1

payload.attributes["sender"] = "Thingsup";
payload.deviceId = "98889988889";

AuthKey

User need to provide Thingsup Track Auth Key.

Sample Payload

All the fields in sample payload are compulsory. Attributes can vary as per device but motion, ignition, odometer attributes are compulsory. Unavailability of compulsory fields will result in action failure.

{
   "id":0,
   "attributes":{
      "priority":0,
      "sat":7,
      "event":0,
      "ignition":false,
      "motion":true,
      "rssi":5,
      "io200":0,
      "gpsStatus":1,
      "pdop":1,
      "hdop":0.9,
      "power":0,
      "battery":3.857,
      "io68":0,
      "temp1":25,
      "operator":40490,
      "odometer":8124,
      "distance":7.32,
      "totalDistance":8318161.78
   },
   "deviceId":"TestDevice4",
   "type":null,
   "protocol":"thingsup",
   "serverTime":"2021-01-29T10:54:27.625+0000",
   "deviceTime":"2021-01-29T10:54:25.000+0000",
   "fixTime":"2021-01-29T10:54:25.000+0000",
   "outdated":false,
   "valid":true,
   "latitude":17.7066716,
   "longitude":73.7727833,
   "altitude":592,
   "speed":3.779699,
   "course":283,
   "address":null,
   "accuracy":0,
   "network":null
}

Please note the following points:

  • "payload" object is supplied from Action Trigger like Rules, Action Command etc.

  • Response object will be available as Action Response.

  • Loops are not supported for Performance.

PreviousWebHook ActionNextSend MSG91 SMS Action

Last updated 3 years ago

Was this helpful?

Add Push to Thingsup Track Action