jaapterwoerds / Growatt-server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GROWATT-SERVER

Growatt-server is a Perl script used for Growatt solar inverters with ShineWiFi-X modules. Growatt-server can be used to communicate with a solar inverter, decode energy data, and publish these data via MQTT.

Installation

git clone https://github.com/knowthelist/Growatt-server.git
cd Growatt-server

If not done before, you need to install some modules

sudo cpanm Net::MQTT::Simple
sudo cpanm Net::MQTT::Constants
sudo cpanm Data::Hexify

Usage

First, you need to use the Growatt WiFi module administrative interface, go to the "Advanced Setting" and change "Server Address" (default: server.growatt.com) to the name or ip of the system running this script. You will also need to configure the computer running this script with a static IP address.

See AP-Mode manual

Start the script:

perl growatt_server.pl

For debugging add --debug=N (N: 1-4) parameter:

perl growatt_server.pl --debug=3

Daemon

To run the script 24x7 as a service, you can use the growattserver.service config for systemd.

sudo cp growatt_server.pl /usr/local/bin/
sudo cp growattserver.service /etc/systemd/system/
sudo systemctl enable growattserver
sudo systemctl start growattserver

License

This project is licensed under MIT.

About


Languages

Language:Perl 100.0%