Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

A Python client for SMA sunny portal

Project description

sunnyportal-py

Python module to access PV systems in Sunny Portal.

sunnyportal2pvoutput

The script sunnyportal2pvoutput can be used to send data to PVOutput. It uses a config file to store the credentials for Sunny Portal and the API Key and System Id for PVOutput.

How to run

  1. Clone or download the repository.
  2. Enter the directory and run: PYTHONPATH=. ./bin/sunnyportal2pvoutput --dry-run sunnyportal.config
  3. Enter the requested information and verify that the script is able to connect to Sunny Portal.
  4. The information is saved in sunnyportal.config and can be edited/deleted if you misstype anything.
  5. Once it works, replace --dry-run with e.g. --output to upload the last seven days output data to pvoutput or --status to upload data for the current day.
  6. Add --quiet to silence the output.
$ PYTHONPATH=. ./bin/sunnyportal2pvoutput sunnyportal.config --help
usage: sunnyportal2pvoutput [-h] [-s] [-o] [-q] [-n] config

Connect Sunny Portal to PVoutput.org

positional arguments:
  config         Configuration file to use

optional arguments:
  -h, --help     show this help message and exit
  -s, --status   Report current status
  -o, --output   Report last output(s)
  -q, --quiet    Silence output
  -n, --dry-run  Don't send any data

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for sunnyportal-py, version 0.0.4
Filename, size File type Python version Upload date Hashes
Filename, size sunnyportal_py-0.0.4-py3-none-any.whl (20.9 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size sunnyportal_py-0.0.4.tar.gz (7.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page