# \[Inspiration\] Daily energy prices chart (using Power by the Hour)

**URL:** https://community.homey.app/t/inspiration-daily-energy-prices-chart-using-power-by-the-hour/80821
**Category:** Flows
**Tags:** energy, homeyscript, flow, homey-pro
**Created:** [May 20, 2023, 2:42pm UTC](https://community.homey.app/t/inspiration-daily-energy-prices-chart-using-power-by-the-hour/80821 "2023-05-20T14:42:26Z")
**Posts on this page:** 1
**Showing post:** 13

<div class="post-metadata">

### Author: ![Torch1969](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/torch1969/32/33305_2.png) [@Torch1969](https://community.homey.app/u/Torch1969)
#### Post date: [July 16, 2023, 6:06pm UTC](https://community.homey.app/t/inspiration-daily-energy-prices-chart-using-power-by-the-hour/80821/13 "2023-07-16T18:06:08Z")

</div>

@Stikstof , thx for the inspiration. Despite @Gruijter added the image’s to PBTH, i wanted to learn from this for myself, and created my own image, based on your code, with some modifications

 ![2.8.0 1.080×720 pixels](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/0/b07a9ab605bc66f6ebe4c1168cbf1d8317a368f1.jpeg)

- I’m using the “komende uren”/“coming hours” JSON from PBTH
- i changed the labels on the x-axis, so it starts with current hour (@Gruijter i can share the solution with you… 😉 )
- i changed the colours, they are dynamic, based on averega price. So purple is negative price, light green is price 10% under average, orange is price 10% above average and darkgreen is between them. (so it is aligned with my homey script with [notification of new prices](https://community.homey.app/t/laagste-prijzen-per-uur-anwb-energie/75875/3))
- i added a title with average price.

I trigger this image from a flow and send it with push message like your tutorial. Thx for this 🙂

---

_[View the full topic](https://community.homey.app/t/inspiration-daily-energy-prices-chart-using-power-by-the-hour/80821)._
