Results 1 to 10 of 10

Thread: Slack?

  1. #1
    New Member
    Join Date
    Aug 2018
    Location
    Wellington, NZ
    Posts
    19

    Slack?

    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...


  2. #2
    TVWBB Wizard Steve_M's Avatar
    Join Date
    Jul 2013
    Location
    Toronto
    Posts
    1,995
    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!

  3. #3
    New Member
    Join Date
    Aug 2018
    Location
    Wellington, NZ
    Posts
    19
    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 by Jeremy_Pickett; 09-26-2018 at 02:56 PM.

  4. #4
    TVWBB Wizard Steve_M's Avatar
    Join Date
    Jul 2013
    Location
    Toronto
    Posts
    1,995
    Have a look at the Pushbullet script I have here https://github.com/shmick/hm-configs

    Should be simple to edit it to suit your slack needs.

  5. #5
    New Member
    Join Date
    Aug 2018
    Location
    Wellington, NZ
    Posts
    19
    oh man, this looks all a bit easy. Found all your grunt work here:
    https://tvwbb.com/showthread.php?573...ith-Pushbullet

    will hopefully get around to testing later tonight

    cheers!

  6. #6
    New Member
    Join Date
    Aug 2018
    Location
    Wellington, NZ
    Posts
    19
    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/
        http://xxx.duckdns.org:1234/luci/lm/
        '
    }"
    curl -X POST -H '$TYPE' -d "$PB_MSG" $PB_HOST


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

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


    6// bathe in your slack glory

  7. #7
    TVWBB Wizard Steve_M's Avatar
    Join Date
    Jul 2013
    Location
    Toronto
    Posts
    1,995
    Nice! You can also use the :emoji-name: emojis in the message to add more details to the messages!

  8. #8
    TVWBB Honor Circle Bryan Mayland's Avatar
    Join Date
    Apr 2010
    Location
    Tampa, FL
    Posts
    4,500
    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.
    I'm that HeaterMeter guy what ruins everybody's free time.

  9. #9
    TVWBB Wizard Steve_M's Avatar
    Join Date
    Jul 2013
    Location
    Toronto
    Posts
    1,995
    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.

  10. #10
    New Member
    Join Date
    Aug 2018
    Location
    Wellington, NZ
    Posts
    19
    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 :/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •