From nobody Sun Jul 03 17:06:23 2022 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 2BF418A142B; Sun, 3 Jul 2022 17:06:24 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Lbb1r0jdVz4llY; Sun, 3 Jul 2022 17:06:24 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1656867984; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=FAi/oHJhhU7+8xhcJz5NNAD24zQkmNMTbQx6gw4tP98=; b=BIIe+eESPkZZd2z6jr/ub1hVD8SW99so5Fng7LrmyUUdw0IW9nvSW60U8Cs5PgISy6V7va o8SV9a6TbMBh79MUB4ei5PYPw0rz37ZEQp0RqJh5ivJUWtMlqRBljjb1K6DwkupArENQBJ rEANlFBeqd1Pi5wjj7Z9+GIwTTd90F9G/8kt9Viyxjw8VZE6khQSSPT+j3LN8d+p7j28/E airv9rtDsi9M6WAf9SSx9GW8oElUsPVAFAZSgeEDS3q3H97steHlFeAMxY+eEILjkWBrzR 2FaK6SkcVW1FdLVEef5Z+FzgXQb4O7nohCL6F/4e6iQK46JYT8T7iPLvEOxJBw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id EC74428520; Sun, 3 Jul 2022 17:06:23 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 263H6NPp028605; Sun, 3 Jul 2022 17:06:23 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 263H6Nd3028604; Sun, 3 Jul 2022 17:06:23 GMT (envelope-from git) Date: Sun, 3 Jul 2022 17:06:23 GMT Message-Id: <202207031706.263H6Nd3028604@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Ryan Steinmetz Subject: git: 8284bfddcfd4 - main - net-mgmt/py-pypowerwall: new port List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: zi X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8284bfddcfd4fee2ce2c9c1b53544915f3346001 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1656867984; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=FAi/oHJhhU7+8xhcJz5NNAD24zQkmNMTbQx6gw4tP98=; b=HLlc3p8axuOY3lM+o4Y1f1kreuf2LkzJbkRjT30WwOnzOGXbGDmTVEY2niEo0DbkG4NWGW BCQHbo26Q9SiWhAfB6fR/T6RzMYgl5QX+IeBDapvRhK0hvny8+clCDkui2yeEC8bWQCIYg oicMZGMsHzScr2oojYO52LgLm51NkhBpYeKGlI08Pzi5AIGcqSLmHTlYFfGWNXjfo/3Z3t kszwjw/z38d3LqSYRvkyl3RCezRprUYpUaLuQalsUVpnaX6RGua914t7Lb17iy9UVb48ba IeGxXHlN2+6+x6ce578Rj3IQiex7SCuZOxuFDm1N+9PMcwGeR6kQabR8a7oGFw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1656867984; a=rsa-sha256; cv=none; b=sZiwjlkH//j+kKS2ejB01MaF1RDouRzWaJLTeFSPNRjKF5lnRFKFbogGDTTYMqRHI2+oIt L7pDnFcDP82YR9yuM/YMVpg13xD0fiI/mWik9rqRVbayLVjZxrVrE8JOfPO+t+kaJihxoO dj1pOvlsLslgwMudK0H/nNIqbIDk885HzPn9cjCcY0xqzgYGZRPxJbO+HmbDPLj6bWORmU A7kQpycGnGFr5ZT7RhnCJVZ9flc5Qx6+atpGLPMCYea5ajXEwwdb+tf3mBnZyiJba7JQGH ROOYaITMu1xwgwsbZgKMAQEeiuGnhaeg7oVX9n0XXz3c8RgVZz6gXkSoBi8fkw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by zi: URL: https://cgit.FreeBSD.org/ports/commit/?id=8284bfddcfd4fee2ce2c9c1b53544915f3346001 commit 8284bfddcfd4fee2ce2c9c1b53544915f3346001 Author: Ryan Steinmetz AuthorDate: 2022-07-03 17:04:17 +0000 Commit: Ryan Steinmetz CommitDate: 2022-07-03 17:05:57 +0000 net-mgmt/py-pypowerwall: new port This python module can be used to monitor and control Tesla Energy Powerwalls. It uses a single class (Powerwall) and simple functions to fetch energy data and poll API endpoints on the Gateway. pyPowerwall will cache the authentication headers and API call responses to help reduce the number of calls made to the Gateway (useful if you are polling the Powerwall frequently for trending data). * Works with Tesla Energy Gateways - Powerwall and Powerwall+ * Simple access through easy to use functions using customer credentials * Will cache authentication to reduce load on Powerwall Gateway * Will cache responses to limit number of calls to Powerwall Gateway * Easy access to decoded binary device vitals * Provides solar string data for Powerwall+ systems WWW: https://github.com/jasonacox/pypowerwall --- net-mgmt/Makefile | 1 + net-mgmt/py-pypowerwall/Makefile | 31 +++++++++++++++++++++++++++++++ net-mgmt/py-pypowerwall/distinfo | 3 +++ net-mgmt/py-pypowerwall/pkg-descr | 16 ++++++++++++++++ 4 files changed, 51 insertions(+) diff --git a/net-mgmt/Makefile b/net-mgmt/Makefile index b6c14b4eeff2..e555a6d183fd 100644 --- a/net-mgmt/Makefile +++ b/net-mgmt/Makefile @@ -322,6 +322,7 @@ SUBDIR += py-pyeapi SUBDIR += py-pynetbox SUBDIR += py-pynxos + SUBDIR += py-pypowerwall SUBDIR += py-pysmi SUBDIR += py-pysnmp SUBDIR += py-pysnmp-mibs diff --git a/net-mgmt/py-pypowerwall/Makefile b/net-mgmt/py-pypowerwall/Makefile new file mode 100644 index 000000000000..4971dd2d7da8 --- /dev/null +++ b/net-mgmt/py-pypowerwall/Makefile @@ -0,0 +1,31 @@ +# Created by: Ryan Steinmetz + +PORTNAME= pypowerwall +PORTVERSION= 0.4.0 +DISTVERSIONPREFIX= v +CATEGORIES= net-mgmt python +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= zi@FreeBSD.org +COMMENT= Python interface for Tesla Powerwall and solar power data + +LICENSE= MIT + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}googleapis-common-protos>0:devel/py-googleapis-common-protos@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}requests>=2.21.0:www/py-requests@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}googleapis-common-protos>0:devel/py-googleapis-common-protos@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}requests>=2.21.0:www/py-requests@${PY_FLAVOR} + +USES= python:3.6+ +USE_PYTHON= autoplist distutils + +PLIST_FILES= ${EXAMPLESDIR}/server.py + +USE_GITHUB= yes +GH_ACCOUNT= jasonacox + +post-install: + ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + ${INSTALL_SCRIPT} ${WRKSRC}/proxy/server.py ${STAGEDIR}${EXAMPLESDIR} + +.include diff --git a/net-mgmt/py-pypowerwall/distinfo b/net-mgmt/py-pypowerwall/distinfo new file mode 100644 index 000000000000..0e31bf58a51d --- /dev/null +++ b/net-mgmt/py-pypowerwall/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1656865953 +SHA256 (jasonacox-pypowerwall-v0.4.0_GH0.tar.gz) = 08504bbf53c831eaba8bca585a2958ec8226fb6a64e2e95fa145fca471c9237a +SIZE (jasonacox-pypowerwall-v0.4.0_GH0.tar.gz) = 131316 diff --git a/net-mgmt/py-pypowerwall/pkg-descr b/net-mgmt/py-pypowerwall/pkg-descr new file mode 100644 index 000000000000..2fe25a75da85 --- /dev/null +++ b/net-mgmt/py-pypowerwall/pkg-descr @@ -0,0 +1,16 @@ +This python module can be used to monitor and control Tesla Energy Powerwalls. +It uses a single class (Powerwall) and simple functions to fetch energy data +and poll API endpoints on the Gateway. + +pyPowerwall will cache the authentication headers and API call responses to +help reduce the number of calls made to the Gateway (useful if you are +polling the Powerwall frequently for trending data). + +* Works with Tesla Energy Gateways - Powerwall and Powerwall+ +* Simple access through easy to use functions using customer credentials +* Will cache authentication to reduce load on Powerwall Gateway +* Will cache responses to limit number of calls to Powerwall Gateway +* Easy access to decoded binary device vitals +* Provides solar string data for Powerwall+ systems + +WWW: https://github.com/jasonacox/pypowerwall