Skip to content

Running Grott (stand alone)

Johan Meijer edited this page Oct 5, 2020 · 2 revisions

To use the grott monitor it is necessary to reroute the data from the Growatt inverter to the Growatt internet server via a local Linux server (e.g. Raspberry PI) were grott is running. So the monitor can "sniffer" the IP packets that are sent to growatt. A description how to reroute data can be found at an other page in the wiki.

Grott is written in python (Python3) and uses MQTT for sending out (json) messages.


MQTT python paho-mqtt library (https://www.eclipse.org/paho/clients/python/docs/) and the requests library are needed to run Grott.
You have to install these first:
  • sudo pip3 install paho-mqtt
  • sudo pip3 install requests

MQTT message are sent to a mqtt broker. I use mosquitto (https://mosquitto.org/) that is installed at the same Raspberry PI were Grott is running.

In my (raspberry pi) environment Grott is installed in the /home/pi/growatt directory. Copy grott*.py and grott.ini files into this directory.

Grott.ini needs to be modified to use it for your inverter. For more detailed information on the parameters to be used in grott.ini or startup see configuration page in the wiki:

Grott is using socket to sniffer the data. Root / sudo rights are needed to run Grott.py

The most simple way of starting grott in the foreground is:

cd /home/pi/growatt

  • (sudo) python3 grott.py

**sudo only needed if mode = sniff

If more information is needed on how grott is performing use the verbose commandline option (-v --verbose)

  • sudo python3 grott.py -v

Help on is available via the -h --help command line option.

  • sudo python3 grott.py -h

Help output: