Coder Social home page Coder Social logo

kevdagoat / samil-influxdb-collector Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 1.0 18 KB

An InfluxDB stats collector for Samil SolarRiver Inverters with RS232

Perl 95.72% Python 3.87% Shell 0.42%
samilpower samil influxdb-client influxdb solar inverter

samil-influxdb-collector's Introduction

Samil InfluxDB Stats Collector

About

Script collection for monitoring older Samil Solar River inverters using the RS232 (serial) connection, and logging data to InfluxDB.

Credits

Supported Models

  • SolarRiver 3600TL (my inverter)
  • SolarRiver SP2200

Please raise an issue if it works for you and your inverter is not listed!

Requirements

  • A RS232 to USB or UART adapter
  • Raspberry Pi (or similar) running a modern version of Linux
  • A Samil SolarRiver inverter with RS232

Installation

You will need:

  • Git
  • Python3 and Pip3
  • Perl
  • Various Packages

Installing System Requirements

To install Git, Perl and Pip

sudo apt install git perl python3 python3-pip

Next, install the Perl and Python dependencies

sudo cpan # This will drop you in to the CPAN shell
install AppConfig Device::SerialPort HTTP::Request::Common LWP::UserAgent
exit
pip3 install influxdb configparser

Lastly, clone the repository (replace /home/pi with the directory you want)

cd /home/pi
git clone https://github.com/kevdagoat/samil-influxdb-collector ii

Usage

Simply run:

/home/pi/ii/run.sh

and the process will be spawned in the background.

To make this process automatic, I suggest using a crontab. In my case, I have set it to start at 6am. Make sure this isn't before the start time defined in config.ini as it will instantly fail!

* 6 * * * /home/pi/ii/run.sh

Configuration

In influx.ini is the InfluxDB connector configuration and config.ini contains the polling perl script configuration.

samil-influxdb-collector's People

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

audia

samil-influxdb-collector's Issues

Solar River

I recently got a secondhand inverter which I think is a Solar River S-2100
I have now installed perl and all is working fine with the exception of the temp reading which stays at zero.
I already have a system based on MQTT and node-red so I replaced the log.py with one that outputs the data to MQTT
Thanks for your contributions.
log.txt

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.