Slack?


 

Jeremy_Pickett

New member
Hey there!

I use Slack a lot for work and hobbies and was wondering if there might be any plans of adding that usage to heatermeter?

Ps. Heatermeter rocks! Currently reverse searing some steaks...

k3CqYCe.png
 
If you want to post your cook stats or alerts to a slack channel you can use curl to post the data.

I already spend too much time in slack. I don’t need my HeaterMeter interfacing with it!
 
Ohhh interesting - I will start researching down that route. If i find the goods I will post a 'how-to' here for others also. Thanks Steve_M !
 
Last edited:
okey doke, got something working:

1// create a new slack channel, I called mine '#bbqlogs' (or if you have one fit for purpose already, then carry on)

2// create a slack app with a webhook. I followed this tutorial loosely:
https://api.slack.com/tutorials/slack-apps-hello-world

3// within heatermeter, go to Configuration > Alarm Scripts > All Alarm Script
Then copy/paste something like this (changing what needs to be changed of course)

Code:
# !/bin/sh bash
TYPE="Content-Type: application/json"
PB_HOST="https://hooks.slack.com/services/WEBHOOK_GOES_HERE"
PB_MSG="{ \
    'text': '
    ! heatermeter alarm !
    $pn alarm ($al_type) $al_prep threshold $al_thresh.  Current temperature of ringing alarm: $pcurr
    --
    $pn0: $pcurr0 (setpoint at $sp)
    $pn1: $pcurr1
    $pn2: $pcurr2
    $pn3: $pcurr3
    --
    http://$ip/luci/lm/
    [url]http://xxx.duckdns.org:1234/luci/lm/[/url]
    '
}"
curl -X POST -H '$TYPE' -d "$PB_MSG" $PB_HOST
egDIu7i.png


4// tick in 'execute on alarm' and hit 'Submit'

5// test by going into Configuration > Alarms, and hitting one of the little bell icons:
ZzJkYTo.gif


6// bathe in your slack glory
IAtu186.png
 
Nice! You can also use the :emoji-name: emojis in the message to add more details to the messages!
 
6// bathe in your slack glory
Love it! I've never actually used Slack, having only heard of it in passing. I guess this means I should look into it if it can be used for HeaterMeter stuff.
 
To me, slack is the “new, cool IRC” or at least that’s what it feels like it’s bekng sold as. At my work we’ve been using it for several years now. Still not convinced it’s the killer app that’s gonna replace email. We do run a lot of bots and other integrations with it though, allowing people to do things via simple /commands that they would normally have to call someone to do or login to a server or webpage.
 
I agree, it's not a silver bullet and I imagine it could be a little overkill if you're a user setting it up for the only purpose of heatermeter notifications.

We use it a lot so it makes sense here. (Friends and I use it for setting up social events. I also use it for octoprint and home automation (hassio) notifications on private #channels.)

At work we use similar software called 'mattermost'.

I imagine if you support one, then you might open the floodgates to support many :/
 

 

Back
Top