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
from solarman_opendata import Solarman

async def main():
    async with aiohttp.ClientSession() as session:
        # Create API client
        api = Solarman(
            session=session,
            host="192.168.1.100"  # Device IP
        )
        
        # Get real-time data
        data = await api.fetch_data()
        print(f"Current Power: {data.get('power', 0)}W")
        print(f"Voltage: {data.get('voltage', 0)}V")
        

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.1.tar.gz (10.2 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.1-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for solarman_opendata-0.0.1.tar.gz
Algorithm Hash digest
SHA256 f0bd845d89614fd0e2d9fdc67ae611bbf22e90d77efa39b126b6402d3176b62e
MD5 368f651a01372287e46b3d4026e92f30
BLAKE2b-256 d3e65300897fe9af912013551a405a88c4174984949c15de1e8a2cad2412b9b9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for solarman_opendata-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 60584dbe9288cd709bf09e6a1b6458c9bde655362806d1045e7415748cc4e152
MD5 94f19077de7994d16d035e7a8eb6a23a
BLAKE2b-256 b27fc576e4b3a36192758ff9eb67f109849f6596b0276d46c8c912aee1a8a17f

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