Skip to main content

SunWeg

Python build Python tests Python coverage Python fake8

Python lib for WEG solar energy platform, SunWEG.net

Usage

Retrieve token

You need to use devtools from your browser to retrieve the token. In most of them, you can open devtools by pressing F12. Inside the network tab, you need to check the preserve logs and then do a login.

You can find the token in the request header of various XHR requests, for example: Devtools with a request with a token

It will be available in the X-Auth-Token-Update header.

Code sample

from sunweg.api import APIHelper

api = APIHelper(token='your token here')
plants = api.listPlants()
for plant in plants:
    print(plant)
    for inverter in plant.inverters:
        print(inverter)
        for phase in inverter.phases:
            print(phase)
        for mppt in inverter.mppts:
            print(mppt)
            for string in mppt.strings:
                print(string)

Documentation

Check the DOCs for API documentation.

Contribute

Feel free to send issues and pull requests.

Release files for sunweg 3.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sunweg 3.1.0
File Size Uploaded
sunweg-3.1.0.tar.gz 12.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sunweg 3.1.0
File Interpreter ABI Platform
sunweg-3.1.0-py3-none-any.whl Python 3 none any Details

Total release size:22.5 kB

Release files / sunweg-3.1.0.tar.gz

Download URL sunweg-3.1.0.tar.gz
Size 12.1 kB
Tags Source
SHA-256 checksum
How to use checksums
a7bf7918323b2ae7a1defeb46c8903cfa1469ea597019e0f21100916cad7cdb1
BLAKE2b-256 checksum
How to use checksums
d321499b51c2edf4921f391ff90d0484ac4d40d8d06fe0a29865f506acc87fae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.20

Release files / sunweg-3.1.0-py3-none-any.whl

Download URL sunweg-3.1.0-py3-none-any.whl
Size 10.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6f83b8584403bb10ca6d9559f0727ae892ab4283f3f4d21357ee9a8ac701c643
BLAKE2b-256 checksum
How to use checksums
dabd12e3ff8eb6312571768e15299229682a0f54c9d64c7cf1d60973f31710eb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.20

Release history Release notifications | RSS feed

This release

3.1.0 This release

2 release files

3.0.2

2 release files

3.0.1

2 release files

3.0.0

2 release files

2.1.1

2 release files

2.1.0

2 release files

2.0.3

2 release files

2.0.2

2 release files

2.0.1

2 release files

2.0.0

2 release files

1.0.0

2 release files

0.0.11

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page