You have no favorites... yet!
Use the Library tree on the left to select a Choreo to call from your gateway device.
Use the Library tree on the left to select a Choreo to call from your edge device via the gateway.
Library . Xively . Triggers . CreateTrigger
Creates a new trigger.
/*
TembooTask class placeholder
*/
/*
TembooTask header placeholder
*/
Since you've changed your device configuration, you'll need to tell us about this new device.
This feature is in experimental mode - pricing coming soon.
Send your code straight to a GitHub repository.
Your code will be visible by others in your repos. Keep credentials private by saving a Profile or commit code with Placeholder inputs.
The following files will be added to this repo:
You'll be able to edit and share your code from TI's CCS Cloud IDE.
The following will be sent to CCS Cloud:
/*
Your auto-generated code will appear here once you've configured your device above.
*/
/*
A header file containing your Temboo account information will appear here once you've
configured your device above.
*/
/*
Please log in to generate proxy server code for use with the JavaScript SDK.
*/
This Choreo creates a new trigger for a given FeedID and DatastreamID. The documentation for this Xively resource can be found here and here.
Here's an example list of acceptable inputs:
APIKey: {YOUR XIVELY API KEY}
DatastreamID: {YOUR DATASTREAMID}
FeedID: {YOUR FEEDID}
ThresholdValue: 15.0
TriggerType: lt
URL: http://requestb.in
The URL of the newly created trigger will be returned in the TriggerLocation output variable, as well as the TriggerID.
When the trigger is created successfully and is 'triggered', it will post a request to the link in the URL input variable.
The following is an example of the body of this trigger post:
{ "environment":{ "description":null, "feed":"http://api.xively.com/v2/feeds/1234567, "id":1234567, "location":{ "lat":null, "lon":null, "name":"104 franklin ave, new york, ny" }, "private":true, "title":"Test Product" }, "id":12345, "threshold_value":"500", "timestamp":"2013-05-20T23:04:30.493739Z", "triggering_datastream":{ "at":"2013-05-20T23:04:30.446062Z", "id":"datastreamtest", "units":{ "label":"", "symbol":"", "type":null }, "url":"http://api.xively.com/v2/feeds/1234567/datastreams/datastreamtest", "value":{ "max_value":520.0, "min_value":42.0, "value":"520" } }, "type":"gte", "url":"http://api.xively.com/v2/triggers/12345" }
https://ACCOUNT_NAME.temboolive.com/callback/google
© 2025 Temboo, Inc Privacy Terms