solidfox / solidfox/sigenergy-cloud
aus please
Open
Beginner friendly
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 2
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
Any chance of adding aus to regions
regions.REGION_BASE_URLS["aus"] = "https://api-aus.sigencloud.com/"
This worked for me in Sydney Australia:
#!/usr/bin/env python3
"""Print the current Sigenergy energy flow to stdout (with Australia support)."""
import asyncio
import json
import os
import sys
from sigenergy_cloud import SigenergyCloudClient, regions
# The library only ships eu/cn/apac/us, so register Australia ourselves.
# Trailing slash is required — the client appends paths directly.
regions.REGION_BASE_URLS["aus"] = "https://api-aus.sigencloud.com/"
async def main():
email = os.environ.get("SIGENERGY_EMAIL")
password = os.environ.get("SIGENERGY_PASSWORD")
if not email or not password:
print("Set SIGENERGY_EMAIL and SIGENERGY_PASSWORD environment variables.",
file=sys.stderr)
sys.exit(1)
client = SigenergyCloudClient(email, password, region="aus")
try:
await client.connect()
flow = await client.energy_flow()
print(json.dumps(flow, indent=2, default=str))
finally:
await client.close()
if __name__ == "__main__":
asyncio.run(main())
tia....bleep1
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the regions module and the REGION_BASE_URLS mapping referenced in the issue. Add the Australia endpoint with its required trailing slash, then check the existing client region handling and verify that connecting with region="aus" can reach the API and retrieve energy-flow data.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 74/100