iSONARR > HUGINN > SLACK null (FALSE) 0 i null (FALSE) 0 i2024-02-22 null (FALSE) 0 i null (FALSE) 0 iI use a tool called Sonarr to, uhh (I've heard there are other uses for the null (FALSE) 0 itool. Your mileage may vary. Don't forget to pay for your content, if null (FALSE) 0 ipossible.), keep track of when new episodes of television shows are released, null (FALSE) 0 iregardless of what platform they're on (Netflix, Prime, iPlayer, whatever) and null (FALSE) 0 inotify me so I remember to watch it. null (FALSE) 0 i null (FALSE) 0 iFor several years, I've used IFTTT as the intermediary, receiving webhooks null (FALSE) 0 ifrom Sonarr and translating them for Slack: null (FALSE) 0 i null (FALSE) 0 IA series of webhooks sent from Sonarr to IFTTT to Slack. /2024/02/sonarr-ifttt-slack.png danq.me 70 i null (FALSE) 0 iIFTTT's move to kill its Legacy Pro plan (Like many others, I originally null (FALSE) 0 isigned up to the plan under the promise that the price would be honoured null (FALSE) 0 iforever. Turns out "forever" means "three years": who knew?) - which I was on null (FALSE) 0 i- gave me reason to re-assess this configuration. It turns that the only Pro null (FALSE) 0 ifeature I was using was an IFTTT "filter" to convert the Sonarr webhooks to a null (FALSE) 0 iSlack-friendly-format. null (FALSE) 0 i null (FALSE) 0 iGiven that I'm running an installation of Huginn on my home network anyway, I null (FALSE) 0 iresolved to re-implement this flow in Huginn and cancel my IFTTT subscription. null (FALSE) 0 i null (FALSE) 0 IA series of webhooks sent from Sonarr to Huginn to Slack. /2024/02/sonarr-huginn-slack.png danq.me 70 i null (FALSE) 0 iThis turned out to be so easy I wonder why I never did it before. null (FALSE) 0 i null (FALSE) 0 iFirst, I created a Webhook Agent and gave the URL to Sonarr. null (FALSE) 0 i null (FALSE) 0 iThen I connected that to a Slack Agent with the following configuration: null (FALSE) 0 i null (FALSE) 0 i{ null (FALSE) 0 i "webhook_url": "https://hooks.slack.com/services/...", null (FALSE) 0 i "channel": "#sonarr", null (FALSE) 0 i "username": "Sonarr", null (FALSE) 0 i "message": "**\nNew episodes:{% for episode in episodes %}\n• null (FALSE) 0 iS{{episode.seasonNumber}}E{{episode.episodeNumber}} {{episode.title}}{% endfor null (FALSE) 0 i%}", null (FALSE) 0 i "icon": ":tv:" null (FALSE) 0 i} null (FALSE) 0 i null (FALSE) 0 iI've omitted my Slack webhook URL so you don't spam me. I tried for far too null (FALSE) 0 ilong to get the pluralize filter to work so it'd say "episode" or "episodes" null (FALSE) 0 ias appropriate before realising I didn't care enough and gave up. null (FALSE) 0 i null (FALSE) 0 iThen all I needed to do was re-emit some of the previous webhooks to test it: null (FALSE) 0 i null (FALSE) 0 ISlack chat window showing notifications: (1) a new episode of Resident Alien, announced by IFTTT, (b) the same episode, announced by "Sonarr", (c) two episodes of Marvel's Spidey and His Amazing Friends, also announced by "Sonarr". /2024/02/slack-sonarr-notifications.png danq.me 70 i null (FALSE) 0 iNow I'll continue to know when there's new television to watch (It's null (FALSE) 0 iespecially useful when you're between seasons or a show is on hiatus to be null (FALSE) 0 ireminded that it's back and I should go and watch it. Hey, there's a thought: null (FALSE) 0 iI wonder if I can extract the subtitles from shows and run them through a null (FALSE) 0 isummarising LLM to give me a couple of paragraphs reminding me "what happened null (FALSE) 0 ilast series" if the show's been on a long break?)! null (FALSE) 0 i null (FALSE) 0 iI love the power and flexibility that Huginn provides to help automate your null (FALSE) 0 ilife. It does many of the things that I used to do with a handful of cron jobs null (FALSE) 0 iand shell scripts, but all in one convenient place. null (FALSE) 0 i null (FALSE) 0 iLINKS null (FALSE) 0 i null (FALSE) 0 hSonarr URL:https://sonarr.tv/ (FALSE) 0 hIFTTT URL:https://ifttt.com/ (FALSE) 0 hUnder the promise URL:https://www.techhive.com/article/1940144/ifttt-killing-pay-what-you-want-legacy-pro-plan.html (FALSE) 0 hTurns out "forever" means "three years" URL:https://imgur.com/a/ymFIF7M (FALSE) 0 hCode of my former IFTTT filter URL:https://gist.github.com/Dan-Q/0b3e02112c0378b7378acded8893fbc2 (FALSE) 0 hHuginn URL:https://github.com/huginn/huginn (FALSE) 0 .