# IFTTT trigger for "coming out of emergency"?

**URL:** <https://forum.beeminder.com/t/ifttt-trigger-for-coming-out-of-emergency/1173>\
**Category:** Bugabee\
**Created:** [September 21, 2015, 1:45am UTC](https://forum.beeminder.com/t/ifttt-trigger-for-coming-out-of-emergency/1173 "2015-09-21T01:45:45Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![adamwolf](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.beeminder.com/adamwolf/32/484_2.png) [@adamwolf](https://forum.beeminder.com/u/adamwolf)\
**Post date:** [September 21, 2015, 1:45am UTC](https://forum.beeminder.com/t/ifttt-trigger-for-coming-out-of-emergency/1173/1 "2015-09-21T01:45:45Z")

</div>

Any chance we can get a IFTTT trigger for “no goal is in emergency anymore” and “this specific goal is not in emergency anymore”?

---

<div class="post-metadata">

**Author:** ![dreev](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.beeminder.com/dreev/32/4311_2.png) [@dreev](https://forum.beeminder.com/u/dreev)\
**Post date:** [October 14, 2015, 1:04am UTC](https://forum.beeminder.com/t/ifttt-trigger-for-coming-out-of-emergency/1173/2 "2015-10-14T01:04:54Z")

</div>

I like it. And we do have some other updates to our IFTTT channel we’re planning to submit and it might be easy to add this. To help convince us, can you describe recipes you’d create with this?

---

<div class="post-metadata">

**Author:** ![adamwolf](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.beeminder.com/adamwolf/32/484_2.png) [@adamwolf](https://forum.beeminder.com/u/adamwolf)\
**Post date:** [October 14, 2015, 1:14am UTC](https://forum.beeminder.com/t/ifttt-trigger-for-coming-out-of-emergency/1173/3 "2015-10-14T01:14:55Z")

</div>

I have another, and it’s even partially beethemed!

When I go into emergency, post to slack saying “buzz off folks!” and when I’m out of emergency, “ok, I’m back.”

(see also [http://forum.beeminder.com/t/ifttt-trigger-for-no-more-beemergencies-today/](http://forum.beeminder.com/t/ifttt-trigger-for-no-more-beemergencies-today/))

---

<div class="post-metadata">

**Author:** ![drtall](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.beeminder.com/drtall/32/1341_2.png) [@drtall](https://forum.beeminder.com/u/drtall)\
**Post date:** [October 14, 2015, 1:20am UTC](https://forum.beeminder.com/t/ifttt-trigger-for-coming-out-of-emergency/1173/4 "2015-10-14T01:20:53Z")

</div>

> [@dreev](#):
>
> To help convince us, can you describe recipes you’d create with this?

Currently I’m using a recipe for “Beemergency any goal → post to Slack channel”. It is awkward that there’s no way to send an all-clear signal for the day into that Slack channel. I could write a script that examines the state whenever any goal gets any data added (triggered via IFTTT), but that seems awfully tedious.

Also, assuming that the trigger would fire for a day where there’s 0 emergencies at the start (I hope it would), I could integrate it into Tasker so that when I plug my phone into the charger at night, I get a prompt / alarm sound if Tasker hasn’t gotten the all-clear for the day. It would be easier to have IFTTT push this info to Tasker than to make Tasker interrogate Beeminder whenever the phone gets plugged in.

---

<div class="post-metadata">

**Author:** ![drtall](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.beeminder.com/drtall/32/1341_2.png) [@drtall](https://forum.beeminder.com/u/drtall)\
**Post date:** [October 20, 2015, 7:15pm UTC](https://forum.beeminder.com/t/ifttt-trigger-for-coming-out-of-emergency/1173/5 "2015-10-20T19:15:03Z")

</div>

@dreev Not sure if this is the best place to post this but…

I am debating a new goal idea which would be very easy with a new IFTTT trigger. The goal would be Do More “Number of goals you added data to today”. The idea would be to keep me working on non-eep goals.

The `Datapoint added to any goal` trigger _almost_ does this, but I would want it to be limited to firing once per day for each goal. I don’t know how annoying it would be to make a stateful IFTTT trigger?

Alternatively, could we have an aggday that de-dupes data points with identical comments?

---

<div class="post-metadata">

**Author:** ![dreev](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.beeminder.com/dreev/32/4311_2.png) [@dreev](https://forum.beeminder.com/u/dreev)\
**Post date:** [October 20, 2015, 8:51pm UTC](https://forum.beeminder.com/t/ifttt-trigger-for-coming-out-of-emergency/1173/6 "2015-10-20T20:51:02Z")

</div>

> [@drtall](#):
>
> could we have an aggday that de-dupes data points with identical comments?

Wait, how would the actual aggday function work for that?

---

<div class="post-metadata">

**Author:** ![drtall](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.beeminder.com/drtall/32/1341_2.png) [@drtall](https://forum.beeminder.com/u/drtall)\
**Post date:** [October 20, 2015, 9:08pm UTC](https://forum.beeminder.com/t/ifttt-trigger-for-coming-out-of-emergency/1173/7 "2015-10-20T21:08:22Z")

</div>

> [@dreev](#):
>
> Wait, how would the actual aggday function work for that?

Your post [here](http://forum.beeminder.com/t/documentation-of-aggregation-methods-would-be-nice/549/3) makes it look like the aggday functions just get the numeric data points, and if that is true then it is impossible. But if they actually get the data point object from the API, then you could just drop data points with a comment that already exists with an earlier timestamp?

To be clear, though, I think the IFTTT trigger would be preferable if it is doable. 🙂

---

<div class="post-metadata">

**Author:** ![dreev](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.beeminder.com/dreev/32/4311_2.png) [@dreev](https://forum.beeminder.com/u/dreev)\
**Post date:** [October 21, 2015, 5:32pm UTC](https://forum.beeminder.com/t/ifttt-trigger-for-coming-out-of-emergency/1173/8 "2015-10-21T17:32:32Z")

</div>

Ah, yeah, that’s not how aggday works. Even if it had access to the comments (which might be worthwhile for some kinds of aggregation – like you you could do weighted averages or something or indicate priorities) it doesn’t change what the raw datapoints are, just outputs a number as the official, plotted datapoint based on the raw datapoints.

---

<div class="post-metadata">

**Author:** ![drtall](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.beeminder.com/drtall/32/1341_2.png) [@drtall](https://forum.beeminder.com/u/drtall)\
**Post date:** [October 21, 2015, 5:37pm UTC](https://forum.beeminder.com/t/ifttt-trigger-for-coming-out-of-emergency/1173/9 "2015-10-21T17:37:38Z")

</div>

> [@dreev](#):
>
> just outputs a number as the official, plotted datapoint based on the raw datapoints.

Er, right, so I guess for each aggday that exists today, you would have a “de-dupe based on comments and then aggregate”. For this particular use case I would want de-dupe and then sum.

Or if you’re not a fan of combinatorial explosion you could make “de-dupe based on comments” a pre-aggday setting.

---

<div class="post-metadata">

**Author:** ![dreev](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.beeminder.com/dreev/32/4311_2.png) [@dreev](https://forum.beeminder.com/u/dreev)\
**Post date:** [October 21, 2015, 8:46pm UTC](https://forum.beeminder.com/t/ifttt-trigger-for-coming-out-of-emergency/1173/10 "2015-10-21T20:46:05Z")

</div>

I see now. Yeah, definitely should be orthogonal to aggday. Of course it’s rare that someone would want to enforce unique comments like that so I’m loathe to even have that be a setting. To make sure I understand the proposal, there’d be an advanced setting to automagically delete datapoints with the same comment as a previous datapoint (on that day)?

---

<div class="post-metadata">

**Author:** ![drtall](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.beeminder.com/drtall/32/1341_2.png) [@drtall](https://forum.beeminder.com/u/drtall)\
**Post date:** [October 21, 2015, 8:59pm UTC](https://forum.beeminder.com/t/ifttt-trigger-for-coming-out-of-emergency/1173/11 "2015-10-21T20:59:16Z")

</div>

> [@dreev](#):
>
> To make sure I understand the proposal, there’d be an advanced setting to automagically delete datapoints with the same comment as a previous datapoint (on that day)?

Yes, I suppose something like that. But please note this is only if I can’t get the IFTTT trigger mentioned in [IFTTT trigger for "coming out of emergency"? - #5 by drtall](http://forum.beeminder.com/t/ifttt-trigger-for-coming-out-of-emergency/1173/5) . I’d rather have the IFTTT trigger! 🙂
