[APP][Pro] Insights Graphs

It generates an image token. you still have to choose to do what you want with the image:

  • Send through telegram
  • Send through whatsapp
  • Save as file
  • Upload to ftp

If you want to make it viewable within the Homey app you can use my other app:

2 Likes

Look closely at my example. You do need to connect your mail action card to that of Insights graphs and under image, choose the Graphs image token.

Do you think that it is now possible to create one email with multiple messages containing different graphs and messages below?

  • With the goal to send myself every morning an email dashboard with all kinds of graphs
    Like I do at work to monitor the Webshops performance with Salesforce :slight_smile:
  • For now I send myself push messages like water usage, electricity and gas, but also the climate in house (temp and humidity)
  • But I’m missing the Year to date ore mont to date view, average etc… I’m hoping to get this via the images per day and month overview

I keep dreaming…

1 Like

I’m trying to use this as an image in sharptools (for lack of any Homey dashboard/control panel functionality) but am getting lost amongst it all. 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.

I founded https://hdashboards.app before i new SharpTools excited so I can’t help you there.

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
    • See notes at the bottom for comments around persistence
  2. Write the output from the Insights Graph card to an AVD (reference), then use the Homey Image Viewer custom tile in SharpTools

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.

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:

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

Example:

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.

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:

3. Create the SharpTools Media Item

Create a SharpTools Media Item using the URL of the graph image from the previous step. Enable ‘autorefresh’ and set the interval according to your needs:

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 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.
1 Like

Thank you very much! I had even stumbled on those urls and never thought to just link direct to image tile. Tested and works easy! Appreciated. :smiley:

1 Like

But I don’t see the Graph image token…

image

@Ralph_Z Did you connect the 2 cards in this example?

I did now :man_facepalming: Thanks!

@Ralph_Z :+1:t3:

1 Like

@Ralph_Z and @Menno_van_Hout
Greate App! I’m playing arround with HD Boards and I like it.
But there seems to be Problem with the image card.


The preview is renderd correct, but the error message is blocking me.
Where is my fault?

This seems to be a rare case that happens sometimes after homey has an update. A homey reboot works. When requesting device info homey responds with an error instead of the data. Somehow a reboot solves this.

It’s fixed! THX

I assume you figured it out haha

I have the same issue indeed.

Tried multiple devices multiple insights, always the same error.

If it helps, here is the diag - 07338e71-3b6e-462a-a1ad-71bcb8fb3885

1 Like

Will look at it asap, but that will probably next month.

1 Like

Hey, no worries, I just discovered this nice app :slight_smile:

1 Like