[Deprecated] Google Assistant Relay V2.0 - Google Home Audio Notifications!

Hello, I need some help, I been trying to install this from v1 but I get a lot of errors when I will go to install, could you help me?

Thanks

You need to upgrade your version of node

Which pi?

10 char

Pi 3 model b

Thanks for answering

Hello, any ideas on how to use with ifttt ? Thank you

Can you try a different version of node. Version 8 or something?

You’d have to expose your server to the outside works and then make a web request from ifttt to your external server IP

Thank you! Upgrading to latest version 8 got me to a startup screen. Now however, when I go to the url shown in startup. I get a message in my webbrowser:

Cannot GET /

There is no browser page for it :wink:

Also try sudo npm install.

Thanks, It’s works now with node 8

Apparently was my node version, I tried your suggestion but got errors, less but still errors. Thanks for the suggestion.

Hi - got this working (I really need to stop skipping ahead…) and had a question: is it possible to broadcast (insert better term) to specific home devices? I’ve got quite a few but sometimes I may only want one to tell me that my battery in blah device is low or some such. Probably more of a general google assistant question now that I’m thinking about it, but there’s the ‘broadcast’ flag, but setting it to false didn’t change anything - I couldn’t find syntax for it beyond the ‘command’, ‘user’, ‘broadcast’ inputs.

Thanks!

Unfortunately not, Google doesn’t support this yet

Hi guys,
Im having an issue installing this as I get the following error and would really appreciate some help:

pi@raspi_plus:~/assistant-relay2 $ sudo npm install
Unhandled rejection Error: Command failed: /usr/bin/git submodule update -q --init --recursive
fatal: Could not change back to ‘/root/.npm/_cacache/tmp/git-clone-0f4f9441’: Permission denied

at ChildProcess.exithandler (child_process.js:289:12)
at ChildProcess.emit (events.js:182:13)
at maybeClose (internal/child_process.js:962:16)
at Socket.stream.socket.on (internal/child_process.js:381:11)
at Socket.emit (events.js:182:13)
at Pipe._handle.close (net.js:606:12)

npm ERR! cb() never called!

npm ERR! This is an error with npm itself. Please report this error at:
npm ERR! https://npm.community

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2018-09-16T14_00_32_335Z-debug.log

Thanks,
Haden

Dont use sudo

