
Note: once we are done with the webhook, there is no need anymore to keep the computer you are using on or connected to the internet, since the webhook does not execute in it nor it needs it to run. That means the webhook got configured correctly. The output of that command would look like this: Using settings from the file webhook.jsonSending webhook request Successfully created webhook with ID 1234kljhl123h41234jklh Once installed, open a console and type: particle webhook create webhook.json If you don't have it installed already, please do so following the instructions here. Webhooks are configured via the particle CLI. Once the file is edited with the token, you are ready to upload this webhook to the Particle cloud.
#Please update the pushbullet app on your phone software#
Download to your computer the webhook code (find it in the software section below) in a file named webhook.json.Įdit the webhook.json file just created and replace the Access Token in the Bearer field (you have to replace 123456789012345678901234567890 with your Pushbullet Access Token). If you are not familiar with webhooks or how they work, please head over particle's docs for a more in depth description.

When you send a matching event, the hook will send a request to your web application with all the details! Webhooks listen for events from your devices.

Webhooks are a simple and flexible way for your devices to make requests to almost anything on the Internet. What is a webhook, after all? From particle's site: We need to create a piece of software called a webhook and configure it to connect to pushbullet. I can't help to notice that what we insist on calling firmware (a permanent software programmed into a read-only memory, according to Google, or the program that runs your particle) is today so easy to change that in reality is another piece of software. You can add there what is relevant to you and your project. Or even knowing the status of your garage door: Particle.publish("pushbullet", "Your garage door is " + garage_status_string, 60, PRIVATE) Of course, you can add there a variable for getting the temperature of your pool like this: Particle.publish("pushbullet", "Your pool is at " + String(pool_temperature) + " degrees", 60, PRIVATE) We need to add the following line of code in the particle's firmware: Particle.publish("pushbullet", "Your clothes are dry", 60, PRIVATE) Note: do not share this Pushbullet Access Token, since it grants access to your account! Pay a visit to the pushbullet site, sign up for an account if you don't have one already and get your Pushbullet Access Token from the settings page. upload the webhook to the particle cloud.update the particle firmware - make your project publish some information.

There are four steps that we need to accomplish: Pushbullet will, in turn, push this notification to our devices.This webhook will push a notification to Pushbullet.this published cloud event in turn will get intercepted by a webhook living in the Particle cloud.the firmware running in the Particle will publish a cloud event with this information.the Particle dev kit will read some information, something important to you and your project (example: the temperature of your house).
