open-meteo-solar-forecast


Nameopen-meteo-solar-forecast JSON
Version 0.1.18 PyPI version JSON
download
home_pagehttps://github.com/rany2/open-meteo-solar-forecast
SummaryAsynchronous Python client for getting forecast solar information
upload_time2024-08-19 15:53:22
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/2c/03/84c6c0c4475c3547583a50141bff5342709ce302e5d2ed269a2bf98e5f27/open_meteo_solar_forecast-0.1.18.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.18",
    "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": "517161c7b512a8928ace97e61cb842b12016f521df1c5a9a01a335cf0ae1128f",
                "md5": "049bd87cdfe3ac2353147ef8a26e373a",
                "sha256": "cf68b8b042d6d8abfd990fd043050adc66fa12dad0f69fff58fa2cbfd8529720"
            },
            "downloads": -1,
            "filename": "open_meteo_solar_forecast-0.1.18-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "049bd87cdfe3ac2353147ef8a26e373a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.11",
            "size": 11625,
            "upload_time": "2024-08-19T15:53:21",
            "upload_time_iso_8601": "2024-08-19T15:53:21.338291Z",
            "url": "https://files.pythonhosted.org/packages/51/71/61c7b512a8928ace97e61cb842b12016f521df1c5a9a01a335cf0ae1128f/open_meteo_solar_forecast-0.1.18-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2c0384c6c0c4475c3547583a50141bff5342709ce302e5d2ed269a2bf98e5f27",
                "md5": "174d1c40a4599667743d1ff66b33a40f",
                "sha256": "6bd225efb44de4693fd28f8ddb152e851a3580bf0da54b8bd820777c1edba70e"
            },
            "downloads": -1,
            "filename": "open_meteo_solar_forecast-0.1.18.tar.gz",
            "has_sig": false,
            "md5_digest": "174d1c40a4599667743d1ff66b33a40f",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.11",
            "size": 11665,
            "upload_time": "2024-08-19T15:53:22",
            "upload_time_iso_8601": "2024-08-19T15:53:22.981091Z",
            "url": "https://files.pythonhosted.org/packages/2c/03/84c6c0c4475c3547583a50141bff5342709ce302e5d2ed269a2bf98e5f27/open_meteo_solar_forecast-0.1.18.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-08-19 15:53:22",
    "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.41167s