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
- Clone or download the repository.
- Enter the directory and run:
PYTHONPATH=. ./bin/sunnyportal2pvoutput --dry-run sunnyportal.config - Enter the requested information and verify that the script is able to connect to Sunny Portal.
- The information is saved in sunnyportal.config and can be edited/deleted if you misstype anything.
- 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.
- 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.2.tar.gz
(7.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sunnyportal_py-0.0.2.tar.gz.
File metadata
- Download URL: sunnyportal_py-0.0.2.tar.gz
- Upload date:
- Size: 7.4 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
53065e4731cd6a86df320cd49d08700ed348c0a968d37f0537fc99a170e0c421
|
|
| MD5 |
9f65b94441c9f3dd7ff51cb9113c572b
|
|
| BLAKE2b-256 |
3b6588f8ea8d95e9745120b3cd16d043f647aa32adff52c5573f06e9d4641bd5
|
File details
Details for the file sunnyportal_py-0.0.2-py3-none-any.whl.
File metadata
- Download URL: sunnyportal_py-0.0.2-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8b417dade02fa52d1e6c2b0d1c15a535c30ef5012ff09106185cb5721b33ae02
|
|
| MD5 |
01055ed398ed492587618337fa8c00a6
|
|
| BLAKE2b-256 |
882153c48851be2060c94ce7d978b3ab8e5e8e05141a50a3d84c1a4a356d0fff
|