Skip to main content

Asynchronous Python API for Solarman devices

Project description

Solarman

Python client for interacting with Solarman devices over local network.

Installation

pip install solarman-opendata

Usage

Basic Example

import asyncio
import aiohttp

from solarman_opendata.solarman import Solarman

async def main():
    host = "190.160.3.43"
    port = 8080

    async with aiohttp.ClientSession() as session:
        client = Solarman(
            session=session,
            host=host,
            port=port
        )

        data = await client.fetch_data()
        print(data)

if __name__ == "__main__":
    asyncio.run(main())

Contributing

Contributions are welcome! Please open an issue or submit a pull request.

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

solarman_opendata-0.0.3.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

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

solarman_opendata-0.0.3-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: solarman_opendata-0.0.3.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for solarman_opendata-0.0.3.tar.gz
Algorithm Hash digest
SHA256 20ed1af55411e6006eb43d9e3ea653e281ab18a525de2a6b6724a1bd6ec4deff
MD5 554c91c5fb345d556933b28e73c63947
BLAKE2b-256 125cfaf369ac6c3fafa23a723f9850f4269f6be4f862c524e4668bd7d9a45923

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for solarman_opendata-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4f10808956f7ce4c1065e87b5349b03fc9884f2f0286394ab635564940951cb4
MD5 30ffe16d4ef130160fe559a2a2174205
BLAKE2b-256 c0588e02e9975184c8850ea0de9eb5c9736745978cf0a7b3b7f2a1b80c16abe3

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