ThingHTTP + Slack Incoming Webhook | ThingSpeak Apps | Forum

Avatar

Please consider registering
Guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —






— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed sp_TopicIcon
ThingHTTP + Slack Incoming Webhook
No permission to create posts
January 10, 2017
3:04 am
Avatar
rw950431

Top
Members
Forum Posts: 271
Member Since:
January 30, 2014
sp_UserOfflineSmall Offline

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
January 10, 2017
7:32 am
Avatar
Hans
Natick, MA

Admin
Forum Posts: 400
Member Since:
January 18, 2011
sp_UserOfflineSmall Offline

Awesome example! Thanks for sharing.

January 11, 2017
12:01 am
Avatar
Vinod

MathWorks
Members
Forum Posts: 215
Member Since:
May 1, 2016
sp_UserOfflineSmall Offline

Thank you for creating and sharing the example!

January 11, 2017
11:44 pm
Avatar
rw950431

Top
Members
Forum Posts: 271
Member Since:
January 30, 2014
sp_UserOfflineSmall Offline

Should have added that I'm evaluating the android Slack app for notifications since I'm pretty disappointed with the revamped IFTTT client (which now doesn't seem to show any of the actual message you send it via the Maker channel).

 

Was a bit worried about the reports of high battery usage by the Slack app but so far (2 days) its OK.

Forum Timezone: America/New_York

Most Users Ever Online: 114

Currently Online:
30 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

rw950431: 261

Vinod: 196

piajola: 85

turgo: 70

vespapierre: 63

Adarsh_Murthy: 62

Member Stats:

Guest Posters: 1

Members: 5703

Moderators: 0

Admins: 2

Forum Stats:

Groups: 4

Forums: 17

Topics: 1313

Posts: 4565

Newest Members:

James181, kimberlypg2, JamesAdorb, waynesmith, paulettebw60, ashleytb4

Administrators: Hans: 387, lee: 457