Quantcast
Channel: ThingSpeak IoT Community - Forum: ThingSpeak Apps
Viewing all articles
Browse latest Browse all 223

rw950431 on ThingHTTP + Slack Incoming Webhook

$
0
0

Quick guide for anyone interested in how to get thingHTTP to post to a slack channel (AFAIK the earlier how-to using Slackbot should still work but I didnt try it)

First enable incoming webhooks in your slack channel by going to "apps and integrations"-> search "incoming webhook" and click "add customisation" This allows you to set a default channel for incoming webhooks and some other things.  Eventually you will get a page containing your webhook address as well as some useful tips.

 

Next set up thingHTTP similar to below (fill it in with your details) and it should work.

 

Fancier things can be done see https://api.slack.com/incoming-webhooks

 

Name: post to slack
API Key: THINGHTTP_KEY
URL: https://hooks.slack.com/services/SLACK_KEY/ANOTHER_SLACK_KEY
HTTP Auth Username:  
HTTP Auth Password:  
Method: POST
Content Type: application/json
HTTP Version: 1.1
Host:  
Headers:
 
Body: {"username":"thingspeak", "text": "Something happened"}
Parse String:  
Created: 2017-01-10 5:45 pm

Viewing all articles
Browse latest Browse all 223

Trending Articles