# \[APP\]\[Pro\] InfluxDb

**URL:** <https://community.homey.app/t/app-pro-influxdb/32405>\
**Category:** Apps\
**Tags:** app\
**Created:** [July 15, 2020, 5:21am UTC](https://community.homey.app/t/app-pro-influxdb/32405 "2020-07-15T05:21:40Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![balmli](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/balmli/32/1308_2.png) [@balmli](https://community.homey.app/u/balmli)\
**Post date:** [August 9, 2020, 8:19am UTC](https://community.homey.app/t/app-pro-influxdb/32405/21 "2020-08-09T08:19:23Z")

</div>

Hi,

The app will only write new measurements. It will buffer for 10 seconds, before it writes every measurement to the InfluxDb.

The Homey CPU and memory state, and app state, is fetched every 30 seconds.

So you should see some data quite fast.

Check that status is “Connected” in app settings. And the number of measurements since last restart of the app is also show.

 ![Skjermbilde 2020-08-09 kl. 10.22.20](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/0/60eb41777237205669418e0ce4583de9dd8e5136.png)

---

<div class="post-metadata">

**Author:** ![Marcel\_Ubels](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marcel_ubels/32/18860_2.png) [@Marcel\_Ubels](https://community.homey.app/u/Marcel_Ubels)\
**Post date:** [September 8, 2020, 2:21pm UTC](https://community.homey.app/t/app-pro-influxdb/32405/22 "2020-09-08T14:21:22Z")

</div>

As a complete Noob with Influxdb i have some questions. I have influxdb installed on a server and it is up and running. Also installed the Homey app and this is also up and running.

So my question is;  
Are the Logic variables and Better Logic variables also added? If so; then the real noob question how do I retrieve these data.

I am trying to write a homeyscript and want the power measurements of my solar panels. With homeyscript i can access those measurements, and store them in better logic variables. What i want is that i can get the measurements from e.g 01-09-2020 - 30-09-2020 and count all these measurements to the total of a month. That way i can comparise that month with another month.

Is this possible an how? Do i have to use flows, ore can it be done in homeyscript

---

<div class="post-metadata">

**Author:** ![balmli](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/balmli/32/1308_2.png) [@balmli](https://community.homey.app/u/balmli)\
**Post date:** [September 8, 2020, 3:03pm UTC](https://community.homey.app/t/app-pro-influxdb/32405/23 "2020-09-08T15:03:48Z")

</div>

Hi,

Logic variables and Better logic variables are not supported.

But I guess it would be possible to add an action flow, to add data to the InfluxDb. Is that something you could use, you think?

---

<div class="post-metadata">

**Author:** ![Marcel\_Ubels](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marcel_ubels/32/18860_2.png) [@Marcel\_Ubels](https://community.homey.app/u/Marcel_Ubels)\
**Post date:** [September 8, 2020, 3:34pm UTC](https://community.homey.app/t/app-pro-influxdb/32405/24 "2020-09-08T15:34:09Z")

</div>

I think that would be awesome. But does influxdb have the measurements of the solar panels? The solarpanel uses the “zonnpanelen” app, so it is added as a device in Homey. Could i use that? And How?

---

<div class="post-metadata">

**Author:** ![balmli](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/balmli/32/1308_2.png) [@balmli](https://community.homey.app/u/balmli)\
**Post date:** [September 8, 2020, 4:19pm UTC](https://community.homey.app/t/app-pro-influxdb/32405/25 "2020-09-08T16:19:49Z")

</div>

All “number” and “boolean” capabilities, for all apps, will be saved to InfluxDb. On any change that happens.

So if the app has any number or boolean capabilities, they should be available in your InfluxDb.

If you have any special calculated values, you can put them in a virtual device, and they should also be stored in InfluxDb.

---

<div class="post-metadata">

**Author:** ![Marcel\_Ubels](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marcel_ubels/32/18860_2.png) [@Marcel\_Ubels](https://community.homey.app/u/Marcel_Ubels)\
**Post date:** [September 8, 2020, 5:01pm UTC](https://community.homey.app/t/app-pro-influxdb/32405/26 "2020-09-08T17:01:56Z")

</div>

Ok so the data are available. Can you point me in the right direction how to retrieve these data, because in the app i only see that measurements are made. But how can i see those, and use them. So a absolute noob question.

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [September 8, 2020, 5:23pm UTC](https://community.homey.app/t/app-pro-influxdb/32405/27 "2020-09-08T17:23:03Z")

</div>

You can use a visualisation app that supports InfluxDB. One of the more popular ones is [Grafana](https://grafana.com/).

For example, here’s a chart that tracks solar energy generation, actual delivery back into the grid, and illuminance (outside). It wasn’t a very bright day today…

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/8/c88567d99c01a91af7a8224191f917948ac08be4.png)

---

<div class="post-metadata">

**Author:** ![M\_a\_r\_c\_o](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/m_a_r_c_o/32/146_2.png) [@M\_a\_r\_c\_o](https://community.homey.app/u/M_a_r_c_o)\
**Post date:** [September 11, 2020, 8:16am UTC](https://community.homey.app/t/app-pro-influxdb/32405/28 "2020-09-11T08:16:54Z")

</div>

I am curious, in the [App profiler](https://developer.athom.com/tools/app-profiling) in Athoms dev tools we see the CPU for each app as well, next to memory usage. Its only the last 140 seconds.

And in the [Insight website](https://insights.homey.app/) for each app is also Memory and CPU showed (and no storage).

But it seems not possible to capture CPU usage of an app?

[https://developer.athom.com/tools/app-profiling](https://developer.athom.com/tools/app-profiling)  
[https://insights.homey.app/](https://insights.homey.app/)

---

<div class="post-metadata">

**Author:** ![balmli](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/balmli/32/1308_2.png) [@balmli](https://community.homey.app/u/balmli)\
**Post date:** [September 11, 2020, 8:37am UTC](https://community.homey.app/t/app-pro-influxdb/32405/29 "2020-09-11T08:37:24Z")

</div>

Yes, that would have been nice.

The app uses the Homey API, [https://api.developer.athom.com/HomeyAPI.ManagerSystem.html](https://api.developer.athom.com/HomeyAPI.ManagerSystem.html)  
but this doesn’t return the CPU per app, just memory consumption per app, together with the system CPU (1 minute, 5 minute, 15 minute averages). If someone has information about how to do this… please let me know.

And then, when I look at the app-profiling and CPU per app in Insights… the values look a bit low / strange to me. I’m not sure if the correct values are reported…

---

<div class="post-metadata">

**Author:** ![balmli](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/balmli/32/1308_2.png) [@balmli](https://community.homey.app/u/balmli)\
**Post date:** [October 1, 2020, 7:32am UTC](https://community.homey.app/t/app-pro-influxdb/32405/30 "2020-10-01T07:32:19Z")

</div>

V. 0.9.10 is now ready for testing:

> **[InfluxDb](https://homey.app/en-us/app/homey.influxdb/InfluxDb/test/)**
>
> Metrics exporter for InfluxDb

Changes:

- Added triggers for online and offline events
- Added export of CPU usage per app: CPU usage is exported every 10 minutes, with one measurement per minute.
- Prefix for measurement names can be set: The prefix can be set in settings, and is advantageous if you have several Homeys logging to the same InfluxDB.

---

<div class="post-metadata">

**Author:** ![OetAelse](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/oetaelse/32/9470_2.png) [@OetAelse](https://community.homey.app/u/OetAelse)\
**Post date:** [October 13, 2020, 2:59pm UTC](https://community.homey.app/t/app-pro-influxdb/32405/32 "2020-10-13T14:59:22Z")

</div>

Replaced the Prometheus app with the InfluxDb app however I notice the average load has increased from approx. 125% to 250%. Is there a way to throttle the app to lower the load? Or should I get a Homey Pro 😉

---

<div class="post-metadata">

**Author:** ![balmli](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/balmli/32/1308_2.png) [@balmli](https://community.homey.app/u/balmli)\
**Post date:** [October 14, 2020, 5:18am UTC](https://community.homey.app/t/app-pro-influxdb/32405/33 "2020-10-14T05:18:57Z")

</div>

I run the InfluxDb app on a Homey (Early 2018) and a Homey Pro (2019), without problems.

Currently all numeric and boolean capabilities are logged to InfluxDb. Also Homey stats, like cpu usage, memory and app stats (cpu, memory) are also logged.

Right now it’s not possible to throttle the app.

---

<div class="post-metadata">

**Author:** ![Jeroen\_Tebbens](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jeroen_tebbens/32/62246_2.png) [@Jeroen\_Tebbens](https://community.homey.app/u/Jeroen_Tebbens)\
**Post date:** [October 18, 2020, 1:11pm UTC](https://community.homey.app/t/app-pro-influxdb/32405/34 "2020-10-18T13:11:52Z")

</div>

I echo your experience. Installed but just as with Prometheus it is a CPU hog. I like the effort but the load runs over 3 and lights on/off and motion detection in the house are delayed.  
I have the early homey 2016 so I recon this would work better with a Homey Pro.

---

<div class="post-metadata">

**Author:** ![OetAelse](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/oetaelse/32/9470_2.png) [@OetAelse](https://community.homey.app/u/OetAelse)\
**Post date:** [October 18, 2020, 1:25pm UTC](https://community.homey.app/t/app-pro-influxdb/32405/35 "2020-10-18T13:25:54Z")

</div>

Thanks for creating the app but it puts too much load on my Homey causing delays.

---

<div class="post-metadata">

**Author:** ![M\_a\_r\_c\_o](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/m_a_r_c_o/32/146_2.png) [@M\_a\_r\_c\_o](https://community.homey.app/u/M_a_r_c_o)\
**Post date:** [October 18, 2020, 2:44pm UTC](https://community.homey.app/t/app-pro-influxdb/32405/36 "2020-10-18T14:44:02Z")

</div>

I run it on an Homey Pro with al lot of devices and flows and have not much delays with influxdb, it does eat around 30 Mb memory.

Could the speed of the disk and host where influx is hosted be of influence?

My influx is a docker on a Synology NAS DS716+II

---

<div class="post-metadata">

**Author:** ![Jeroen\_Tebbens](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jeroen_tebbens/32/62246_2.png) [@Jeroen\_Tebbens](https://community.homey.app/u/Jeroen_Tebbens)\
**Post date:** [October 18, 2020, 3:33pm UTC](https://community.homey.app/t/app-pro-influxdb/32405/37 "2020-10-18T15:33:55Z")

</div>

InfluxDb is on docker vm on ESXi host with Core i3. CPU is pretty much idle on the InfluxDb docker. So it’s Homey cpu and resources that is slow here.

---

<div class="post-metadata">

**Author:** ![balmli](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/balmli/32/1308_2.png) [@balmli](https://community.homey.app/u/balmli)\
**Post date:** [October 19, 2020, 7:09am UTC](https://community.homey.app/t/app-pro-influxdb/32405/38 "2020-10-19T07:09:28Z")

</div>

I can add a setting so you can change the update frequency. Now it’s every 10 seconds. Maybe increasing the update frequency might help some of you.

Also adding a setting to disable sending Homey metrics (memory + CPU). That sends a lot of data, every 30 seconds, and it might be good to be able to disable that.

---

<div class="post-metadata">

**Author:** ![balmli](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/balmli/32/1308_2.png) [@balmli](https://community.homey.app/u/balmli)\
**Post date:** [October 21, 2020, 3:40pm UTC](https://community.homey.app/t/app-pro-influxdb/32405/39 "2020-10-21T15:40:11Z")

</div>

@Jeroen_Tebbens @OetAelse

I’ve added two flows you can use to throttle the CPU load for the app, and it will also reduce the memory consumption.

- Enable / disable Homey metrics
- Set InfluxDb write interval: 10 - 60 seconds

I think disabling the Homey metrics reduces the CPU load the most.

> **[InfluxDb](https://homey.app/en-us/app/homey.influxdb/InfluxDb/test/)**
>
> Metrics exporter for InfluxDb

Please test 🙂

---

<div class="post-metadata">

**Author:** ![Jeroen\_Tebbens](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jeroen_tebbens/32/62246_2.png) [@Jeroen\_Tebbens](https://community.homey.app/u/Jeroen_Tebbens)\
**Post date:** [October 21, 2020, 4:43pm UTC](https://community.homey.app/t/app-pro-influxdb/32405/40 "2020-10-21T16:43:35Z")

</div>

Testing.  
@balmli  
Disable homey metrics is the one that makes cpu load drop.  
Is there a way to only allow cpu and memory for homey and skip/filter all the APP details ut collects for the apos running?  
So homey metrics is cpu, memory but also cpu and memory of all apps (apo cpu and memory usage). So filter on system only.

---

<div class="post-metadata">

**Author:** ![balmli](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/balmli/32/1308_2.png) [@balmli](https://community.homey.app/u/balmli)\
**Post date:** [October 22, 2020, 6:19am UTC](https://community.homey.app/t/app-pro-influxdb/32405/41 "2020-10-22T06:19:39Z")

</div>

@Jeroen_Tebbens Yes, I can add that, so you can select between:

1. Homey and app CPU & memory
2. Homey CPU & memory
3. Disabled

Then you can test choice #2, and see if that has acceptable CPU load and memory consumption in your setup.

[Previous page](https://community.homey.app/t/app-pro-influxdb/32405.md?page=1)

[Next page](https://community.homey.app/t/app-pro-influxdb/32405.md?page=3)
