Asynchronous Python client for getting forecast solar information
Python API fetching Solarpanels forecast information.
With this python library you can request data from forecast.solar and see what your solar panels may produce in the coming days.
pip install forecast-solar
This library returns a lot of different data, based on the API:
- 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)
- 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)
- Rate limit
- Account type
- Rate remaining
import asyncio from forecast_solar import ForecastSolar async def main() -> None: """Show example on how to use the library.""" async with ForecastSolar( api_key="YOUR_API_KEY", latitude=52.16, longitude=4.47, declination=20, azimuth=10, kwp=2.160, damping=0, damping_morning=0.5, damping_evening=0.5, horizon="0,0,0,10,10,20,20,30,30", ) as forecast: estimate = await forecast.estimate() print(estimate) if __name__ == "__main__": asyncio.run(main())
||Your API key from forecast.solar (optional)|
||The tilt of the solar panels (required)|
||The direction the solar panels are facing (required)|
||The size of the solar panels in kWp (required)|
||The damping of the solar panels, read this for more information (optional)|
||The damping of the solar panels in the morning (optional)|
||The damping of the solar panels in the evening (optional)|
||The maximum power of your inverter in kilo watts (optional)|
||A list of comma separated degrees values, read this for more information (optional)|
Would you like to contribute to the development of this project? Then read the prepared contribution guidelines and go ahead!
Thank you for being involved! :heart_eyes:
Copyright (c) 2021-2023 Klaas Schoute
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.
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Hashes for forecast_solar-3.0.0-py3-none-any.whl