8000 GitHub - tinytux/solar-dashboard: Dashboard for a solar central inverter
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

tinytux/solar-dashboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Solar inverter dashboard

This demo shows how to use elastic as development tool for monitoring distributed embedded systems like solar central inverters.

Log files can be parsed in Logstash with Grok patterns and visualized as Kibana dashboard:

screenshot screenshot

Example: Yield dashboard and Developer dashboard

HOW TO

  1. Check the system requirements

    • Docker host (e.g. Linux, tested on Debian Stretch 9 and Ubuntu 16.04 with Docker version 17.04.0-ce and docker-compose version 1.11.2.)
    • 8 GB RAM or more
  2. Install docker and docker-compose. Make sure Docker works with your login:

    [debian 21:31] ~/git/tinytux/solar-dashboard (master)*$ docker run hello-world
    Unable to find image 'hello-world:latest' locally
    latest: Pulling from library/hello-world
    78445dd45222: Pull complete
    Digest: sha256:c5515758d4c5e1e838e9cd307f6c6a0d620b5e07e6f927b07d05f6d12a1ac8d7
    Status: Downloaded newer image for hello-world:latest
    
    Hello from Docker!
    This message shows that your installation appears to be working correctly.    
    
  3. elasticsearch requires max_map_count to be at least 262144. Run the following command (settings will be lost after reboot):

    sudo sysctl -w vm.max_map_count=262144
    
  4. Clone this repository and start the ELK stack:

    $ git clone https://github.com/tinytux/solar-dashboard.git
    $ cd solar-dashboard
    $ ./elk.sh start
    
  5. After 30-40 seconds, check if elasticsearch is up and running: http://localhost:9200/_search?pretty=true

  6. Open a second terminal window and start feeding (this can take a few minutes):

    $ ./feed.sh ./data/*syslog.txt | nc -q 5 localhost 5000
    
  7. elasticsearch should contain now around 263'000 elements: http://localhost:9200/_search?pretty=true

  8. Visit Kibana http://localhost:5601/app/kibana and add the logstash index.

  9. Go to the "Management", "Saved Objects" tab and click "Import" to load Kibana dashboard

  10. Set the time Time Range filter to 2015 (else you will not see any logs): screenshot

A simpler dashboard without Docker can be found here.

About

Dashboard for a solar central inverter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0