I made an apex plugin for telegraf

EBNewbie

Community Member
View Badges
Joined
Oct 17, 2018
Messages
71
Reaction score
88
What state or country do you live in
California
Rating - 0%
0   0   0
I wanted to monitor my Neptune Apex data like I monitor everything else in the house. My main use case was to start the air conditioner if my tank temp ever hit 80F. I use Telegraf+InfluxDB+Grafana to monitor pretty much everything as it's well supported and well-known in the computer engineering world. So I wrote a telegraf plugin to scrape the xml file from the apex and store data in the time-series database:
https://github.com/influxdata/telegraf/tree/master/plugins/inputs/neptune_apex

I did not post about it because I wasn't sure if reefers would be interested in setting up a somewhat complicated stack to get their Apex data but it seems to have taken off. Here's an article by someone who has found the plugin and made a dashboard:
https://www.plantedtank.net/forums/9-equipment/1287105-i-made-dashboard-my-apex-controller.html

I personally use IFTTT's webhook service to receive an alarm from Grafana when the temp hits 80F:
https://ifttt.com/maker_webhooks
Which will set my downstairs ecobee's AC to 75F
https://ifttt.com/ecobee

Is anyone wants to try it, here's a quick tutorial on how to setup the Grafana+InfluxDB+Telegraf stack
https://mgysel.ch/influxdb-telegraf-and-grafana-on-a-raspberry-pi/
 
Beats buying a $600 chiller :p

Hey, I'm a devops guy, i live and die by telegraf.

I don't have an Apex, though. I'm just starting to dig into reefpi, at least until i can sell some coral to afford an Apex -- despite all my opensourceness, industrial stability in this situation is kinda crucial to me.
 
I wanted to monitor my Neptune Apex data like I monitor everything else in the house. My main use case was to start the air conditioner if my tank temp ever hit 80F. I use Telegraf+InfluxDB+Grafana to monitor pretty much everything as it's well supported and well-known in the computer engineering world. So I wrote a telegraf plugin to scrape the xml file from the apex and store data in the time-series database:
https://github.com/influxdata/telegraf/tree/master/plugins/inputs/neptune_apex

I did not post about it because I wasn't sure if reefers would be interested in setting up a somewhat complicated stack to get their Apex data but it seems to have taken off. Here's an article by someone who has found the plugin and made a dashboard:
https://www.plantedtank.net/forums/9-equipment/1287105-i-made-dashboard-my-apex-controller.html

I personally use IFTTT's webhook service to receive an alarm from Grafana when the temp hits 80F:
https://ifttt.com/maker_webhooks
Which will set my downstairs ecobee's AC to 75F
https://ifttt.com/ecobee

Is anyone wants to try it, here's a quick tutorial on how to setup the Grafana+InfluxDB+Telegraf stack
https://mgysel.ch/influxdb-telegraf-and-grafana-on-a-raspberry-pi/

There was another fella, chvvkumar I think it was, on the Neptune boards who did something similar. I thought I had the Git repo but maybe not. I was going to revisit this to see about pulling the Trident information out among a few other things.

Grafana has its place and I personally use it in our UFT automation farm because, well, UFT is a pice of crap and I'm tired of hearing about capacity. Similar telegraf, influx, grafana - all data in a single location.

In any case good work and thanks for sharing. I'll have to check it out.
 
I'm glad I'm not the only one. I have written a go program that will pull data from your apex, not using the XML logs and will write it directly to an InfluxDb/Grafana that I have hosted on Google Cloud.

This was hastily put together while I was learning go.

ApexGrafana1.png ApexGrafana2.png
 
Wow this is great! I didn't realize it was possible to get the data out of the Apex other than something like scraping it.

Does the Apex offer any way to set values? It would be awesome to post readings into the Apex.

I've been wanting to get one of the automated testing machines for nitrate/phosphate but haven't pulled the trigger because you can't see the data together. Has anyone got this working with the mastertronic or other testers that don't interface with the Apex?
 

IF YOU HAD TO TAKE A REEFING EXAM, WOULD YOU PASS?

  • Yes!

    Votes: 32 45.7%
  • Not yet, but I have one that I want to buy in mind!

    Votes: 9 12.9%
  • No.

    Votes: 26 37.1%
  • Other (please explain).

    Votes: 3 4.3%
Back
Top