Skip to content

Script for logging Solar Inverters that use the EATON PHOENIXTEC protocol.

Notifications You must be signed in to change notification settings

hvegh/PV-Logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PV-Logger

A set of perl scripts for communicating with EATON PHOENIXTEC type solar Tested and running with the Chint 3KW CPS SCE3KTL-O solar inverter.

Before you start please note:

NO WARRANTY

PV-LOGGER IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL, BUT WITHOUT ANY WARRANTY. IT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.

also

This stuf is maybe here and there a little rough around the edges. I do not intend to give allot of user support. So you're basically on your own with this.

Interface:

For an isolated rs232 interface used with this logger see: https://github.com/hvegh/Optical-Isolated-RS422-RS485-interace.git

Dependencies:

General utillities:

  • Perl v5
  • GNU Compiler
  • GNU Make
  • swig

Perl modules:

  • LWP::UserAgent
  • HTTP::Request provided by libwww-perl
  • Device-SerialPort provided Device-SerialPort

Installation:

  1. Install prerequisites

    apt-get install swig libdevice-serialport-perl libwww-perl

    Fix permissions on the serial port, if needed:

    chmod 666 /dev/ttyS

  2. Compile the Solar Position Algorithm look at the README in lib/spa

  3. Set the configuration parameters in sunmon.pl

  4. run sunmon.pl

  5. Setup the script to run daily, using crontab for example, the script will wait for sunrise before it starts sampling the inverter and terminates on sunset.

Tools & Documentation

tools/analyse.pl:

  • Calculates line impedance using PV-Logger data files, use the -h option for a description. The tools directory also contains an example data file.
  • Can convert CSV files to JSON for use with index.html. Example: analyse -j data.json example-datafile.csv

tools/index.html:

  • Together with a 'data.json' datafile generated by sunmon.pl or analyse.pl, index.html generates solar production charts. Uncomment and configure 'data_js' in the configuration section of the sunmon.pl for live charts.

(c) 2013, 2014 Henk Vergonet

About

Script for logging Solar Inverters that use the EATON PHOENIXTEC protocol.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published