hypnos3 / node-red-contrib-cast Goto Github PK
View Code? Open in Web Editor NEWThis project forked from stephenkeep/node-red-contrib-chromecast
Node-RED nodes for Chromecast and GoogleHome
This project forked from stephenkeep/node-red-contrib-chromecast
Node-RED nodes for Chromecast and GoogleHome
Could images (jpg or png) be casted to Chromecast? Video and audio contents work well, but i have trouble with images. If they can't, is there any solution to cast them with nodered?
I'm using node-red and am unable to cast anything because the cast node fails to deploy. When I install the package, I'm getting an error when adding the node:
node-red-contrib-cast:cast-to-client : TypeError: ProtoBuf.loadProtoFile is not a function
When I try to deploy a flow which contains the cast node, I get the error:
Waiting for missing types to be registered: cast-to-client
Any ideas?
When changing volume, for example when doing a TTS cast to Google Home devices, it sometime scould be a neat feature to have the cast node set the volume back to the level from before.
Hi there!
I am getting the following error :
21/02/2019 16:10:34node: e04f7d00.1b56b
msg : string[74]
"No contentType given!, using "audio/basic" which is maybe wrong! (Word Up)"
21/02/2019 16:10:36node: e04f7d00.1b56b
msg : string[62]
"Not able to load media:Load failed Not able to load the media."
When try to SAY TEXT using the demo:
[{"id":"e04f7d00.1b56b","type":"cast-to-client","z":"4331a068.20dce","name":"","url":"","contentType":"","message":"","language":"en","ip":"","port":"","volume":"","x":450,"y":340,"wires":[["af79d587.e4d278"]]},{"id":"816a96d2.2c7458","type":"inject","z":"4331a068.20dce","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":100,"y":340,"wires":[["edd9531a.0b39b"]]},{"id":"edd9531a.0b39b","type":"change","z":"4331a068.20dce","name":"","rules":[{"t":"set","p":"ip","pt":"msg","to":"192.168.1.101","tot":"str"},{"t":"set","p":"url","pt":"msg","to":"Word Up","tot":"str"},{"t":"set","p":"language","pt":"msg","to":"En-gb","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":260,"y":340,"wires":[["e04f7d00.1b56b"]]},{"id":"af79d587.e4d278","type":"debug","z":"4331a068.20dce","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":630,"y":340,"wires":[]},{"id":"80194b85.f3bf78","type":"comment","z":"4331a068.20dce","name":"say a text","info":"","x":140,"y":300,"wires":[]}]
Looking in the NPM log, I'm getting this error when attempting to update to v0.0.3, and the update fails.
I'm assuming that it's because the current google-tts-api npm version is v0.0.2, but you are requesting v0.0.3 which isn't available.
30 verbose argv "/usr/bin/node" "/usr/bin/npm" "install" "--save" "--save-prefix=~" "--production" "[email protected]"
31 verbose node v8.11.4
32 verbose npm v6.4.0
33 error code ETARGET
34 error notarget No matching version found for [email protected]
35 error notarget In most cases you or one of your dependencies are requesting
35 error notarget a package version that doesn't exist.
35 error notarget
35 error notarget It was specified as a dependency of 'node-red-contrib-cast'
36 verbose exit [ 1, true ]
iam unable to stop the media.
i sent no message and no url to my google home, but the playing sound doesn't stop.
If the mp3 URL is not available, the node crashes node-RED.
I realise that you are already aware of this, but thought I'd add this as an issue, so it doesn't get overlooked.
I have a camera that sends Mjpgs as many do (Motion software). I can't seem to figure out if this will work with Cast. I'm looking to stream this camera if motion is detected.
Any ideas?
1st great node thanks for the effort.
Does anyone know how to specify the aspect ratio on the Google Home hub or Chrome cast?
My IPTV DVB-T free-to-air TV streams in Australia are scaled 4:3 but packaged 16:9 so when i cast them they are long in the vertical because HHub and CCast doesnt stretc the content horizontally.
Appreciate the assist
Everything's working fine but there's a reference in the docs to msg.urlList what's the format for this? I'd like to play an mp3 of a few seconds silence before the main mp3 starts.
My user case is that I want to start each day with a preset volume level for my Google Home. This is necessary if I've been listening to music at a low level at bedtime, or someone else has lowered the volume.
So I have set a simple flow which runs every morning at 8.30am, injects msg.volume = 60 into the cast node.
You can see the error below the node, and also, in the debug panel I get;
"Exception occured on load media:Cannot read property 'transportId' of undefined"
...although the volume level does actually successfully change in the device.
I guess this is linked to issue #22
I'm assuming that it's because I'm not injecting a media file url, because if I add a silent '1 second' mp3 file url, the error does not appear, but that's not really a solution because the 'silent mp3' is always preceded in the Home device by a introductory beep, so it's not really silent!
[{"id":"c054f1da.962f","type":"cast-to-client","z":"c53060.842a0fa","name":"Google Home","url":"","contentType":"","message":"","language":"en","ip":"","port":"","volume":"","x":480,"y":500,"wires":[[]],"icon":"node-red-contrib-cast/home.png"},{"id":"89dd5292.8dd33","type":"change","z":"c53060.842a0fa","name":"Lounge","rules":[{"t":"set","p":"ip","pt":"msg","to":"192.168.1.5","tot":"str"},{"t":"set","p":"volume","pt":"msg","to":"50","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":290,"y":500,"wires":[["c054f1da.962f"]]},{"id":"46fcb48e.76bcfc","type":"inject","z":"c53060.842a0fa","name":"","topic":"","payload":"","payloadType":"str","repeat":"","crontab":"30 08 * * *","once":false,"onceDelay":0.1,"x":120,"y":500,"wires":[["89dd5292.8dd33"]]}]
I don't seem to be able to get status only to work.
Tried injecting messages with payloads of NULL, {}, "", etc. and they all seem to error out around attempts to fill the data.media object.
I looked over your code, and I think you have several typeof media === 'object'
where you meant to have typeof data.media === 'object'
Also, it seems like the way you do your overloads of the config attributes might be leading to some of those later checks if they were defined earlier always execute? Trying to trace through your code, it seems like I'm getting into sections that I would only expect to get into if things like data.url WERE defined (i.e., not undefined) by nature of you taking the config[attribute]
first, and these not being undefined, but perhaps either empty strings or null...
Or I'm doing something completely wrong?
general available requests:
https://rithvikvibhu.github.io/GHLocalApi/#top
sending youtube videos:
curl -H “Content-Type: application/json” http://IP_GOES_HERE:8008/apps/YouTube -X POST -d ‘v=VIDEO_ID_HERE′
another solution:
https://github.com/greghesp/assistant-relay
Can this play locally stored files. Example: My Node-red is on a raspberry Pi, can this play mp3 from a folder on the Pi, or a NAS drive on the local network.
I've tried various types of different URL's and nothing seems to work
Installed node does not work, local with same code does. needs more investigations.
Hi,
Could you please let me know how I can change the streamType? I have tried using a change node and set the msg.streamtype to LIVE but it doesn't seem to change when looking at the debug output.
I have also tried to find where the default setting is. I'm not a coder so this is difficult for me. I have search through 'cast-to-client.js' and found 3 locations where there is 'BUFFERED' mentioned. I changed these to LIVE but no luck.
Any ideas? I'm still trying to find a way to reduce the gap when switching between radio streams.
Thanks
Hi,
First time posting here.. Thanks for the node!!
I have started to configure the cast node to play internet radio streams (I'm using chromecast audio). All works wonderfully but there is a gap/delay of about 20 seconds when changing between stations. I seems like it is establishing a new connection each time I change stations as I get the audible 'blonk' .
The flow is simple in that I have buttons with the URLs as the payload going directly to the cast node. I also put in a change node to set the streamType to NONE and LIVE but this didn't seem to reduce the delay.
Would you have any ideas?
Thanks
Ant
A nice feature would be to resume playing audio/video through the castable device(s) if you inject a tts.
Example: Listening to spotify on google home and a regularly scheduled tts message comes out. It will stop the spotify stream, play the tts message. Starting spotify stream again requires manual intervention.
Also if you are playing music/media on a castable and a tts message comes out a different device, it would be nice for the music to quiet down. Then raise back up to the previous volume after all messages are finished.
Hey there. Trying to install from ND and I get this:
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node',
1 verbose cli '/usr/bin/npm',
1 verbose cli 'install',
1 verbose cli '--save',
1 verbose cli '--save-prefix=~',
1 verbose cli '--production',
1 verbose cli '[email protected]' ]
2 info using [email protected]
3 info using [email protected]
4 verbose npm-session 2b46e81277b82ec2
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 http fetch GET 200 https://registry.npmjs.org/node-red-contrib-cast 2279ms
8 silly registry:manifest no matching version for [email protected] in the cache. Forcing revalidation
9 http fetch GET 304 https://registry.npmjs.org/node-red-contrib-cast 386ms (from cache)
10 silly fetchPackageMetaData error for [email protected] No matching version found for [email protected]
11 verbose type version
12 verbose stack node-red-contrib-cast: No matching version found for [email protected]
12 verbose stack at pickManifest (/usr/lib/node_modules/npm/node_modules/pacote/node_modules/npm-pick-manifest/index.js:65:11)
12 verbose stack at fetchPackument.then.packument (/usr/lib/node_modules/npm/node_modules/pacote/lib/fetchers/registry/manifest.js:52:18)
12 verbose stack at tryCatcher (/usr/lib/node_modules/npm/node_modules/bluebird/js/release/util.js:16:23)
12 verbose stack at Promise._settlePromiseFromHandler (/usr/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:512:31)
12 verbose stack at Promise._settlePromise (/usr/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:569:18)
12 verbose stack at Promise._settlePromise0 (/usr/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:614:10)
12 verbose stack at Promise._settlePromises (/usr/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:693:18)
12 verbose stack at Async._drainQueue (/usr/lib/node_modules/npm/node_modules/bluebird/js/release/async.js:133:16)
12 verbose stack at Async._drainQueues (/usr/lib/node_modules/npm/node_modules/bluebird/js/release/async.js:143:10)
12 verbose stack at Immediate.Async.drainQueues (/usr/lib/node_modules/npm/node_modules/bluebird/js/release/async.js:17:14)
12 verbose stack at runCallback (timers.js:810:20)
12 verbose stack at tryOnImmediate (timers.js:768:5)
12 verbose stack at processImmediate [as _immediateCallback] (timers.js:745:5)
13 verbose cwd /home/pi/.node-red
14 verbose Linux 4.14.79+
15 verbose argv "/usr/bin/node" "/usr/bin/npm" "install" "--save" "--save-prefix=~" "--production" "[email protected]"
16 verbose node v8.11.4
17 verbose npm v5.6.0
18 error code ETARGET
19 error notarget No matching version found for [email protected]
20 error notarget In most cases you or one of your dependencies are requesting
20 error notarget a package version that doesn't exist.
21 verbose exit [ 1, true ]
Any help is appreciated!
Hello,
is there any known way to stream music via google play music? I want to start a playlist or something over node-red.
Thanks in advance.
Thank you for this node.
Can it be configured to talk to devices groups?
Within then Google Home App I have created a group called "All Speakers" that contains all my chromecast audios, google home and Minis. I'd like to be able to send to the group from the node. Is that currently possible, if not can it be added please?
Specifying a Port number in node properties causes a flow to fail and Node Red's front end to disconnect from the server temporarily. (As a consequence this prohibits group casting.)
Steps to Reproduce:
Results:
5.13.0
to 5.14.0
.This version is covered by your current version range and after updating it in your project the build failed.
eslint is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
85a04b3
Fix: adds conditional for separateRequires in one-var (fixes #10179) (#10980) (Scott Stern)0c02932
Upgrade: [email protected] (#11401) (Ilya Volodin)104ae88
Docs: Update governance doc with reviewers status (#11399) (Nicholas C. Zakas)ab8ac6a
Fix: Support boundary spread elements in sort-keys (#11158) (Jakub Rożek)a23d197
New: add allowSingleLineBlocks opt. to padded-blocks rule (fixes #7145) (#11243) (richie3366)e25e7aa
Fix: comma-spacing ignore comma before closing paren (fixes #11295) (#11374) (Pig Fang)a1f7c44
Docs: fix space-before-blocks correct code for "classes": "never" (#11391) (PoziWorld)14f58a2
Docs: fix grammar in object-curly-spacing docs (#11389) (PoziWorld)d3e9a27
Docs: fix grammar in “those who says” (#11390) (PoziWorld)ea8e804
Docs: Add note about support for object spread (fixes #11136) (#11395) (Steven Thomas)95aa3fd
Docs: Update README team and sponsors (ESLint Jenkins)51c4972
Update: Behavior of --init (fixes #11105) (#11332) (Nicholas C. Zakas)ad7a380
Docs: Update README team and sponsors (ESLint Jenkins)550de1e
Update: use default
keyword in JSON schema (fixes #9929) (#11288) (Pig Fang)983c520
Update: Use 'readonly' and 'writable' for globals (fixes #11359) (#11384) (Nicholas C. Zakas)f1d3a7e
Upgrade: some deps (fixes #11372) (#11373) (薛定谔的猫)3e0c417
Docs: Fix grammar in “there’s nothing prevent you” (#11385) (PoziWorld)de988bc
Docs: Fix grammar: Spacing improve -> Spacing improves (#11386) (PoziWorld)1309dfd
Revert "Build: fix test failure on Node 11 (#11100)" (#11375) (薛定谔的猫)1e56897
Docs: “the function actually use”: use -> uses (#11380) (PoziWorld)5a71bc9
Docs: Update README team and sponsors (ESLint Jenkins)82a58ce
Docs: Update README team and sponsors (ESLint Jenkins)546d355
Docs: Update README with latest sponsors/team data (#11378) (Nicholas C. Zakas)c0df9fe
Docs: ...
is not an operator (#11232) (Felix Kling)7ecfdef
Docs: update typescript parser (refs #11368) (#11369) (薛定谔的猫)3c90dd7
Update: remove prefer-spread autofix (fixes #11330) (#11365) (薛定谔的猫)5eb3121
Update: add fixer for prefer-destructuring
(fixes #11151) (#11301) (golopot)173eb38
Docs: Clarify ecmaVersion doesn't imply globals (refs #9812) (#11364) (Keith Maxwell)84ce72f
Fix: Remove extraneous linefeeds in one-var
fixer (fixes #10741) (#10955) (st-sloth)389362a
Docs: clarify motivation for no-prototype-builtins (#11356) (Teddy Katz)533d240
Update: no-shadow-restricted-names lets unassigned vars shadow undefined (#11341) (Teddy Katz)d0e823a
Update: Make --init run js config files through linter (fixes #9947) (#11337) (Brian Kurek)92fc2f4
Fix: CircularJSON dependency warning (fixes #11052) (#11314) (Terry)4dd19a3
Docs: mention 'prefer-spread' in docs of 'no-useless-call' (#11348) (Klaus Meinhardt)4fd83d5
Docs: fix a misleading example in one-var (#11350) (薛定谔的猫)9441ce7
Chore: update incorrect tests to fix build failing (#11354) (薛定谔的猫)The new version differs by 38 commits.
af9688b
5.14.0
0ce3ac7
Build: changelog update for 5.14.0
85a04b3
Fix: adds conditional for separateRequires in one-var (fixes #10179) (#10980)
0c02932
Upgrade: [email protected] (#11401)
104ae88
Docs: Update governance doc with reviewers status (#11399)
ab8ac6a
Fix: Support boundary spread elements in sort-keys (#11158)
a23d197
New: add allowSingleLineBlocks opt. to padded-blocks rule (fixes #7145) (#11243)
e25e7aa
Fix: comma-spacing ignore comma before closing paren (fixes #11295) (#11374)
a1f7c44
Docs: fix space-before-blocks correct code for "classes": "never" (#11391)
14f58a2
Docs: fix grammar in object-curly-spacing docs (#11389)
d3e9a27
Docs: fix grammar in “those who says” (#11390)
ea8e804
Docs: Add note about support for object spread (fixes #11136) (#11395)
95aa3fd
Docs: Update README team and sponsors
51c4972
Update: Behavior of --init (fixes #11105) (#11332)
ad7a380
Docs: Update README team and sponsors
There are 38 commits in total.
See the full diff
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
Is it possible to add the option to choose what voice is used to generate the speech through the google tts? I know Google now offers some choices on assistant for en-us users, but I don't know if they allow you to choose through the tts API. If they do I would like to choose the voice in the node.
hey guys, just started getting this issue when casting TTS has been working fine.
"Not able to get media file via google-tts:get key failed from google" via debug node on the cast node
any ideas
If 2 cast nodes clash, the node-red server crashes. Trying to use another short message node at 0 volume as a "stop" command.
Hi, I'm running into a situation in which the cast node is constantly crashing node-red. The payload that is being sent is very simple {"payload":"Tommy made it home safely"}, it processes the information and about a minute or so crashes node-red.
node-red v0.19.4
node.js v.8.12.0
15 Oct 07:22:46 - [red] Uncaught Exception:
15 Oct 07:22:46 - ReferenceError: node is not defined
at client.launch (C:\Users\unpue.node-red\node_modules\node-red-contrib-cast\cast-to-client.js:73:13)
at C:\Users\unpue.node-red\node_modules\castv2-client\lib\senders\platform.js:95:20
at C:\Users\unpue.node-red\node_modules\castv2-client\lib\controllers\receiver.js:51:14
at fn.onmessage (C:\Users\unpue.node-red\node_modules\castv2-client\lib\controllers\request-response.js:27:7)
at emitTwo (events.js:131:20)
at fn.emit (events.js:214:7)
at Channel.onmessage (C:\Users\unpue.node-red\node_modules\castv2-client\lib\controllers\controller.js:16:10)
at emitTwo (events.js:126:13)
at Channel.emit (events.js:214:7)
at Client.onmessage (C:\Users\unpue.node-red\node_modules\castv2\lib\channel.js:23:10)
at emitMany (events.js:152:20)
at Client.emit (events.js:224:7)
at PacketStreamWrapper.onpacket (C:\Users\unpue.node-red\node_modules\castv2\lib\client.js:81:10)
at emitOne (events.js:116:13)
at PacketStreamWrapper.emit (events.js:211:7)
at TLSSocket. (C:\Users\unpue.node-red\node_modules\castv2\lib\packet-stream-wrapper.js:28:16)
at emitNone (events.js:106:13)
at TLSSocket.emit (events.js:208:7)
at emitReadable (_stream_readable.js:513:10)
at emitReadable (_stream_readable.js:507:7)
at addChunk (_stream_readable.js:274:7)
at readableAddChunk (_stream_readable.js:250:11)
The IP field already does allow hostnames to be entered, and it works fine, however, there is some input validation being done and the nodes complain that they aren't configured correctly if a hostname is entered.
As I have a large number of cast capable devices, I much prefer to use hostnames to keep track of them. So it would be nice if hostnames could be supported.
just started playing with this after i got a homehub and the notification works great but then the screen on the homehub goes black with a simple cast logo in the centre. it goes away after a while but its means to use the device it needs an extra couple of touches. What is the feasibility of adding in a "stop casting" command which would bring it straight back to the home screen.
5.15.3
to 5.16.0
.This version is covered by your current version range and after updating it in your project the build failed.
eslint is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
dfef227
Build: gensite passes rulesMeta to formatter rendering (#11567) (Kevin Partington)c06d38c
Fix: Allow HTML formatter to handle no meta data (#11566) (Ilya Volodin)87a5c03
Docs: func-style
: clarify when allowArrowFunctions
is used (#11548) (Oliver Joseph Ash)bc3e427
Update: pass rule meta to formatters RFC 10 (#11551) (Chris Meyer)b452f27
Chore: Update README to pull in reviewer data (#11506) (Nicholas C. Zakas)afe3d25
Upgrade: Bump js-yaml dependency to fix Denial of Service vulnerability (#11550) (Vernon de Goede)4fe7eb7
Chore: use nyc instead of istanbul (#11532) (Toru Nagashima)f16af43
Chore: fix formatters/table test (#11534) (Toru Nagashima)78358a8
Docs: fix duplicate punctuation in CLI docs (#11528) (Teddy Katz)The new version differs by 11 commits.
ded2f94
5.16.0
ea36e13
Build: changelog update for 5.16.0
dfef227
Build: gensite passes rulesMeta to formatter rendering (#11567)
c06d38c
Fix: Allow HTML formatter to handle no meta data (#11566)
87a5c03
Docs: func-style
: clarify when allowArrowFunctions
is used (#11548)
bc3e427
Update: pass rule meta to formatters RFC 10 (#11551)
b452f27
Chore: Update README to pull in reviewer data (#11506)
afe3d25
Upgrade: Bump js-yaml dependency to fix Denial of Service vulnerability (#11550)
4fe7eb7
Chore: use nyc instead of istanbul (#11532)
f16af43
Chore: fix formatters/table test (#11534)
78358a8
Docs: fix duplicate punctuation in CLI docs (#11528)
See the full diff
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
The node is based on
https://github.com/thibauts/node-castv2
https://github.com/thibauts/node-castv2-client
Unfortunately there was no further development in castv2 for 2 years.
As as I have noticed Google aims to migration from castv2 protocol to CAF (Cast Application Framework). So it seems to be time t switch to CAF.
useful links:
https://developers.google.com/cast/docs/migrate_v2/receiver
Haven't found any other post with a fix. Trying to troubleshoot casting of video. I can cast a static image url from my blue iris servers to a google home hub but when trying a video url it fails. hub reacts by showing a cast icon, then for a few seconds shows a media control (play button and line, which is the same as when I succesfully cast this feed using home assistant), but then it gets another cast icon, and does nothing else. Node-red shows "error load media" under node and this debug message: "Not able to load media:Load failed Not able to load the media." Config is straightforward:
I've tried various video content type and Blue Iris urls, such as one for H264. Also tried urls direct to the cameras, bypassing blue iris.
Anyone have any ideas on troubleshooting? Would love to use this to dynamically cast live feed instead of static image.
Thanks in advance!
Hypnos3,
I am seeing the exact same issue as this person (who has not resolved their problem, as far as I know) https://discourse.nodered.org/t/flow-works-in-one-lineup-but-not-in-others/11018
In a nutshell, I have my Google Home unit making announcements, triggered via timestamp inject. But when I try to use any other means of triggering, it breaks with this error:
Client error reported:connect ECONNREFUSED 192.168.1.106:68
Note that the port is wrong...I haven't changed the default from 8009.
However, I am using UDP port 67 to detect a MAC address and trigger an announcement; but debug doesn't show anything unusual. Any insight?
Hi Stephen. If you check your node entry on flows.nodered.org the readme is missing.
Didn't know if you were aware.
Hello,
would be nice to have some way how to set "ContentTitle" manually. Generating "ContentTitle" from text-to-speach message url is not so nice.
Add this settings please or make connect "msg.topic" to "ContentTitle".
Thank you.
I'm looking for the ability to control my Chromecast in order to pause / play it. I can do so using Google Assistant voice commands so assume there should be someway to inject those commands as well?
Thanks for all the great work on this.
Hi Again,
Was just doing some further testing and found another scenario where an exception is raised. This time when casting to a cast group and attempting to get the status of a chromecast.
"Exception occured on load media test:Illegal value for Message.Field .extensions.api.cast_channel.CastMessage.destination_id of type string: undefined (not a string)"
I did a bit of debugging with some local modifications to catch the callstack:
Error: Illegal value for Message.Field .extensions.api.cast_channel.CastMessage.destination_id of type string: undefined (not a string)
at Error (native)
at T.<anonymous> (/data/node_modules/protobufjs/dist/ProtoBuf.js:2641:27)
at T.ProtoBuf.Reflect.FieldPrototype.verifyValue (/data/node_modules/protobufjs/dist/ProtoBuf.js:2721:29)
at MessagePrototype.set (/data/node_modules/protobufjs/dist/ProtoBuf.js:1799:63)
at Message (/data/node_modules/protobufjs/dist/ProtoBuf.js:1725:42)
at Object.serialize (/data/node_modules/castv2/lib/proto.js:18:17)
at Client.send (/data/node_modules/castv2/lib/client.js:127:25)
at Channel.send (/data/node_modules/castv2/lib/channel.js:34:12)
at ConnectionController.Controller.send (/data/node_modules/castv2-client/lib/controllers/controller.js:28:16)
at ConnectionController.connect (/data/node_modules/castv2-client/lib/controllers/connection.js:28:8)
This appears to be outside your domain in the linked cast libs but thought I would raise for completeness. May also be related to #20
Thanks,
What: Not able to load media:Load failed Not able to load the media.
with no sound from Google home mini
When: I am senfing this message to node:
{"topic":"notification/broadcast/speaker/normal/url","payload":"","qos":1,"retain":false,"_topic":"notification/broadcast/speaker/normal/url","_msgid":"7da166e5.bf4668","url":"http://soundbible.com/grab.php?id=2185&type=mp3","contentType":"audio/mp3"}
It was working like this for 4 months until today. Do you know what could be the problem?
Since google-tts may not stable enough, try to integrate alternative tts engine.
Microsoft tts
Amazon tts
Mozilla Web speech
...
Hi, I would like to know is it possible to cast a web page simply by giving the url of the website ?
If yes, which media type should i enter ? Thanks!
Hi, I have a problem to mute my google home mini.
Volume parameter can't be 0, it only works between 1 and 100. Muted parameter also doesn't work. How to mute my device?
i fi cast a mp3 file to a google-home-mini, before it is played a here an announcment tone.
if i cast tts to the same device, this is not the case.
is this configurable for mp3 or the google-cast default if a mp3/sound is played?
( rather dont want this announcment-beeping-tone)
my test-flow in node-red:
[{"id":"201e8c6c.2f5a44","type":"inject","z":"427e39a5.89c7f8","name":"","topic":"","payload":"","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":1262,"y":164,"wires":[["80067ba4.cd8308"]]},{"id":"80067ba4.cd8308","type":"change","z":"427e39a5.89c7f8","name":"settings","rules":[{"t":"set","p":"ip","pt":"msg","to":"192.168.14.40","tot":"str"},{"t":"set","p":"language","pt":"msg","to":"de-DE","tot":"str"},{"t":"set","p":"volume","pt":"msg","to":"80","tot":"str"},{"t":"set","p":"url","pt":"msg","to":"http://192.168.14.30/motion/1/snd/44149__stickinthemud__chimes-2sec-gliss-down.wav","tot":"str"},{"t":"set","p":"contentType","pt":"msg","to":"audio/mp3","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1435,"y":208,"wires":[["31a7b97.e381e46","b758720.7a4439"]]},{"id":"b758720.7a4439","type":"cast-to-client","z":"427e39a5.89c7f8","name":"","url":"","contentType":"","message":"","language":"","ip":"","port":"","volume":"","x":1648,"y":207,"wires":[["73a911f2.41a8d"]]}]
thanks for info,
toz
I had a working setup for many months. I have reinstalled my OS and now when I try to cast I get the message "play message on xxx.xxx.x.x" followed by a green box and "OK" however nothing comes out any of my google assistants. No notification chime or cast audio.
I have no idea what I've done differently this time around, can anyone point me in the right direction please?
With the last update on Google side the tts isn't working.
Fix is in work:zlargon/google-tts#14 (comment)
Needs to pin Google tts to working version of npm package.
Hi,
When I attempt to get the status of a chromecast Audio, which is not doing anything, I get the following exception:
"Exception occured on load media:Cannot read property 'transportId' of undefined"
Is this expected behaviour? I assumed that the status message would come back even though no application is present. When the chromecast Audio is casting (such as spotify) it appears to work correctly and I get a status message.
Thanks for your great work.
Hi,
i cant figure out how to get the status only on change. For example if i turn on or off the stream.
I need this to turn on a amplifier in case iam streaming to one of my chromecast audios. the reason is the powerdraw of the amplifier if nothing is playing. In my previous Home Automation (FHEM) i was able to intercept the network announcments of the CC Audio.
Hello, is this possible? To send a URL of a youtube movie or Music from spotify to a Chromecast or in te case of the music to the google home?
Thank You for this work
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.