Skip to main content

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.

Source Distribution

sunnyportal_py-0.0.3.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sunnyportal_py-0.0.3-py3-none-any.whl (20.8 kB view details)

Uploaded Python 3

File details

Details for the file sunnyportal_py-0.0.3.tar.gz.

File metadata

  • Download URL: sunnyportal_py-0.0.3.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.7.3

File hashes

Hashes for sunnyportal_py-0.0.3.tar.gz
Algorithm Hash digest
SHA256 71719633504b060a84d01db440b2d9fc5779ae1f348ae62ae887497d23ddc8a2
MD5 7156c19f8773f7c1c260d01c0c15c35e
BLAKE2b-256 cc90a583d2273b10e24635c142e92248abbce75a992c8f582d0351f55c8b1960

See more details on using hashes here.

File details

Details for the file sunnyportal_py-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: sunnyportal_py-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 20.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.7.3

File hashes

Hashes for sunnyportal_py-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2936ed7bd3c874799672aeba7715a1495bcedb4ff8390ec0870835c210c267a0
MD5 49d77f8583d55c2f7bc956ae5cf58df8
BLAKE2b-256 c3e767eb73b08e05e5f3c74f50a986fce8afaac4273591e5e8f30595120c2bf3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page