open-meteo-solar-forecast


Nameopen-meteo-solar-forecast JSON
Version 0.1.14 PyPI version JSON
download
home_pagehttps://github.com/rany2/open-meteo-solar-forecast
SummaryAsynchronous Python client for getting forecast solar information
upload_time2024-06-09 16:50:49
maintainerRany
docs_urlNone
authorRany
requires_python<4.0,>=3.11
licenseMIT
keywords forecast solar power energy api async client
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <!--
*** To avoid retyping too much info. Do a search and replace for the following:
*** github_username, repo_name
-->

## Python API fetching Solarpanels forecast information.

## About

With this python library you can request data from [Open-Meteo](https://open-meteo.com/)
and see what your solar panels may produce in the coming days.

## Installation

```bash
pip install open-meteo-solar-forecast
```

## Data

This library returns a lot of different data, based on the API:

### Energy

- Total Estimated Energy Production - today/tomorrow (kWh)
- Estimated Energy Production - This Hour (kWh)
- Estimated Energy Production - Next Hour (kWh)
- Estimated Energy Production - Remaining today (kWh)

### Power

- Highest Power Peak Time - Today (datetime)
- Highest Power Peak Time - Tomorrow (datetime)
- Estimated Power Production - Now (W)
- Estimated Power Production - Next Hour (W)
- Estimated Power Production - In +6 Hours (W)
- Estimated Power Production - In +12 Hours (W)
- Estimated Power Production - In +24 Hours (W)

### API Info

- Timezone
- Rate limit
- Account type
- Rate remaining

### Validation

- API key (bool)
- Plane (bool)

## Example

```python
import asyncio

from open_meteo_solar_forecast import OpenMeteoSolarForecast


async def main() -> None:
    """Show example on how to use the library."""
    async with OpenMeteoSolarForecast(
        latitude=52.16,
        longitude=4.47,
        declination=20,
        azimuth=10,
        kwp=2.160,
    ) as forecast:
        estimate = await forecast.estimate()
        print(estimate)


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

| Parameter | value type | Description |
| --------- | ---------- | ----------- |
| `base_url` | `str` | The base URL of the API (optional) |
| `api_key` | `str` | Your API key (optional) |
| `declination` | `int` | The tilt of the solar panels (required) |
| `azimuth` | `int` | The direction the solar panels are facing (required) |
| `kwp` | `float` | The size of the solar panels in kWp (required) |

## Contributing

Would you like to contribute to the development of this project? Then read the prepared [contribution guidelines](CONTRIBUTING.md) and go ahead!

Thank you for being involved! :heart_eyes:

## Setting up development environment

This Python project relies on [Poetry][poetry] as its dependency manager,
providing comprehensive management and control over project dependencies.

You need at least:

- Python 3.11+
- [Poetry][poetry-install]

Install all packages, including all development requirements:

```bash
poetry install
```

Poetry creates by default an virtual environment where it installs all
necessary pip packages, to enter or exit the venv run the following commands:

```bash
poetry shell
exit
```

## License

MIT License

Copyright (c) 2021-2024 Klaas Schoute  
Copyright (c) 2024 Rany

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

[poetry-install]: https://python-poetry.org/docs/#installation
[poetry]: https://python-poetry.org

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/rany2/open-meteo-solar-forecast",
    "name": "open-meteo-solar-forecast",
    "maintainer": "Rany",
    "docs_url": null,
    "requires_python": "<4.0,>=3.11",
    "maintainer_email": "rany@riseup.net",
    "keywords": "forecast, solar, power, energy, api, async, client",
    "author": "Rany",
    "author_email": "rany@riseup.net",
    "download_url": "https://files.pythonhosted.org/packages/26/10/89209a739ce25cd13ffd46859902c1b50ffde9b88d98db2a89a1837b1c1b/open_meteo_solar_forecast-0.1.14.tar.gz",
    "platform": null,
    "description": "<!--\n*** To avoid retyping too much info. Do a search and replace for the following:\n*** github_username, repo_name\n-->\n\n## Python API fetching Solarpanels forecast information.\n\n## About\n\nWith this python library you can request data from [Open-Meteo](https://open-meteo.com/)\nand see what your solar panels may produce in the coming days.\n\n## Installation\n\n```bash\npip install open-meteo-solar-forecast\n```\n\n## Data\n\nThis library returns a lot of different data, based on the API:\n\n### Energy\n\n- Total Estimated Energy Production - today/tomorrow (kWh)\n- Estimated Energy Production - This Hour (kWh)\n- Estimated Energy Production - Next Hour (kWh)\n- Estimated Energy Production - Remaining today (kWh)\n\n### Power\n\n- Highest Power Peak Time - Today (datetime)\n- Highest Power Peak Time - Tomorrow (datetime)\n- Estimated Power Production - Now (W)\n- Estimated Power Production - Next Hour (W)\n- Estimated Power Production - In +6 Hours (W)\n- Estimated Power Production - In +12 Hours (W)\n- Estimated Power Production - In +24 Hours (W)\n\n### API Info\n\n- Timezone\n- Rate limit\n- Account type\n- Rate remaining\n\n### Validation\n\n- API key (bool)\n- Plane (bool)\n\n## Example\n\n```python\nimport asyncio\n\nfrom open_meteo_solar_forecast import OpenMeteoSolarForecast\n\n\nasync def main() -> None:\n    \"\"\"Show example on how to use the library.\"\"\"\n    async with OpenMeteoSolarForecast(\n        latitude=52.16,\n        longitude=4.47,\n        declination=20,\n        azimuth=10,\n        kwp=2.160,\n    ) as forecast:\n        estimate = await forecast.estimate()\n        print(estimate)\n\n\nif __name__ == \"__main__\":\n    asyncio.run(main())\n```\n\n| Parameter | value type | Description |\n| --------- | ---------- | ----------- |\n| `base_url` | `str` | The base URL of the API (optional) |\n| `api_key` | `str` | Your API key (optional) |\n| `declination` | `int` | The tilt of the solar panels (required) |\n| `azimuth` | `int` | The direction the solar panels are facing (required) |\n| `kwp` | `float` | The size of the solar panels in kWp (required) |\n\n## Contributing\n\nWould you like to contribute to the development of this project? Then read the prepared [contribution guidelines](CONTRIBUTING.md) and go ahead!\n\nThank you for being involved! :heart_eyes:\n\n## Setting up development environment\n\nThis Python project relies on [Poetry][poetry] as its dependency manager,\nproviding comprehensive management and control over project dependencies.\n\nYou need at least:\n\n- Python 3.11+\n- [Poetry][poetry-install]\n\nInstall all packages, including all development requirements:\n\n```bash\npoetry install\n```\n\nPoetry creates by default an virtual environment where it installs all\nnecessary pip packages, to enter or exit the venv run the following commands:\n\n```bash\npoetry shell\nexit\n```\n\n## License\n\nMIT License\n\nCopyright (c) 2021-2024 Klaas Schoute  \nCopyright (c) 2024 Rany\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n[poetry-install]: https://python-poetry.org/docs/#installation\n[poetry]: https://python-poetry.org\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Asynchronous Python client for getting forecast solar information",
    "version": "0.1.14",
    "project_urls": {
        "Bug Tracker": "https://github.com/rany2/open-meteo-solar-forecast/issues",
        "Changelog": "https://github.com/rany2/open-meteo-solar-forecast/releases",
        "Documentation": "https://github.com/rany2/open-meteo-solar-forecast",
        "Homepage": "https://github.com/rany2/open-meteo-solar-forecast",
        "Repository": "https://github.com/rany2/open-meteo-solar-forecast"
    },
    "split_keywords": [
        "forecast",
        " solar",
        " power",
        " energy",
        " api",
        " async",
        " client"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ee781fb600d56e81c26db20c6eec916e0ae69288fc9419b03d347307b69c4e9d",
                "md5": "f1ec2fd2b9d1c1def69c08ce201d6991",
                "sha256": "19bee2c1e605db2ead3ee51b2cf6903e8f63bd7ee6f320ed0135f2bc784745cc"
            },
            "downloads": -1,
            "filename": "open_meteo_solar_forecast-0.1.14-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "f1ec2fd2b9d1c1def69c08ce201d6991",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.11",
            "size": 10419,
            "upload_time": "2024-06-09T16:50:48",
            "upload_time_iso_8601": "2024-06-09T16:50:48.101491Z",
            "url": "https://files.pythonhosted.org/packages/ee/78/1fb600d56e81c26db20c6eec916e0ae69288fc9419b03d347307b69c4e9d/open_meteo_solar_forecast-0.1.14-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "261089209a739ce25cd13ffd46859902c1b50ffde9b88d98db2a89a1837b1c1b",
                "md5": "c83edc17914d1e904bd91780dffbb91a",
                "sha256": "73536a0ff1354a379edac1e7d8869e7727ebdfd8e7909b5d35835e02e4d3e5e6"
            },
            "downloads": -1,
            "filename": "open_meteo_solar_forecast-0.1.14.tar.gz",
            "has_sig": false,
            "md5_digest": "c83edc17914d1e904bd91780dffbb91a",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.11",
            "size": 10314,
            "upload_time": "2024-06-09T16:50:49",
            "upload_time_iso_8601": "2024-06-09T16:50:49.463697Z",
            "url": "https://files.pythonhosted.org/packages/26/10/89209a739ce25cd13ffd46859902c1b50ffde9b88d98db2a89a1837b1c1b/open_meteo_solar_forecast-0.1.14.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-06-09 16:50:49",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "rany2",
    "github_project": "open-meteo-solar-forecast",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "open-meteo-solar-forecast"
}
        
Elapsed time: 0.26459s