From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id SF/rA8QJkWHtYgAAgWs5BA (envelope-from ) for ; Sun, 14 Nov 2021 14:06:12 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id CIY2O8MJkWEeGQAAbx9fmQ (envelope-from ) for ; Sun, 14 Nov 2021 13:06:11 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id AF2C335E46 for ; Sun, 14 Nov 2021 14:06:11 +0100 (CET) Received: from localhost ([::1]:52272 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mmFD0-0002vl-T6 for larch@yhetil.org; Sun, 14 Nov 2021 08:06:10 -0500 Received: from eggs.gnu.org ([209.51.188.92]:38048) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mmFCw-0002uM-Bo for guix-patches@gnu.org; Sun, 14 Nov 2021 08:06:06 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:37888) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mmFCu-0002IC-2v for guix-patches@gnu.org; Sun, 14 Nov 2021 08:06:06 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mmFCt-00052x-UJ for guix-patches@gnu.org; Sun, 14 Nov 2021 08:06:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH 09/11] gnu: Add node-openzwave-shared. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 14 Nov 2021 13:06:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51838 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51838@debbugs.gnu.org Cc: Philip McGrath Received: via spool by 51838-submit@debbugs.gnu.org id=B51838.163689511419284 (code B ref 51838); Sun, 14 Nov 2021 13:06:03 +0000 Received: (at 51838) by debbugs.gnu.org; 14 Nov 2021 13:05:14 +0000 Received: from localhost ([127.0.0.1]:49425 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mmFC5-00050p-Bj for submit@debbugs.gnu.org; Sun, 14 Nov 2021 08:05:13 -0500 Received: from mail-qt1-f176.google.com ([209.85.160.176]:41510) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mmFC3-0004zf-36 for 51838@debbugs.gnu.org; Sun, 14 Nov 2021 08:05:11 -0500 Received: by mail-qt1-f176.google.com with SMTP id v22so8366661qtx.8 for <51838@debbugs.gnu.org>; Sun, 14 Nov 2021 05:05:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philipmcgrath.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=kTreQd5w/4G329UIlhKNwBXTChGXK/RdArBW5+Q+OgE=; b=jx1OPHAsqqsEoPXPzgUZ6kd8czQUCoYIcD1E66etWoT3VmmSSR7B8jDFhqBKZZ++AE vs3P6lmiGHncJeP/Ymc5dWNeFbUnBiFSiMnS87SdtX71C2GTh1BY5vZobv2a9CToehj+ r1bxib5Qqr/5HFZOZWQ7oZTqgH7j/l3ne41p66XY7B7APcumCJej7EYLT34Vz5bgFj2S y1NxpWPNnzmIy+qRMb/M5bLrYJaoCfRtwj5psdGm6cMsYDY1HVQQGaK1VNFQ21uQ/CU0 EEatZt/U1/tBgsQu30HHGqq64dUfkISISlMFS9eOLTDZDZL6fHPaicuBVBiNDiZ8anE+ RJVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=kTreQd5w/4G329UIlhKNwBXTChGXK/RdArBW5+Q+OgE=; b=IyQ5j0AxfMBSE7SGNBiOX5ofEWALvSqVONq5CEsr2+QmGJLpnktyOgYVVxKQtX8PKJ /um/TAkK+l2dOvDsXb5vOP4RljgUQx5m4deqguv1pxZ9aJUsrfkFm874xu/VmX4eFwWI ZDrEg0/iszprL+1vzgBAe5cF2BHR9ZgU68Tuoem+uHzf4wms0YEQiwYdg1H9C4JkxT75 r+zxO+uJqnr00JJj3ntSiQzuCGCB8cFmygNZP6aPXKmHjg+HWDHWY6kyPYNs95DMH9B7 7ZMomfFiXXF16E293REfSL1CH+AwAby8IjFyEjgGsnAMFIZo+Lww110axJDfSxhsNO2a v4Rw== X-Gm-Message-State: AOAM532f9F1eucjuGFZx5Knt+RPyl+qaWgZ3i2VCFflxCeMTGP05HCSN 5hYuotRpyKnYwoxPbrn0YeM2goDEkKjolSFt X-Google-Smtp-Source: ABdhPJz32t7OPALqYz7e4Wt8nl/6268VCbemlyiUm2hKEJ6nHPuNIYFT6kVL0jbZro/qOXqy0tuijg== X-Received: by 2002:ac8:7fd6:: with SMTP id b22mr29825552qtk.26.1636895105610; Sun, 14 Nov 2021 05:05:05 -0800 (PST) Received: from localhost (c-73-125-89-242.hsd1.fl.comcast.net. [73.125.89.242]) by smtp.gmail.com with ESMTPSA id w10sm5861192qkp.121.2021.11.14.05.05.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 14 Nov 2021 05:05:05 -0800 (PST) From: Philip McGrath Date: Sun, 14 Nov 2021 08:04:07 -0500 Message-Id: <20211114130409.49241-8-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211114130409.49241-1-philip@philipmcgrath.com> References: <20211114125830.45427-1-philip@philipmcgrath.com> <20211114130409.49241-1-philip@philipmcgrath.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1636895171; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=kTreQd5w/4G329UIlhKNwBXTChGXK/RdArBW5+Q+OgE=; b=efpm5K+I4XFe5XMBXtFF04S7+YOXkAsQWrwKB87h8PcsStVUYTvga6C8WUI4R9Kr9HAc/+ y+vHnmMlanPKWWFv3owsjj3jur+Ok8UWMEAPl1UpX/Zp9EDTqm8OM2r6J/yF5xfigYJqlC 4lPRwRa3/krJnSgLglza9NjdGi7lF89dOZAhT9QvDuAsT9atxzn1dKNUKrilRDu1OdC4h+ 4WVMP//K54ZymyQ9gWL5VeveZlb10iBDWH8IqbkL0o5kkV+XdMCqS6EQaUG6ZhCqE4XdOP qpfz71fOTpWtu5mOKy77MmZ4X3ljxHBu4kFW3cyRkk8fDpdvVPXV2Y3gBP8cqg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1636895171; a=rsa-sha256; cv=none; b=KhJw0HOV1fZ+tM8io3kxmeHGPg4vFWl6wdndU9tZZ0qURBoNRgaRWT+kYg0TOYWLjGosLo GFjNN+/EVzN+BXXKcj6+Fy8sTIH/FBmXzIcWwMXSB1+4k8+ikxDL7cAx/zUkRj6/iUUSbD IAsqzoV+jTDxc6MykkEf4Fwr2bbknHs8Z8n/NCuqSTTKlgBdMoLZ/jLDS43QN7W8pZmtKp 3jGA5OqqyLveGomedc1WtQVYyhE8upFxbSmBr4TP6g9K3QN6QES5UigucTZ/mTBTGXL4sO dmQ893ZaaLeSN65qUPG+GD2xN6jcrtWhTZoAH0y5TwdVuxNlATOHlP7o4YakLQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=google header.b=jx1OPHAs; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -0.84 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=google header.b=jx1OPHAs; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: AF2C335E46 X-Spam-Score: -0.84 X-Migadu-Scanner: scn1.migadu.com X-TUID: 4mgNKOW/b/SL * gnu/packages/zwave.scm (node-openzwave-shared): New variable. --- gnu/packages/zwave.scm | 55 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/gnu/packages/zwave.scm b/gnu/packages/zwave.scm index 2019ec32df..39028b4f34 100644 --- a/gnu/packages/zwave.scm +++ b/gnu/packages/zwave.scm @@ -1,5 +1,6 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2019 Ludovic Courtès +;;; Copyright © 2021 Philip McGrath ;;; ;;; This file is part of GNU Guix. ;;; @@ -21,8 +22,10 @@ (define-module (gnu packages zwave) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix git-download) #:use-module (guix build-system gnu) + #:use-module (guix build-system node) #:use-module (gnu packages) #:use-module (gnu packages base) + #:use-module (gnu packages node-xyz) #:use-module (gnu packages libusb) #:use-module (gnu packages linux) #:use-module (gnu packages perl) @@ -88,3 +91,55 @@ (define-public open-zwave and respond to devices on a Z-Wave network, without requiring in-depth knowledge of the Z-Wave protocol.") (license license:lgpl3+))) + +(define-public node-openzwave-shared + (package + (name "node-openzwave-shared") + (version "1.7.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/OpenZWave/node-openzwave-shared") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1bqqy12dzqj05j9wsh50dmn84dddmhz0gjzvd3y20z4hpy1v8rsc")))) + (inputs + `(("open-zwave" ,open-zwave) + ("node-nan" ,node-nan))) + (native-inputs + `(("which" ,which) + ("pkg-config" ,pkg-config))) + (build-system node-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'build + (lambda* (#:key inputs #:allow-other-keys) + (invoke (which "node-gyp") "build")))))) + (home-page "https://github.com/OpenZWave/node-openzwave-shared") + (synopsis "Node.js bindings for OpenZWave") + (description + "With the @code{node-openzwave-shared} package, you can easily control +and manage your Z-Wave devices (lights, dimmers, blinds, you name it) from +within Node.js applications. This library also supports secure +devices (e.g. door locks) that require encryption. All widely used Node.js +versions are supported with the help of @code{node-nan}. + +This library is currently able to: +@itemize @bullet +@item +scan a Z-Wave network and report on connected devices; +@item +write values to Z-Wave nodes; +@item +monitor the network for changes; +@item +heal nodes and/or the network; and +@item +perform management tasks: add or remove nodes, replace failed nodes, +manage their group associations, etc. +@end itemize") + (license license:isc))) -- 2.32.0