# How to track temperature trend

**URL:** <https://discourse.nodered.org/t/how-to-track-temperature-trend/20546>\
**Category:** General\
**Created:** [18 January 2020 20:30 UTC](https://discourse.nodered.org/t/how-to-track-temperature-trend/20546 "2020-01-18T20:30:36Z")\
**Posts on this page:** 1\
**Showing post:** 17

<div class="post-metadata">

**Author:** ![Andrei](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/andrei/32/10446_2.png) [@Andrei](https://discourse.nodered.org/u/Andrei)\
**Post date:** [20 January 2020 01:39 UTC](https://discourse.nodered.org/t/how-to-track-temperature-trend/20546/17 "2020-01-20T01:39:12Z")

</div>

> [@mobamoba](#):
>
> I want to track the TREND regardless of actual temperature. If the trend is downward, I don't want an alarm even if it starts at 10 Celsius as long as the temp is going downward over time. If it's either staying at 4C or, worse, going up over a two hour period, then I want an alarm. Make sense?

I guess I understand. Indeed the flow from my first reply will not help you. I need to think over but it is too late already in my time zone.

Just a question. How would it possible to track a temperature trend if anyone can open the fridge door at random ? Is it a good approach to track a trend given that the temperature can be disrupted at any time, several times during the time frame ?

I wonder if this use case is similar to a previous one in this forum about tracking humidity trend. The solution was not trivial at all.

> [@Detect if somebody is taking a shower](https://discourse.nodered.org/t/detect-if-somebody-is-taking-a-shower/12125/4):
>
> This is probably most trickiest part where your expectations may or may not fit into desired limits. It is not rare that with perfect conditions, the relative humidity may stay at 100% for quite long period before it starts to drop. But anyway. Looking only the humidity value change does not do the trick. You should look at value change over the time period to make decision of falling or rising considered. And that keeps decision making slow. Also the change of humidity depends on much more t…

---

_[View the full topic](https://discourse.nodered.org/t/how-to-track-temperature-trend/20546)._
