cornetp / eagle-owl

Data acquisition from an OWL CM160 +USB device on linux platforms
GNU General Public License v2.0
43 stars 32 forks source link

How send data to influxdb (grafana) #26

Open vincent1890 opened 5 years ago

vincent1890 commented 5 years ago

How to get back the data by python or other one and to send them in influxdb (grafana) ?

jesjimher commented 5 years ago

I forked cornetp's repo a while ago in order to remove things I didn't need and add a few others. So, my fork uses cornetp's core for OWL connection, but doesn't store anything on SQLite nor provides any web interface. It just lets you export information to MQTT or a plain text file. Exporting data to influxdb from there should be pretty straightforward.

There's also the option to execute a custom command for every power value, but I didn't finish implementing it (it shouldn't be difficult though). Unfortunately my OWL broke some months ago and I switched to other solutions, so I don't maintain this code anymore, but it worked pretty well.

vincent1890 commented 5 years ago

Je bifurqué repo de cornetp il y a un certain temps afin d'éliminer les choses que je ne l' ai pas besoin et ajouter quelques autres. Ainsi, ma fourche utilise le noyau de cornetp pour la connexion OWL, mais ne stocke rien sur SQLite et ne fournit aucune interface Web. Il vous permet simplement d’exporter des informations au format MQTT ou dans un fichier texte brut. Exporter des données vers influxdb à partir de là devrait être assez simple.

Il existe également la possibilité d'exécuter une commande personnalisée pour chaque valeur d'alimentation, mais je n'ai pas fini de l'implémenter (cela ne devrait pas être difficile cependant). Malheureusement, mon OWL est tombé en panne il y a quelques mois et je suis passé à d'autres solutions. Je ne maintiens plus ce code, mais il a plutôt bien fonctionné.

Thank you @jesjimher I go and look at it