# Integral and Derivative of Insights

**URL:** <https://community.homey.app/t/integral-and-derivative-of-insights/109985>\
**Category:** Questions & Help\
**Tags:** homey-pro\
**Created:** [May 16, 2024, 5:09pm UTC](https://community.homey.app/t/integral-and-derivative-of-insights/109985 "2024-05-16T17:09:25Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![gautel](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gautel/32/80910_2.png) [@gautel](https://community.homey.app/u/gautel)\
**Post date:** [May 16, 2024, 5:09pm UTC](https://community.homey.app/t/integral-and-derivative-of-insights/109985/1 "2024-05-16T17:09:25Z")

</div>

Hello! I am trying to calculate the amount of rain fallen in last X amount of hours. I have a sensor that records the mm of rain and stores it in insights. Do you know any way of calculating the integral of such variable over the interested period of time?

Also, the derivative function (rate of change over time) would be very interesting to compute for many use cases

Reference 1: [Integration - Riemann sum integral - Home Assistant](https://www.home-assistant.io/integrations/integration/)  
Reference 2: [Derivative - Home Assistant](https://www.home-assistant.io/integrations/derivative/)

Thanks!

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [May 16, 2024, 5:13pm UTC](https://community.homey.app/t/integral-and-derivative-of-insights/109985/2 "2024-05-16T17:13:08Z")

</div>

Have you searched the app store for apps that might provide these tools?

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [May 17, 2024, 1:24am UTC](https://community.homey.app/t/integral-and-derivative-of-insights/109985/3 "2024-05-17T01:24:59Z")

</div>

(Psst, the Insight Trends app might be a start)

---

<div class="post-metadata">

**Author:** ![gautel](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gautel/32/80910_2.png) [@gautel](https://community.homey.app/u/gautel)\
**Post date:** [May 17, 2024, 6:36am UTC](https://community.homey.app/t/integral-and-derivative-of-insights/109985/4 "2024-05-17T06:36:44Z")

</div>

Yes, no luck at the moment

---

<div class="post-metadata">

**Author:** ![gautel](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gautel/32/80910_2.png) [@gautel](https://community.homey.app/u/gautel)\
**Post date:** [May 17, 2024, 6:37am UTC](https://community.homey.app/t/integral-and-derivative-of-insights/109985/5 "2024-05-17T06:37:40Z")

</div>

Insight trends allows you to compute the average value, you can’t get the rate of change nor the integral of the function

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [May 17, 2024, 6:41am UTC](https://community.homey.app/t/integral-and-derivative-of-insights/109985/6 "2024-05-17T06:41:17Z")

</div>

> [@gautel](#):
>
> Insight trends allows you to compute the average value

And more (as suggested by the word “trend” in the name).

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [May 17, 2024, 12:41pm UTC](https://community.homey.app/t/integral-and-derivative-of-insights/109985/7 "2024-05-17T12:41:00Z")

</div>

Well, not all apps are ‘static’, it’s possible an app developer could add features. You’re free to make a feature request.