updating to v2 i receive the below errors when i install
c:\arm2>npm i
npm WARN tar ENOENT: no such file or directory, open ‘c:\arm2\node_modules.staging\gauge-ab28316e\package.json’
npm WARN tar ENOENT: no such file or directory, open ‘c:\arm2\node_modules.staging\request-a0a555b7\package.json’
npm WARN tar ENOENT: no such file or directory, open ‘c:\arm2\node_modules.staging\npmlog-f9ebe727\package.json’
npm WARN tar ENOENT: no such file or directory, open ‘c:\arm2\node_modules.staging\wide-align-962256a0\package.json’
npm WARN tar ENOENT: no such file or directory, open ‘c:\arm2\node_modules.staging\gauge-ab28316e\README.md’
npm WARN tar ENOENT: no such file or directory, open ‘c:\arm2\node_modules.staging\request-a0a555b7\README.md’
npm WARN tar ENOENT: no such file or directory, open ‘c:\arm2\node_modules.staging\npmlog-f9ebe727\README.md’
npm WARN tar ENOENT: no such file or directory, open ‘c:\arm2\node_modules.staging\wide-align-962256a0\README.md’
npm WARN tar ENOENT: no such file or directory, open ‘c:\arm2\node_modules.staging\npmlog-f9ebe727\LICENSE’
npm WARN tar ENOENT: no such file or directory, open ‘c:\arm2\node_modules.staging\wide-align-962256a0\LICENSE’
npm WARN tar ENOENT: no such file or directory, open ‘c:\arm2\node_modules.staging\gauge-ab28316e\LICENSE’
npm WARN tar ENOENT: no such file or directory, open ‘c:\arm2\node_modules.staging\npmlog-f9ebe727\log.js’
npm WARN tar ENOENT: no such file or directory, open ‘c:\arm2\node_modules.staging\wide-align-962256a0\align.js’
npm WARN tar ENOENT: no such file or directory, open ‘c:\arm2\node_modules.staging\fstream-b8f53c89\examples\filter-pipe.js’
npm WARN tar ENOENT: no such file or directory, open ‘c:\arm2\node_modules.staging\gauge-ab28316e\theme-set.js’
npm WARN tar ENOENT: no such file or directory, open ‘c:\arm2\node_modules.staging\fstream-b8f53c89\examples\pipe.js’
npm WARN tar ENOENT: no such file or directory, open ‘c:\arm2\node_modules.staging\gauge-ab28316e\base-theme.js’
npm WARN tar ENOENT: no such file or directory, open ‘c:\arm2\node_modules.staging\npmlog-f9ebe727\CHANGELOG.md’
npm WARN tar ENOENT: no such file or directory, open ‘c:\arm2\node_modules.staging\gauge-ab28316e\themes.js’
npm WARN tar ENOENT: no such file or directory, open ‘c:\arm2\node_modules.staging\tar-pack-5378a3a2\test\fixtures\packed-file.txt’
npm WARN tar ENOENT: no such file or directory, open ‘c:\arm2\node_modules.staging\fstream-b8f53c89\examples\reader.js’
npm WARN tar ENOENT: no such file or directory, open ‘c:\arm2\node_modules.staging\gauge-ab28316e\set-interval.js’
npm WARN tar ENOENT: no such file or directory, open ‘c:\arm2\node_modules.staging\i-e2feda09\test\inflector\cases.js’
npm WARN tar ENOENT: no such file or directory, open ‘c:\arm2\node_modules.staging\tar-pack-5378a3a2\test\fixtures\packed.tar’
npm WARN tar ENOENT: no such file or directory, open ‘c:\arm2\node_modules.staging\fstream-b8f53c89\examples\symlink-write.js’
npm WARN tar ENOENT: no such file or directory, open ‘c:\arm2\node_modules.staging\gauge-ab28316e\error.js’
npm WARN tar ENOENT: no such file or directory, open ‘c:\arm2\node_modules.staging\i-e2feda09\test\inflector\inflections-test.js’
npm WARN tar ENOENT: no such file or directory, open ‘c:\arm2\node_modules.staging\tar-pack-5378a3a2\test\fixtures\packed.tar.gz’
npm WARN tar ENOENT: no such file or directory, open ‘c:\arm2\node_modules.staging\gauge-ab28316e\render-template.js’
npm WARN tar ENOENT: no such file or directory, open ‘c:\arm2\node_modules.staging\i-e2feda09\test\inflector\methods-test.js’
npm WARN tar ENOENT: no such file or directory, open ‘c:\arm2\node_modules.staging\gauge-ab28316e\progress-bar.js’
npm WARN tar ENOENT: no such file or directory, open ‘c:\arm2\node_modules.staging\gauge-ab28316e\index.js’
npm WARN tar ENOENT: no such file or directory, open ‘c:\arm2\node_modules.staging\ncp-f815e820\test\regular-fixtures\src\sub\a’
npm WARN tar ENOENT: no such file or directory, open ‘c:\arm2\node_modules.staging\gauge-ab28316e\spin.js’
npm WARN tar ENOENT: no such file or directory, open ‘c:\arm2\node_modules.staging\ncp-f815e820\test\regular-fixtures\src\sub\b’
npm WARN tar ENOENT: no such file or directory, open ‘c:\arm2\node_modules.staging@sindresorhus\jimp-9b0be3cd\fonts\open-sans\open-sans-16-white\open-sans-16-white.fnt’
npm WARN tar ENOENT: no such file or directory, open ‘c:\arm2\node_modules.staging\gauge-ab28316e\process.js’
npm WARN tar ENOENT: no such file or directory, open ‘c:\arm2\node_modules.staging\gauge-ab28316e\template-item.js’
npm WARN tar ENOENT: no such file or directory, open ‘c:\arm2\node_modules.staging\grpc-1f2929c8\deps\grpc\include\grpc\support\alloc.h’
npm WARN tar ENOENT: no such file or directory, lstat ‘c:\arm2\node_modules.staging\ncp-f815e820\test\symlink-fixtures’
npm WARN tar ENOENT: no such file or directory, open ‘c:\arm2\node_modules.staging\gauge-ab28316e\plumbing.js’
npm WARN tar ENOENT: no such file or directory, open ‘c:\arm2\node_modules.staging\grpc-1f2929c8\deps\grpc\include\grpc\support\atm_gcc_atomic.h’
npm WARN tar ENOENT: no such file or directory, open ‘c:\arm2\node_modules.staging\gauge-ab28316e\set-immediate.js’
npm WARN tar ENOENT: no such file or directory, open ‘c:\arm2\node_modules.staging\grpc-1f2929c8\deps\grpc\include\grpc\support\atm_gcc_sync.h’
npm WARN tar ENOENT: no such file or directory, open ‘c:\arm2\node_modules.staging\gauge-ab28316e\wide-truncate.js’
npm WARN tar ENOENT: no such file or directory, open ‘c:\arm2\node_modules.staging\grpc-1f2929c8\deps\grpc\include\grpc\support\atm_windows.h’
npm WARN tar ENOENT: no such file or directory, open ‘c:\arm2\node_modules.staging\gauge-ab28316e\has-color.js’
npm WARN tar ENOENT: no such file or directory, open ‘c:\arm2\node_modules.staging\grpc-1f2929c8\deps\grpc\include\grpc\support\atm.h’
npm WARN tar ENOENT: no such file or directory, open ‘c:\arm2\node_modules.staging\gauge-ab28316e\CHANGELOG.md’
npm WARN tar ENOENT: no such file or directory, open ‘c:\arm2\node_modules.staging\grpc-1f2929c8\deps\grpc\include\grpc\support\avl.h’
npm WARN tar ENOENT: no such file or directory, open ‘c:\arm2\node_modules.staging\grpc-1f2929c8\deps\grpc\include\grpc\support\cmdline.h’
npm WARN tar ENOENT: no such file or directory, open ‘c:\arm2\node_modules.staging\grpc-1f2929c8\deps\grpc\include\grpc\support\cpu.h’
npm WARN tar ENOENT: no such file or directory, open ‘c:\arm2\node_modules.staging\grpc-1f2929c8\deps\grpc\include\grpc\support\histogram.h’
npm WARN tar ENOENT: no such file or directory, open ‘c:\arm2\node_modules.staging\grpc-1f2929c8\deps\grpc\include\grpc\support\host_port.h’
npm WARN tar ENOENT: no such file or directory, open ‘c:\arm2\node_modules.staging\grpc-1f2929c8\deps\grpc\include\grpc\support\log_windows.h’
npm WARN tar ENOENT: no such file or directory, open ‘c:\arm2\node_modules.staging\grpc-1f2929c8\deps\grpc\include\grpc\support\log.h’
npm WARN tar ENOENT: no such file or directory, open ‘c:\arm2\node_modules.staging\grpc-1f2929c8\deps\grpc\include\grpc\support\port_platform.h’
npm WARN tar ENOENT: no such file or directory, open ‘c:\arm2\node_modules.staging\grpc-1f2929c8\deps\grpc\include\grpc\support\string_util.h’
npm WARN tar ENOENT: no such file or directory, open ‘c:\arm2\node_modules.staging\grpc-1f2929c8\deps\grpc\include\grpc\support\subprocess.h’
npm WARN tar ENOENT: no such file or directory, open ‘c:\arm2\node_modules.staging\grpc-1f2929c8\deps\grpc\include\grpc\support\sync_custom.h’
npm WARN tar ENOENT: no such file or directory, open ‘c:\arm2\node_modules.staging\grpc-1f2929c8\deps\grpc\include\grpc\support\sync_generic.h’
npm WARN tar ENOENT: no such file or directory, open ‘c:\arm2\node_modules.staging\grpc-1f2929c8\deps\grpc\include\grpc\support\sync_posix.h’
npm WARN tar ENOENT: no such file or directory, open ‘c:\arm2\node_modules.staging\grpc-1f2929c8\deps\grpc\include\grpc\support\sync_windows.h’
npm WARN tar ENOENT: no such file or directory, open ‘c:\arm2\node_modules.staging\grpc-1f2929c8\deps\grpc\include\grpc\support\sync.h’
npm WARN tar ENOENT: no such file or directory, open ‘c:\arm2\node_modules.staging\grpc-1f2929c8\deps\grpc\include\grpc\support\thd.h’
npm WARN tar ENOENT: no such file or directory, open ‘c:\arm2\node_modules.staging\grpc-1f2929c8\deps\grpc\include\grpc\support\time.h’
npm WARN tar ENOENT: no such file or directory, open ‘c:\arm2\node_modules.staging\grpc-1f2929c8\deps\grpc\include\grpc\support\tls_gcc.h’
npm WARN tar ENOENT: no such file or directory, open ‘c:\arm2\node_modules.staging\grpc-1f2929c8\deps\grpc\include\grpc\support\tls_msvc.h’
npm WARN tar ENOENT: no such file or directory, open ‘c:\arm2\node_modules.staging\grpc-1f2929c8\deps\grpc\include\grpc\support\tls_pthread.h’
npm WARN tar ENOENT: no such file or directory, open ‘c:\arm2\node_modules.staging\grpc-1f2929c8\deps\grpc\include\grpc\support\tls.h’
npm WARN tar ENOENT: no such file or directory, open ‘c:\arm2\node_modules.staging\grpc-1f2929c8\deps\grpc\include\grpc\support\useful.h’
npm WARN tar ENOENT: no such file or directory, open ‘c:\arm2\node_modules.staging\grpc-1f2929c8\deps\grpc\include\grpc\support\workaround_list.h’
npm WARN tar ENOENT: no such file or directory, open ‘c:\arm2\node_modules.staging\grpc-1f2929c8\deps\grpc\LICENSE’
npm WARN tar ENOENT: no such file or directory, open ‘c:\arm2\node_modules.staging\grpc-1f2929c8\deps\grpc\NOTICE.txt’
npm WARN tar ENOENT: no such file or directory, open ‘c:\arm2\node_modules.staging\grpc-1f2929c8\deps\grpc\README.md’
npm WARN tar ENOENT: no such file or directory, open ‘c:\arm2\node_modules.staging\node-pre-gyp-88bc6cd4\lib\util\nw-pre-gyp\package.json’
npm WARN tar ENOENT: no such file or directory, open ‘c:\arm2\node_modules.staging\node-pre-gyp-88bc6cd4\lib\util\nw-pre-gyp\index.html’
npm WARN tar ENOENT: no such file or directory, lstat ‘c:\arm2\node_modules.staging\grpc-1f2929c8\deps\grpc\src’
npm WARN tar ENOENT: no such file or directory, lstat ‘c:\arm2\node_modules.staging\protobufjs-9cb3db30\src\ProtoBuf\Reflect\Message’
npm WARN tar ENOENT: no such file or directory, lstat ‘c:\arm2\node_modules.staging\grpc-1f2929c8\deps\grpc\src\core\ext\filters’
npm WARN tar ENOENT: no such file or directory, lstat ‘c:\arm2\node_modules.staging\grpc-1f2929c8\deps\grpc\src’
npm WARN tar ENOENT: no such file or directory, lstat ‘c:\arm2\node_modules.staging\grpc-1f2929c8\node_modules\hawk\example’
npm WARN assistant-relay@2.0.0 No repository field.

