# Generating a automatic name for a variable

**URL:** <https://community.homey.app/t/generating-a-automatic-name-for-a-variable/49841>\
**Category:** Developers\
**Created:** [July 28, 2021, 9:14am UTC](https://community.homey.app/t/generating-a-automatic-name-for-a-variable/49841 "2021-07-28T09:14:56Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Edwin\_D](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/edwin_d/32/136417_2.png) [@Edwin\_D](https://community.homey.app/u/Edwin_D)\
**Post date:** [July 29, 2021, 7:28am UTC](https://community.homey.app/t/generating-a-automatic-name-for-a-variable/49841/2 "2021-07-29T07:28:27Z")

</div>

Looks like you’re trying to reproduce what [[APP] Power by the Hour: Insights per hour, day, month and year](https://community.homey.app/t/app-power-by-the-hour-insights-per-hour-day-month-and-year/20535) does from just one variable using insights. Isn’t it better to use that?

If hou create variables each month, with insights and all, you’ll probably strain storage way more than needed.

You could also consider usning only variables per month and use insigts to track years across months?

---

_[View the full topic](https://community.homey.app/t/generating-a-automatic-name-for-a-variable/49841)._
