# \[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:** 1\
**Showing post:** 151

<div class="post-metadata">

**Author:** ![joshua](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/joshua/32/44829_2.png) [@joshua](https://community.homey.app/u/joshua)\
**Post date:** [March 26, 2024, 4:19pm UTC](https://community.homey.app/t/app-pro-insights-graphs/86856/151 "2024-03-26T16:19:46Z")

</div>

> [@DarrenJ](#):
>
> Am fairly new to all this so it would be appreciated if some simple instructions could be made which shows how to setup/configure a Homey Insight to sharptools as an example.

From what I gather, it seems like there are two approaches:

1. Use the special ‘userdata’ URL for the graph _directly_ in a Media Tile in [SharpTools.io](http://SharpTools.io)
  - See notes at the bottom for comments around persistence

2. Write the output from the Insights Graph card to an AVD ([reference](https://community.homey.app/t/app-pro-insights-graphs/86856/42)), then use the [Homey Image Viewer custom tile in SharpTools](https://community.sharptools.io/t/beta-homey-custom-tiles/12968)

## Direct userdata URL

For the first approach, it looks like you would create your Advanced Flow using the Insights Graph card as normal which will write the image to file. Then you can use a special URL format to directly access that graph as a Media item in SharpTools

### 1. Create the Flow and output your image

Create your Advanced Flow using the Insights Graph card as desired. Make sure to use a _unique_ name for each graph that you want to access.

 ![Homey Flow using Insights Graph](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/1/f1ca54456cad60e4f13c7d5748255d410a4d89ef.jpeg)

### 2. Construct the URL

Per the comments above, we can access the generated graph directly in the `/userdata/` folder of the app. So we can construct a URL directly to the generated graph with a format like:

Format:

```plaintext
https://{your-dash-format-ip}.homey.homeylocal.com/app/nl.mennovanhout.insights-graphs/userdata/{yourFilename.png}.png

```

Example:

```auto
https://192-168-1-213.homey.homeylocal.com/app/nl.mennovanhout.insights-graphs/userdata/temperature2.png.png

```

> **Direct IP URL (tap to expand)**
>
> This direct IP URL format below is **not** for SharpTools. The above format uses Homey’s DNS resolver and has a valid SSL which makes it ideal for access in an SSL dashboard. Alternatively, you could use a _direct_ URL to your Homey but it may introduce SSL Mixed Content issues, so it is not suggested for a dashboard served over SSL.
> 
> ```auto
> http://192.168.1.213/app/nl.mennovanhout.insights-graphs/userdata/temperature2.png.png
> 
> ```

You should be able to access this URL directly in your browser:

 ![Viewing Constructed userdata URL in browser](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/4/54981bb91b5a4309c6cbcd4985e2187aae63f35e.jpeg)

### 3. Create the SharpTools Media Item

Create a [SharpTools Media Item](https://sharptools.io/user/resources/media) using the URL of the graph image from the previous step. Enable ‘autorefresh’ and set the interval according to your needs:

 ![Using Constructed userdata URL in SharpTools Media item](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/6/06e851f61899debd373d8d63d8b66e8d7ed1e3c1.jpeg)

Notes:

- This is a local URL directly to your Homey, so it won’t be accessible outside your home. This is fine for a wall mounted dashboard, but if you need remote access, the second AVD approach might be more suitable.
- [Based on the tests](https://community.homey.app/t/app-pro-insights-graphs/86856/132) by @Michael_E above, it seems like the `userdata` URL survives an app reboot
- The alternative approach of using the image listed in the Homey Developer Tools has more issues as it seems like the images in the Homey Developer Tools are **temporarily cached** - these images disappear after rebooting the app / Homey. And after a reboot they get a new unique ID when regenerated.

---

_[View the full topic](https://community.homey.app/t/app-pro-insights-graphs/86856)._