npm ERR! code ENOGIT
npm ERR! Error while executing:
npm ERR! undefined ls-remote -h -t ssh://git@github.com/notmasteryet/jpgjs.git
npm ERR!
npm ERR! undefined
npm ERR! No git binary found in $PATH
npm ERR!
npm ERR! Failed using git.
npm ERR! Please check if you have git installed and in your PATH.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Media PC\AppData\Roaming\npm-cache_logs\2018-09-18T01_33_21_516Z-debug.log

You can accomplish this by creating dummy accounts and binding those accounts to specific devices / sets of devices. The application you use has to be built around the correct metaphor, though. If this is an important use case for you, feel free to try this, which I built mainly for that use case.

I have no idea what you’ve done there. They look to be npm errors.
Try a fresh install?

You can achieve exactly the same thing here.

Setup a Google account, assign to the device, download oauth, give it a name, pass the name in the call.
There’s a section in the readme on it I added yesterday

I had the EXACT same errors as the screenshots VJV posted above, then I switched from node.js 10 to 8. Then I erased the assistant-relay directory and started again.
Now I’m getting this “fatal error: alsa/asoundlib.h: No such file or directory” during the npm install. I’m new to all of this, THANK YOU for not only making this, but for helping too! =D
Thanks for the help!!!

pi@raspberrypi:~ $ git clone GitHub - greghesp/assistant-relay: A Node.js server that allows for sending commands to Google Home/Assistant from endpoints
Cloning into ‘assistant-relay’…
remote: Counting objects: 437, done.
remote: Compressing objects: 100% (100/100), done.
remote: Total 437 (delta 75), reused 99 (delta 36), pack-reused 293
Receiving objects: 100% (437/437), 2.47 MiB | 4.68 MiB/s, done.
Resolving deltas: 100% (206/206), done.

