# \[APP\]\[Pro\] Insights Graphs

**URL:** <https://community.homey.app/t/app-pro-insights-graphs/86856>\
**Category:** Apps\
**Tags:** app, flow, insights, homey-pro, advancedflow\
**Created:** [August 12, 2023, 10:32am UTC](https://community.homey.app/t/app-pro-insights-graphs/86856 "2023-08-12T10:32:40Z")\
**Posts on this page:** 20\
**Page:** 7

<div class="post-metadata">

**Author:** ![JMH](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jmh/32/29230_2.png) [@JMH](https://community.homey.app/u/JMH)\
**Post date:** [November 23, 2023, 1:05pm UTC](https://community.homey.app/t/app-pro-insights-graphs/86856/124 "2023-11-23T13:05:35Z")

</div>

Is there a way to get a graph only over an amount of minutes/seconds I figured out with the app Flow Utilities?

I sent myself some graphs after someone took a shower (water, gas and power use, in future I want humidity also). With Flow Utilities I get the amount of time in seconds someone showered. Before and after I would like a couple of minutes, but nog 50 minutes, it makes the graph quite small.

So a time of the last X seconds (from a calculated variable) would be great, if possible 😉

---

<div class="post-metadata">

**Author:** ![JMH](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jmh/32/29230_2.png) [@JMH](https://community.homey.app/u/JMH)\
**Post date:** [November 27, 2023, 10:43am UTC](https://community.homey.app/t/app-pro-insights-graphs/86856/125 "2023-11-27T10:43:40Z")

</div>

@Menno_van_Hout I get an error when I want to make a graph for the last 6 hours (error code 400). 1 hour works, but is to short in this case, 24 hours works also, but is way to long (power usage of dishwasher) to see something usefull…

And as I mentioned in my previous message: Would like the option to set my own time/duration for the graphs. For some graphs half an hour is more then enough, but in this case I would like about 3 hours.  
Are the durations of the graphs set by Athom? Or is it possible for you te edit it?

---

<div class="post-metadata">

**Author:** ![Menno\_van\_Hout](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/menno_van_hout/32/77843_2.png) [@Menno\_van\_Hout](https://community.homey.app/u/Menno_van_Hout)\
**Post date:** [November 29, 2023, 1:18pm UTC](https://community.homey.app/t/app-pro-insights-graphs/86856/126 "2023-11-29T13:18:39Z")

</div>

the durations are set by athom. As it uses the normal insights api.  
for the 400 i am not sure i have to reproduce this myself in-order to fix this.

---

<div class="post-metadata">

**Author:** ![Timmm](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/timmm/32/110251_2.png) [@Timmm](https://community.homey.app/u/Timmm)\
**Post date:** [December 5, 2023, 10:04am UTC](https://community.homey.app/t/app-pro-insights-graphs/86856/127 "2023-12-05T10:04:49Z")

</div>

Lovely app! Thank you so much.  
I got the watermeter graph working from Homewizard. Cant get the energymeter to work.  
Im mismatching the tags i think… any idea?

Edited:  
I indeed see that some durations do not work. 1H works, and then 24H, but not 6H in between.

---

<div class="post-metadata">

**Author:** ![HvN](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/hvn/32/56789_2.png) [@HvN](https://community.homey.app/u/HvN)\
**Post date:** [December 30, 2023, 2:57pm UTC](https://community.homey.app/t/app-pro-insights-graphs/86856/128 "2023-12-30T14:57:45Z")

</div>

@JMH, @Menno_van_Hout, @Timmm

I have the same issue, 6H doesn’t work.

I already asked Athom in the past to improve the Insights Graphs. It is very limited with the time selection and also the number of data points they keep (after one hour they already keep fewer data points available which makes the data not always useful). It seems they are still busy with other things, less urgency for this. 😔

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/f/efeae25f97c266c6a9ccae58c8bd4186c854c1bf.png)

---

<div class="post-metadata">

**Author:** ![Michael\_E](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/michael_e/32/49062_2.png) [@Michael\_E](https://community.homey.app/u/Michael_E)\
**Post date:** [January 3, 2024, 11:55am UTC](https://community.homey.app/t/app-pro-insights-graphs/86856/129 "2024-01-03T11:55:36Z")

</div>

Experimenting a bit with the app I was wondering how to delete images once created in the /userdata/ location. Are they ephemeral and available just during a flow execution or will they remain in the persistent storage of Homey forever? If so, how to delete/wipe those in case graphs are created with unique filenames repeatedly, i.e. not overwritten?

---

<div class="post-metadata">

**Author:** ![Menno\_van\_Hout](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/menno_van_hout/32/77843_2.png) [@Menno\_van\_Hout](https://community.homey.app/u/Menno_van_Hout)\
**Post date:** [January 3, 2024, 12:16pm UTC](https://community.homey.app/t/app-pro-insights-graphs/86856/130 "2024-01-03T12:16:42Z")

</div>

This count for all homey apps out there:

User data gets cleared on app reboot and on homey reboot.

Insight graphs overwrites images so based on the filename you choose.

---

<div class="post-metadata">

**Author:** ![Michael\_E](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/michael_e/32/49062_2.png) [@Michael\_E](https://community.homey.app/u/Michael_E)\
**Post date:** [January 3, 2024, 12:25pm UTC](https://community.homey.app/t/app-pro-insights-graphs/86856/131 "2024-01-03T12:25:31Z")

</div>

BTW: There’s a glitch in [homey-insights-graphs/app.ts at main · mennovanhout/homey-insights-graphs · GitHub](https://github.com/mennovanhout/homey-insights-graphs/blob/main/app.ts#L37) as there’s a “!” missing. You’d append .png if the filename ends with .png, not only if missing.

Was wondering why i couldn’t find a “graph.png” via (replace your Homey ip as in [Persistent Storage - Homey Apps SDK](https://apps.developer.homey.app/the-basics/app/persistent-storage#app-userdata)) [http://192.168.178.72/app/nl.mennovanhout.insights-graphs/userdata/graph.png](http://192.168.178.72/app/nl.mennovanhout.insights-graphs/userdata/graph.png) as it was stored as [http://192.168.178.72/app/nl.mennovanhout.insights-graphs/userdata/graph.png.png](http://192.168.178.72/app/nl.mennovanhout.insights-graphs/userdata/graph.png.png) 😉

HTH Michael

---

<div class="post-metadata">

**Author:** ![Michael\_E](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/michael_e/32/49062_2.png) [@Michael\_E](https://community.homey.app/u/Michael_E)\
**Post date:** [January 3, 2024, 12:46pm UTC](https://community.homey.app/t/app-pro-insights-graphs/86856/132 "2024-01-03T12:46:12Z")

</div>

Hi,  
I tried an app restart and even Homey restart… The images remain accessible when using [Persistent Storage - Homey Apps SDK](https://apps.developer.homey.app/the-basics/app/persistent-storage#app-userdata) links.  
Only after uninstalling/re-installing the app the image was gone and [http://192.168.178.72/app/nl.mennovanhout.insights-graphs/userdata/graph.png.png](http://192.168.178.72/app/nl.mennovanhout.insights-graphs/userdata/graph.png.png) returns “Cannot GET /app/nl.mennovanhout.insights-graphs/userdata/graph.png.png”

Are you sure that reboots should do the the trick? At least for me that’s reproducable having it done twice (with Shift-Reload, of course).  
Uninstall however yields: [http://192.168.178.72/app/nl.mennovanhout.insights-graphs/userdata/graph.png.png](http://192.168.178.72/app/nl.mennovanhout.insights-graphs/userdata/graph.png.png) “Not Found: App with ID nl.mennovanhout.insights-graphs”, followed by reinstall intermediate “App Not Ready”, followed by “Cannot GET /app/nl.mennovanhout.insights-graphs/userdata/graph.png.png” and finally after re-running the flow to create graph.png (or graph.png.png) finally shows the png in the browser.

Not really a big deal when overwriting images, but at least good to know if the filenames are created uniquely.

Regards,  
Michael

---

<div class="post-metadata">

**Author:** ![Menno\_van\_Hout](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/menno_van_hout/32/77843_2.png) [@Menno\_van\_Hout](https://community.homey.app/u/Menno_van_Hout)\
**Post date:** [January 3, 2024, 1:14pm UTC](https://community.homey.app/t/app-pro-insights-graphs/86856/133 "2024-01-03T13:14:55Z")

</div>

Hey Michael,

According to homey self userdata gets removed on all app reboots and homey reboots.

You can actually confirm this by using the homey developer tools. So I’m about 100% sure.

I think your browser is just using cache. Or something

---

<div class="post-metadata">

**Author:** ![Michael\_E](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/michael_e/32/49062_2.png) [@Michael\_E](https://community.homey.app/u/Michael_E)\
**Post date:** [January 3, 2024, 2:14pm UTC](https://community.homey.app/t/app-pro-insights-graphs/86856/134 "2024-01-03T14:14:54Z")

</div>

Hi,

Same for curl even with no-caching options like curl -H ‘Cache-Control: no-cache, no-store’ [http://192.168.178.72/app/nl.mennovanhout.insights-graphs/userdata/graph.png.png](http://192.168.178.72/app/nl.mennovanhout.insights-graphs/userdata/graph.png.png)

Probably it is or was intended that way or probably it’s intended for apps during dev-mode, but reality is different… At least on my brand new Homey Pro 2023 with latest firmware.

Is there any documentation where I could look that up? Actually I find it quite sane to have a persistent storage to be “persistent” and not loose data during reboots or app updates/reboots unless really uninstalling something.  
Probably I’ll try the ssh connection or usb connect… Maybe I would see how things are mounted in the filesystem. If it’s really ephemeral /userdata should be somewhere below /tmp or ramdisk like.  
You mentioned dev-tools, i.e. [https://tools.developer.homey.app/tools/](https://tools.developer.homey.app/tools/) ? Wouldn’t know where to find the storage data there as there’s just memory and CPU in app profiling. Can you point me to the location?

Regards, Michael

---

<div class="post-metadata">

**Author:** ![Menno\_van\_Hout](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/menno_van_hout/32/77843_2.png) [@Menno\_van\_Hout](https://community.homey.app/u/Menno_van_Hout)\
**Post date:** [January 4, 2024, 7:41pm UTC](https://community.homey.app/t/app-pro-insights-graphs/86856/135 "2024-01-04T19:41:35Z")

</div>

I am in Spain for a couple of weeks I can’t really check anything right now

---

<div class="post-metadata">

**Author:** ![LRvdLinden](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/lrvdlinden/32/80786_2.png) [@LRvdLinden](https://community.homey.app/u/LRvdLinden)\
**Post date:** [January 4, 2024, 8:25pm UTC](https://community.homey.app/t/app-pro-insights-graphs/86856/136 "2024-01-04T20:25:53Z")

</div>

Enjoy!

---

<div class="post-metadata">

**Author:** ![Philip\_Montgomery](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/philip_montgomery/32/12434_2.png) [@Philip\_Montgomery](https://community.homey.app/u/Philip_Montgomery)\
**Post date:** [January 4, 2024, 8:59pm UTC](https://community.homey.app/t/app-pro-insights-graphs/86856/137 "2024-01-04T20:59:24Z")

</div>

Beyond jealous

---

<div class="post-metadata">

**Author:** ![neoscaler](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/neoscaler/32/16675_2.png) [@neoscaler](https://community.homey.app/u/neoscaler)\
**Post date:** [January 7, 2024, 8:38am UTC](https://community.homey.app/t/app-pro-insights-graphs/86856/140 "2024-01-07T08:38:57Z")

</div>

After installation I see no flow cards? Does it only work with advanced flows?

HP23 with latest stable here.

---

<div class="post-metadata">

**Author:** ![Menno\_van\_Hout](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/menno_van_hout/32/77843_2.png) [@Menno\_van\_Hout](https://community.homey.app/u/Menno_van_Hout)\
**Post date:** [January 7, 2024, 8:50am UTC](https://community.homey.app/t/app-pro-insights-graphs/86856/141 "2024-01-07T08:50:27Z")

</div>

Advanced only. This is a limitation from homey because it generates an image

---

<div class="post-metadata">

**Author:** ![Wout\_van\_den\_Dool](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/wout_van_den_dool/32/391_2.png) [@Wout\_van\_den\_Dool](https://community.homey.app/u/Wout_van_den_Dool)\
**Post date:** [February 17, 2024, 6:41pm UTC](https://community.homey.app/t/app-pro-insights-graphs/86856/142 "2024-02-17T18:41:02Z")

</div>

ahh thanks, had similar question, thanks for asking and answering

---

<div class="post-metadata">

**Author:** ![Ralph\_Z](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ralph_z/32/119277_2.png) [@Ralph\_Z](https://community.homey.app/u/Ralph_Z)\
**Post date:** [February 18, 2024, 4:18am UTC](https://community.homey.app/t/app-pro-insights-graphs/86856/143 "2024-02-18T04:18:14Z")

</div>

Is there an instruction somewhere on how this works? I have no idea how to send or view created graphs.

---

<div class="post-metadata">

**Author:** ![LRvdLinden](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/lrvdlinden/32/80786_2.png) [@LRvdLinden](https://community.homey.app/u/LRvdLinden)\
**Post date:** [February 18, 2024, 7:57am UTC](https://community.homey.app/t/app-pro-insights-graphs/86856/144 "2024-02-18T07:57:36Z")

</div>

@Ralph_Z use advanced flows.

After using the Insights Grahps action card, you can use any messenger card with a image token.

![IMG_4402](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/1/118a8f0d55a9bb367b47603d9edd1487e002f0c5.png)

---

<div class="post-metadata">

**Author:** ![Ralph\_Z](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ralph_z/32/119277_2.png) [@Ralph\_Z](https://community.homey.app/u/Ralph_Z)\
**Post date:** [February 18, 2024, 2:04pm UTC](https://community.homey.app/t/app-pro-insights-graphs/86856/145 "2024-02-18T14:04:25Z")

</div>

Hi @LRvdLinden, I made a flow, but I can’t find the ‘Graph’. Do you know where I can find that one? I executed the flow first, but still can’t find it.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/2/b25bd0db99f696a4cef3ea42bf1270190fc5e7f6.png)

[Previous page](https://community.homey.app/t/app-pro-insights-graphs/86856.md?page=6)

[Next page](https://community.homey.app/t/app-pro-insights-graphs/86856.md?page=8)
