/sma-node

SMA API client

Primary LanguageJavaScript

SMA API client for NodeJS

Configuration

SMA_URL environment variable

Accepts URL to inverter unit, it should contain protocol and IP or hostname. No default value.

SMA_URL=https://192.168.0.2

SMA_USER environment variable

Accepts inverter API user name. This can be either adm or usr. Defaults to usr.

SMA_USER=usr

SMA_PASS environment variable

Accepts inverter API user password. No default value.

SMA_PASS=MyPassWord!23

INTERVAL environment variable

Accepts number of seconds between each probe. Defaults to 300 seconds.

INTERVAL=300

DESTINATION environment variable

Accepts either webhook URL or path to log file. Defaults to /var/log/sma.log seconds.

DESTINATION=https://www.example.com/sma/webhook
DESTINATION=/var/log/sma.log