From 51dd63003c3ba4534395cfba0984a21f6323ce6a Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Fri, 5 May 2023 10:11:25 +0000 Subject: automatic import of python-pysma --- python-pysma.spec | 246 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 246 insertions(+) create mode 100644 python-pysma.spec (limited to 'python-pysma.spec') diff --git a/python-pysma.spec b/python-pysma.spec new file mode 100644 index 0000000..f1cd266 --- /dev/null +++ b/python-pysma.spec @@ -0,0 +1,246 @@ +%global _empty_manifest_terminate_build 0 +Name: python-pysma +Version: 0.7.4 +Release: 1 +Summary: Library to interface an SMA Solar WebConnect module +License: MIT +URL: https://github.com/kellerza/pysma +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/09/04/83f20100d81951a7627f28abd87873589fdc35da64f35c6afccd400a239c/pysma-0.7.4.tar.gz +BuildArch: noarch + +Requires: python3-aiohttp +Requires: python3-attrs +Requires: python3-jmespath + +%description +# pysma library + +[![Workflow Status](https://github.com/kellerza/pysma/actions/workflows/main.yml/badge.svg?branch=master)](https://github.com/kellerza/pysma/actions) +[![Codecov](https://codecov.io/gh/kellerza/pysma/branch/master/graph/badge.svg)](https://codecov.io/gh/kellerza/pysma) +[![Documentation Status](https://readthedocs.org/projects/pysma/badge/?version=latest)](https://pysma.readthedocs.io/en/latest/?badge=latest) + +SMA Webconnect library for Python 3. The library was created +to integrate SMA inverters with HomeAssistant + +See for more information on the SMA solar +inverters + +Other SMA interfaces include [SBFspot](https://github.com/SBFspot/SBFspot/) and a +Python [adaptation](https://github.com/TD22057/T-Home/) + +## Example usage + +See [example.py](./example.py) for a basic usage and tests + +# Home Assistant + +The Home Assistant sma sensor documentation can be found +[here](https://www.home-assistant.io/components/sma) + +> --- +> +> **This library uses Webconnect.** ~Modbus~ is not supported +> +> **If you can access your SMA via your browser, this might work for you.** +> +> --- + +If you access your SMA WebConnect via `https://` you should set both +`ssl: true` and `verify_ssl: false`. + +Daily usage is not always available from the SMA WebConnect interface. +It is possible to get around this by using a +[utility meter](https://www.home-assistant.io/components/utility_meter) +or more recently from the Energy management feature in Home Assistant + +### How to debug this addon + +1. Ensure you can access your SMA from your browser + +To enable detailed logging in Home Assistant, you can add the following to your configuration + +```yaml +logger: + default: info + logs: + homeassistant.components.sma: debug + pysma: debug +``` + +## Energy Meter + +This library can read the second version of the emnergy meter, there is a seperate Home Assistant OS Addon that could also read older Energy Meters directly. See [Energy Meter](https://github.com/kellerza/hassio-sma-em) + + +%package -n python3-pysma +Summary: Library to interface an SMA Solar WebConnect module +Provides: python-pysma +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-pysma +# pysma library + +[![Workflow Status](https://github.com/kellerza/pysma/actions/workflows/main.yml/badge.svg?branch=master)](https://github.com/kellerza/pysma/actions) +[![Codecov](https://codecov.io/gh/kellerza/pysma/branch/master/graph/badge.svg)](https://codecov.io/gh/kellerza/pysma) +[![Documentation Status](https://readthedocs.org/projects/pysma/badge/?version=latest)](https://pysma.readthedocs.io/en/latest/?badge=latest) + +SMA Webconnect library for Python 3. The library was created +to integrate SMA inverters with HomeAssistant + +See for more information on the SMA solar +inverters + +Other SMA interfaces include [SBFspot](https://github.com/SBFspot/SBFspot/) and a +Python [adaptation](https://github.com/TD22057/T-Home/) + +## Example usage + +See [example.py](./example.py) for a basic usage and tests + +# Home Assistant + +The Home Assistant sma sensor documentation can be found +[here](https://www.home-assistant.io/components/sma) + +> --- +> +> **This library uses Webconnect.** ~Modbus~ is not supported +> +> **If you can access your SMA via your browser, this might work for you.** +> +> --- + +If you access your SMA WebConnect via `https://` you should set both +`ssl: true` and `verify_ssl: false`. + +Daily usage is not always available from the SMA WebConnect interface. +It is possible to get around this by using a +[utility meter](https://www.home-assistant.io/components/utility_meter) +or more recently from the Energy management feature in Home Assistant + +### How to debug this addon + +1. Ensure you can access your SMA from your browser + +To enable detailed logging in Home Assistant, you can add the following to your configuration + +```yaml +logger: + default: info + logs: + homeassistant.components.sma: debug + pysma: debug +``` + +## Energy Meter + +This library can read the second version of the emnergy meter, there is a seperate Home Assistant OS Addon that could also read older Energy Meters directly. See [Energy Meter](https://github.com/kellerza/hassio-sma-em) + + +%package help +Summary: Development documents and examples for pysma +Provides: python3-pysma-doc +%description help +# pysma library + +[![Workflow Status](https://github.com/kellerza/pysma/actions/workflows/main.yml/badge.svg?branch=master)](https://github.com/kellerza/pysma/actions) +[![Codecov](https://codecov.io/gh/kellerza/pysma/branch/master/graph/badge.svg)](https://codecov.io/gh/kellerza/pysma) +[![Documentation Status](https://readthedocs.org/projects/pysma/badge/?version=latest)](https://pysma.readthedocs.io/en/latest/?badge=latest) + +SMA Webconnect library for Python 3. The library was created +to integrate SMA inverters with HomeAssistant + +See for more information on the SMA solar +inverters + +Other SMA interfaces include [SBFspot](https://github.com/SBFspot/SBFspot/) and a +Python [adaptation](https://github.com/TD22057/T-Home/) + +## Example usage + +See [example.py](./example.py) for a basic usage and tests + +# Home Assistant + +The Home Assistant sma sensor documentation can be found +[here](https://www.home-assistant.io/components/sma) + +> --- +> +> **This library uses Webconnect.** ~Modbus~ is not supported +> +> **If you can access your SMA via your browser, this might work for you.** +> +> --- + +If you access your SMA WebConnect via `https://` you should set both +`ssl: true` and `verify_ssl: false`. + +Daily usage is not always available from the SMA WebConnect interface. +It is possible to get around this by using a +[utility meter](https://www.home-assistant.io/components/utility_meter) +or more recently from the Energy management feature in Home Assistant + +### How to debug this addon + +1. Ensure you can access your SMA from your browser + +To enable detailed logging in Home Assistant, you can add the following to your configuration + +```yaml +logger: + default: info + logs: + homeassistant.components.sma: debug + pysma: debug +``` + +## Energy Meter + +This library can read the second version of the emnergy meter, there is a seperate Home Assistant OS Addon that could also read older Energy Meters directly. See [Energy Meter](https://github.com/kellerza/hassio-sma-em) + + +%prep +%autosetup -n pysma-0.7.4 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-pysma -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri May 05 2023 Python_Bot - 0.7.4-1 +- Package Spec generated -- cgit v1.2.3