Skip to content

Sends data from a SUNTWINS 5000TL Series Inverter to Logstash

License

Notifications You must be signed in to change notification settings

benleov/solarmonj

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Forked from https://github.com/jcroucher/solarmonj By Adam Gray & John Croucher.

This project has been extended to send data from an SUNTWINS 5000TL Series Inverter over USB converter
to Logstash, via a TCP/IP socket. This can then be viewed in Kibana.

In addition to this, it can be configured via an ini file and will cache data if Logstash cannot be reached periodically.

Example Kibana Dashboard

Requirements

To run this project you will need:

Building

In order to build this project you will need:

  • build-essentials (or cmake)
  • g++

Setup

  • Run cmake .
  • run make
  • Install Logstash
  • Update /etc/logstash/logstash.conf, placing the contents of conf/logstash/logstash.conf in it.
  • Install Elastisearch
  • Install Kibana
  • Start Logstash, Elastiserch and Kibana.
  • Create an ini file called jfyconfig.ini within the project directory. It supports three parameters within a [settings] section
    • device - Which is the device the USB converter is connected to
    • logstashHost - Hostname or IP address of the logstash instance
    • logstashPort - Port of the logstash instance
  • Ensure that the time on the device thats running this application is correct (e.g dpkg-reconfigure tzdata)
  • Run bin/jfycron as root to start sending to logstash periodically.
  • Browse to your logstash (e.g http://localhost:5601) to see your logs.
  • An example Kibana dashboard configuration that can be imported is in the repo: conf/kibana/kibana_dashboard.json

Clearing the cache

If Logstash cannot be reached, data will be stored in a file named jfy_data_cache.txt. Once Logstash can be reached, they will be sent through and the file will be removed automatically. In order to clear the cache manually, run ./libjfy --flush-cache.

About

Sends data from a SUNTWINS 5000TL Series Inverter to Logstash

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 75.0%
  • C 16.4%
  • PHP 8.0%
  • Other 0.6%