cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

PushBullet as quick way to explore Alerts and Subscriptions

Highlighted
Level 9

PushBullet as quick way to explore Alerts and Subscriptions

Pushbullet is a lightweight notifications platform and can be a way to explore Alerts and Subscriptions

Basically create an an Alert on a property and Subscribe to that Alert

Adding Alert to Property Humidity

Adding Subscription

The PTC-PushBulletHelper is just a generic Thing with a service called PushNotification

var json = {

    "body": Message,

    "title":"Temperature fault",

    "type":"note"

};

var accessHeader = {

    "Access-Token": "o.Hnm2DeiABcmbwuc7FSDmfWjfadiLXx2M"

};

var params = {

     proxyScheme: undefined /* STRING */,

    headers: accessHeader /* JSON */,

     ignoreSSLErrors: undefined /* BOOLEAN */,

     useNTLM: undefined /* BOOLEAN */,

     workstation: undefined /* STRING */,

     useProxy: undefined /* BOOLEAN */,

     withCookies: undefined /* BOOLEAN */,

     proxyHost: undefined /* STRING */,

     url: 'https://api.pushbullet.com/v2/pushes' /* STRING */,

     content: json /* JSON */,

     timeout: undefined /* NUMBER */,

     proxyPort: undefined /* INTEGER */,

     password: undefined /* STRING */,

     domain: undefined /* STRING */,

     username: undefined /* STRING */

};

// result: JSON

var result = Resources["ContentLoaderFunctions"].PostJSON(params);

You can test the Helper PushNotification service

Next you can test the subscription

Tags (2)