Jump to content
harper

Prometheus Metric Logger driver

Recommended Posts

Hello! I have another driver for you!

This is another alpha driver that should work great (it is working for me and is fun). 

It allows for the monitoring system Prometheus to grab metrics from your control4 system and graph them in Grafana or another dashboard system. 

Download, instructions and more info is here: http://c4drivers.com/prometheus-logger

Here are some example screenshots from my prometheus install and my grafana dashboard: 

prometheus-graph.png

grafana-lights.png

grafana-doors-alarm.png

grafana-motion.png

grafana-lights.png

Share this post


Link to post
Share on other sites

Nice work, Harper.

Do you know if the Grafana dashboard works on T3 touch screens (via the Web View driver)? We used EmonCMS in the past but it didn't work on T3s. (Still was nice to have on iPads etc.)

By the way, any progress on the MQTT driver / integration?

Share this post


Link to post
Share on other sites
On 8/24/2018 at 4:26 AM, lukas.polivka said:

By the way, any progress on the MQTT driver / integration?

I have a terrible implementation. However, I have had really good luck using my webhooks driver and nodered. Nodered will translate the incoming payload from control4 into a good mqtt payload. It works super well and is way more robust than my crappy implementation. 

The best route forward is for someone (hopefully not me) to actually port an MQTT client and server to C4 flavored lua. I have looked into it - but it is a PITA and i didn't want to get into the annoyances of actually writing a server. 

Share this post


Link to post
Share on other sites

I forgot to answer about the webview driver: I will try it out and let you know. I have some fun grafana dashboards that would be fun to put on the T3s

Share this post


Link to post
Share on other sites
On 8/27/2018 at 12:08 AM, harper said:

I have a terrible implementation. However, I have had really good luck using my webhooks driver and nodered. Nodered will translate the incoming payload from control4 into a good mqtt payload. It works super well and is way more robust than my crappy implementation. 

The best route forward is for someone (hopefully not me) to actually port an MQTT client and server to C4 flavored lua. I have looked into it - but it is a PITA and i didn't want to get into the annoyances of actually writing a server. 

I suggested the idea to Control4, for them to provide (at least) some MQTT client & server library in DriverWorks SDK directly. I think it would open up a lot of new possibilities (without every driver developer having to reinvent the MQTT wheel).

Share this post


Link to post
Share on other sites

Not that I know of, no. I don't know about any attempts, either.

Integrating through the WebHooks driver + NodeRED seems a bit awkward. I mostly wanted to integrate MQTT-enabled devices *to* Control4. For that, it would be nice to have some drivers hooked up to the UIs (proxies): 'light', 'relay', 'contact sensor', 'temperature sensor' and similar.

I got interested in it through HASS (which I was thinking of using as a universal gateway for everything Control4 does not support natively), Espurna and other projects. Seems like support for the protocol is pretty ubiquitous. Even some PLCs for which we now use Modbus, a terrible 70s-era industrial protocol, support it.

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×