This article applies to all TeamViewer IoT users who monitor their IoT network.

Via the TeamViewer IoT Cloud Rules page, you can set up Rules to send notifications to your webhooks for alerting or further processing.  A webhook is thrown (an HTTP/HTTPS POST request is made to the specified Webhook URL) when a new endpoint is registered and needs confirmation, or when a Rule's condition, is met or recovered.  

The examples below show Webhook payload samples for your reference

Webhook Endpoint Confirmation

{ "Type": "ChannelConfirmation", 
  "Message": "You have received this request because your webhook URL has been added to the TeamViewer IoT notification channel list. To confirm this channel visit the ConfirmationURL included in this message" , 
  "ConfirmationURL": "https://mywebhook.com/confirmation/eyJ0aW1lU3RhbXAiOjE1Mjk0NzU1OTQwNzYsImNoYW5uZWxOYW1lIjoidGVzdCIsImNoYW5uZWxUeXBlIjoxLCJ1c2VySWQiOiI1YjI3YjI5ZGY2N2VjM2Y1MTAxMDUxNjkiLCJjaGFubmVsSWQiOiI1YjI5ZjIwYTMzNmJjNzUzZjA5M2Q1YWMiLCJ0YXJnZXQiOiJodHRwczovL3dlYmhvb2suc2l0ZS8zMjBmZTQ1Mi1kNzZmLTQ0YTUtYWFiZC04MDAzYTIyZTRlZWEifQ=="
}

{
    "Type": "ChannelConfirmationResponse",
    "Message": "Webhook channel has been successfully confirmed",
    "Timestamp": 1529475719718
}


{
    "Type": "ChannelConfirmationResponse",
    "Message": "Webhook channel  has already been confimred.",
    "Timestamp": 1529475731790
}

Rule Met

{
  "StartTime": 1501068864000,
  "ruleName": "Default alarm policy",
  "condition": "raspberrypi.dht22.temperature < 3",
  "consecutiveChecks": 4,
  "values": {
    "raspberrypi.dht22.temperature": 2
  }
}

Rule Recovered

{
  "endTime": 1501068864000,
  "duration": "2 hour(s) 45 minute(s)",
  "ruleName": "Default alarm policy",
  "condition": "raspberrypi.dht22.temperature < 2",
  "consecutiveChecks": 4,
  "values": {
    "raspberrypi.dht22.temperature": 5
  }
}
Version history
Revision #:
5 of 5
Last update:
‎27 06 2018, 8:51 PM
Updated by:
 
Labels (4)