Grafana Dashboard now working... very quick

Working on a home project? Post it here.
roscoe
Posts: 35
Joined: Sat Jul 10, 2010 4:53 am

Grafana Dashboard now working... very quick

Post by roscoe » Sun Sep 11, 2016 8:10 am

finally decommissioned EngineG and its Dashboard, it was great for free, but sluggish very slow UI and tied up an old laptop, so .... now have..

serial/eth >> btmon.py > influxdb > grafana

All software runs on a smallish Virtual Machine (ubuntu) and boy its snappy, very very quick.

Will try to post a couple of pics if the forum lets me.
roscoe
Posts: 35
Joined: Sat Jul 10, 2010 4:53 am

Re: Grafana Dashboard now working... very quick

Post by roscoe » Sun Sep 11, 2016 8:11 am

screenshot 1, with live values in SINGLESTATS
Attachments
Screen Shot 2016-09-11 at 14.01.45.png
Screen Shot 2016-09-11 at 14.01.45.png (205.86 KiB) Viewed 19951 times
roscoe
Posts: 35
Joined: Sat Jul 10, 2010 4:53 am

Re: Grafana Dashboard now working... very quick

Post by roscoe » Sun Sep 11, 2016 8:13 am

extra screenshots, so lil-old ECM logs GAS on Aux5, and has Solar PV generation, and also a channel for an electric car...

did I say the dashboard was quick !
Attachments
Screen Shot 2016-09-11 at 14.05.27.png
Screen Shot 2016-09-11 at 14.05.27.png (161.25 KiB) Viewed 19951 times
Screen Shot 2016-09-11 at 14.04.56.png
Screen Shot 2016-09-11 at 14.04.56.png (88.3 KiB) Viewed 19951 times
roscoe
Posts: 35
Joined: Sat Jul 10, 2010 4:53 am

Re: Grafana Dashboard now working... very quick

Post by roscoe » Mon Sep 19, 2016 6:37 am

not posting anymore pics, but now sorted the spikey or jaggyness on power displays

seems that my ECM1240 setup (aka me 5 years ago) was being too clever and using PACKET TRIGGER = 80w
which caused lovely high resolution packets on power changes
BUT was causing false spikes when the DERIVATIVE was calculating power

now happy with 10s packet sends but no power triggers, all fine

No need for MOVING AVERAGE sillyness down the line !
ben
Site Admin
Posts: 4254
Joined: Fri Jun 04, 2010 9:39 am

Re: Grafana Dashboard now working... very quick

Post by ben » Mon Sep 19, 2016 9:51 am

roscoe wrote:not posting anymore pics, but now sorted the spikey or jaggyness on power displays

seems that my ECM1240 setup (aka me 5 years ago) was being too clever and using PACKET TRIGGER = 80w
which caused lovely high resolution packets on power changes
BUT was causing false spikes when the DERIVATIVE was calculating power

now happy with 10s packet sends but no power triggers, all fine

No need for MOVING AVERAGE sillyness down the line !
We default the trigger to 8000 now due to the issues you're experiencing.
Ben
Brultech Research Inc.
E: ben(at)brultech.com
networkingdude
Posts: 4
Joined: Wed Sep 27, 2017 12:12 am

Re: Grafana Dashboard now working... very quick

Post by networkingdude » Wed Sep 27, 2017 12:14 am

Got a tutorial for this? So beautiful!
roscoe
Posts: 35
Joined: Sat Jul 10, 2010 4:53 am

Re: Grafana Dashboard now working... very quick

Post by roscoe » Thu Oct 05, 2017 7:40 am

sorry no tutorial, but it looks even better nowadays..
here is the solar page
SolarPV.jpg
SolarPV.jpg (307.16 KiB) Viewed 18799 times
networkingdude wrote:Got a tutorial for this? So beautiful!
roscoe
Posts: 35
Joined: Sat Jul 10, 2010 4:53 am

Re: Grafana Dashboard now working... very quick

Post by roscoe » Thu Oct 05, 2017 7:44 am

& more, gas stuff, with alerts on freezing etc
gas.jpg
gas.jpg (259.14 KiB) Viewed 18797 times
ben
Site Admin
Posts: 4254
Joined: Fri Jun 04, 2010 9:39 am

Re: Grafana Dashboard now working... very quick

Post by ben » Fri Oct 06, 2017 3:37 pm

networkingdude wrote:Got a tutorial for this? So beautiful!
I did some experimentation with Grafana/Influx/BTMon that you can use as a starting point.

I've uploaded it here:

http://www.brultech.com/files/BTMonGrafanaInflux.zip

You'll need to install Python 2.7

Start by editing btmon.cfg

- Replacing the GEMIP field with the IP of your GEM. (Or change the settings completely for an ECM-1240.)
- Edit the influxdb_database = testing line, change testing to something else.

Run startinflux.exe and startgrafana.exe then run btmon.py
Ben
Brultech Research Inc.
E: ben(at)brultech.com
networkingdude
Posts: 4
Joined: Wed Sep 27, 2017 12:12 am

Re: Grafana Dashboard now working... very quick

Post by networkingdude » Mon Nov 27, 2017 9:27 am

Thanks for providing that package Ben, on a fresh Windows 10 install in addition to python you must do "pip install influxdb" otherwise it won't run. I also had to change the port to 80 for the GEM as the default didn't work. I also didn't see any dashboard included but it was fairly easy to make one.
Post Reply