ThingHTTP + Slack Incoming Webhook | ThingSpeak Apps | Forum

Avatar

Please consider registering
Guest

Search

— Forum Scope —






— Match —





— Forum Options —





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

Register Lost password?
sp_Feed sp_TopicIcon
ThingHTTP + Slack Incoming Webhook
Avatar
rw950431

Forum Posts: 252
sp_UserOfflineSmall Offline
1
January 10, 2017 - 3:04 am
sp_Permalink sp_Print

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
Avatar
Hans
Natick, MA

Forum Posts: 390
sp_UserOfflineSmall Offline
2
January 10, 2017 - 7:32 am
sp_Permalink sp_Print

Awesome example! Thanks for sharing.

Avatar
Vinod

Forum Posts: 183
sp_UserOfflineSmall Offline
3
January 11, 2017 - 12:01 am
sp_Permalink sp_Print

Thank you for creating and sharing the example!

Avatar
rw950431

Forum Posts: 252
sp_UserOfflineSmall Offline
4
January 11, 2017 - 11:44 pm
sp_Permalink sp_Print

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: jacktheripper125, pudderz
24 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

rw950431: 252

Vinod: 164

cstapels: 96

piajola: 75

vespapierre: 63

Adarsh_Murthy: 59

Newest Members:

bbruno22

pudderz

Utkya

Poornak26

LindasHed

reddysiva

Forum Stats:

Groups: 4

Forums: 17

Topics: 1313

Posts: 4565

 

Member Stats:

Guest Posters: 1

Members: 5703

Moderators: 0

Admins: 2

Administrators: Hans, lee