kellerza / pysma

Async library for SMA Solar's WebConnect interface
MIT License
59 stars 51 forks source link

Logging in with pysma example #36

Closed pybouvy closed 4 years ago

pybouvy commented 4 years ago

Hello. First of all thanks for this library. I'm a basic user of Python (thus not an expert). I'm trying to run the example provided here but I don't find where I have to define the IP, password and login of my SMA inverter. Excuse-me for this basic question but I'm trying for hours without any results and still get this message: usage: SMA retrieve.py [-h] ip user password SMA retrieve.py: error: the following arguments are required: ip, user, password

Should I add some variable definition in the header like this? ip = "192.168.1.160" user = "istl" password = "1234"

Anyway, it doesn't seem to work.

Thanks by advance for reply.

pybouvy commented 4 years ago

OK. I've found. We have to use the program with a command line followed by the parameters like eg. python3 example.py http://192.168.1.160 installer 1234

pybouvy commented 4 years ago

See post above.