pi@raspberrypi:~ $ cd assistant-relay
pi@raspberrypi:~/assistant-relay $ npm install

speaker@0.4.1 install /home/pi/assistant-relay/node_modules/speaker
node-gyp rebuild

make: Entering directory ‘/home/pi/assistant-relay/node_modules/speaker/build’
CC(target) Release/obj.target/output/deps/mpg123/src/output/alsa.o
…/deps/mpg123/src/output/alsa.c:19:28: fatal error: alsa/asoundlib.h: No such file or directory
#include <alsa/asoundlib.h>
^
compilation terminated.
deps/mpg123/output.target.mk:108: recipe for target ‘Release/obj.target/output/deps/mpg123/src/output/alsa.o’ failed
make: *** [Release/obj.target/output/deps/mpg123/src/output/alsa.o] Error 1
make: Leaving directory ‘/home/pi/assistant-relay/node_modules/speaker/build’
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/opt/nodejs/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:285:23)
gyp ERR! stack at emitTwo (events.js:125:13)
gyp ERR! stack at ChildProcess.emit (events.js:213:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:197:12)
gyp ERR! System Linux 4.14.7-v7+
gyp ERR! command “/opt/nodejs/bin/node” “/opt/nodejs/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “rebuild”
gyp ERR! cwd /home/pi/assistant-relay/node_modules/speaker
gyp ERR! node -v v8.0.0
gyp ERR! node-gyp -v v3.6.1
gyp ERR! not ok

grpc@1.8.0 install /home/pi/assistant-relay/node_modules/grpc
node-pre-gyp install --fallback-to-build --library=static_library

[grpc] Success: “/home/pi/assistant-relay/node_modules/grpc/src/node/extension_binary/node-v57-linux-arm-glibc/grpc_node.node” is installed via remote
npm WARN assistant-relay@2.0.0 No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: speaker@0.4.1 (node_modules/speaker):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: speaker@0.4.1 install: node-gyp rebuild
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

added 390 packages in 81.046s