[RELEASE] cast-web v1.2.1 - Chromecast Integration (EDGE Driver discussion begins in post 1668)

I have lost track of many times that I’ve already tried this systemd method but it has never fully worked - it starts the service after reboot but something stops it after a few minutes.

It appears as if pm2 is the troublemaker. I can’t even get it to list.

pi@raspberrypi:~ $ ~/usr/local/lib/node_modules/cast-web-api-cli/node_modules/pm2/bin/pm2 list
bash: /home/pi/usr/local/lib/node_modules/cast-web-api-cli/node_modules/pm2/bin/pm2: No such file or directory


Edit: Another dumb mistake on my part. The command doesn’t need ~ when you specify the exact location of pm2, as I did. List output:
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Name β”‚ id β”‚ mode β”‚ status β”‚ β†Ί β”‚ cpu β”‚ memory β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ cast-web-api β”‚ 0 β”‚ fork β”‚ online β”‚ 0 β”‚ 0.6% β”‚ 77.2 MB β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
Use pm2 show <id|name> to get more details about an app

Edit #2: Updated pm2. List output:
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ App name β”‚ id β”‚ version β”‚ mode β”‚ pid β”‚ status β”‚ restart β”‚ uptime β”‚ cpu β”‚ mem β”‚ user β”‚ watching β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ cast-web-api β”‚ 0 β”‚ 1.2.1 β”‚ fork β”‚ 29391 β”‚ online β”‚ 0 β”‚ 17h β”‚ 0.6% β”‚ 77.0 MB β”‚ pi β”‚ disabled β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
Use pm2 show <id|name> to get more details about an app

** DRIVER UPDATE NOTICE **

Name: Google Cast V0.11
Version: 2023-08-20T18:18:08.341404914

I’ve made a couple enhancements to the driver at @Dennis 's request:

  • The number of presets has been increased to 30 in the Chromecast Manager device

  • Speaker devices now include the ability to bump the volume up or down via automations. This is implemented as simple push buttons not visible on the device Controls screen, but available to automations, Rules and API commands. The amount the volume is increased or decreased is configurable in the speaker device Settings screen.

These new options should be available on your devices once the driver is updated on your hub. You do not have to re-create your devices.

8 Likes

Thank you! Zigbee knob is inbound, ETA Sept. 5th - looking forward to testing it. :grin:

2 Likes

you rock dude

how to get more?

What are you looking for? Radio stations? Audio notification source URLs?

hi @TAustin i seem to be having a problem with speech synthesis ,
i have a sensor on the freezer , if the door is left open for a certain amount of time it tells the living room speaker to set volume to 50% speach systhesis to say the freezer is open,
its been running fine ( i had pi problems but they are sorted now ) today all i get is the pop sound when the speaker wakes ithink but no message , ive tried another routine with the same fridge to notify someone/play message on speaker and that works great .
i prefer the other way as i can set the volume etc any ideas would be great .
thanks
martin

? Select a driver. 4
2023-09-27T19:38:43.696142158+00:00 TRACE Google Cast V0.11  Received event with handler capability
2023-09-27T19:38:43.697989283+00:00 INFO Google Cast V0.11  <Device: 9876771f-1568-47d9-8fa6-1a75e39704fe (Living Room speaker)> received command: {"command":"on","args":{},"positional_args":{},"capability":"switch","component":"main"}
2023-09-27T19:38:43.755514617+00:00 TRACE Google Cast V0.11  Found CapabilityCommandDispatcher handler in GoogleCast
2023-09-27T19:38:43.756245533+00:00 INFO Google Cast V0.11  <Device: 9876771f-1568-47d9-8fa6-1a75e39704fe (Living Room speaker)> emitting event: {"component_id":"main","state":{"value":"on"},"capability_id":"switch","attribute_id":"switch"}
2023-09-27T19:38:43.757250492+00:00 DEBUG Google Cast V0.11  Sending GET /device/4acc003b74b68daad8c91cc29ab90f4a/play to 192.168.0.107:3000
2023-09-27T19:38:43.757917992+00:00 DEBUG Google Cast V0.11  Send body: nil
2023-09-27T19:38:43.785701283+00:00 TRACE Google Cast V0.11  Received event with handler capability
2023-09-27T19:38:43.787347742+00:00 TRACE Google Cast V0.11  Received event with handler capability
2023-09-27T19:38:43.900090408+00:00 WARN Google Cast V0.11  HTTP GET request to 192.168.0.107:3000 failed with code 500, status: HTTP/1.1 500 Internal Server Error
2023-09-27T19:38:43.901856700+00:00 DEBUG Google Cast V0.11  Living Room speaker device thread event handled
2023-09-27T19:38:43.916489408+00:00 INFO Google Cast V0.11  <Device: 9876771f-1568-47d9-8fa6-1a75e39704fe (Living Room speaker)> received command: {"command":"setVolume","args":{"volume":50},"positional_args":[50],"capability":"audioVolume","component":"main"}
2023-09-27T19:38:43.917259325+00:00 TRACE Google Cast V0.11  Found CapabilityCommandDispatcher handler in GoogleCast
2023-09-27T19:38:43.917937575+00:00 INFO Google Cast V0.11  Volume triggered; command=setVolume, arg=50
2023-09-27T19:38:43.918598200+00:00 INFO Google Cast V0.11  <Device: 9876771f-1568-47d9-8fa6-1a75e39704fe (Living Room speaker)> emitting event: {"component_id":"main","state":{"unit":"%","value":50},"capability_id":"audioVolume","attribute_id":"volume"}
2023-09-27T19:38:43.925681450+00:00 DEBUG Google Cast V0.11  Sending GET /device/4acc003b74b68daad8c91cc29ab90f4a/volume/50 to 192.168.0.107:3000
2023-09-27T19:38:43.929481242+00:00 DEBUG Google Cast V0.11  Send body: nil
2023-09-27T19:38:43.958297158+00:00 DEBUG Google Cast V0.11  Response:  {"response":"ok"}
2023-09-27T19:38:43.959926867+00:00 DEBUG Google Cast V0.11  Living Room speaker device thread event handled
2023-09-27T19:38:43.966762283+00:00 INFO Google Cast V0.11  <Device: 9876771f-1568-47d9-8fa6-1a75e39704fe (Living Room speaker)> received command: {"command":"speak","args":{"phrase":"Please close the fridge "},"positional_args":["Please close the fridge "],"capability":"speechSynthesis","component":"main"}
2023-09-27T19:38:43.972242325+00:00 TRACE Google Cast V0.11  Found CapabilityCommandDispatcher handler in GoogleCast
2023-09-27T19:38:43.973064283+00:00 DEBUG Google Cast V0.11  Speech Synth speak command received; phrase=Please close the fridge
2023-09-27T19:38:43.973723950+00:00 DEBUG Google Cast V0.11  Sending POST /device/4acc003b74b68daad8c91cc29ab90f4a/playMedia to 192.168.0.107:3000
2023-09-27T19:38:43.974385408+00:00 DEBUG Google Cast V0.11  Send body: [{"mediaStreamType":"BUFFERED","mediaTitle":"Please close the fridge ","mediaSubtitle":"SmartThings notification","mediaImageUrl":"https://lh3.googleusercontent.com/nQBLtHKqZycERjdjMGulMLMLDoPXnrZKYoJ8ijaVs8tDD6cypInQRtxgngk9SAXHkA=w300","mediaType":"audio/mp3","googleTTS":"en-GB"}]
2023-09-27T19:38:44.010102700+00:00 DEBUG Google Cast V0.11  Received HTTP header:      POST / HTTP/1.1
2023-09-27T19:38:44.011874158+00:00 DEBUG Google Cast V0.11  Received body:
2023-09-27T19:38:44.015797367+00:00 DEBUG Google Cast V0.11  {"id":"4acc003b74b68daad8c91cc29ab90f4a","name":"Living Room speaker","connection":"connected","address":{"port":8009,"host":"192.168.0.5"},"sessionId":null,"status":{"groupPlayback":false,"volume":50,"muted":false,"application":"","status":"","title":"","subtitle":"","image":""},"groups":["34206261-042c-4f14-9461-5681fe5400cd"],"members":[]}
2023-09-27T19:38:44.022967950+00:00 INFO Google Cast V0.11  <Device: 9876771f-1568-47d9-8fa6-1a75e39704fe (Living Room speaker)> emitting event: {"component_id":"status","state":{"value":"connected"},"capability_id":"partyvoice23922.status","attribute_id":"status"}
2023-09-27T19:38:44.031884950+00:00 INFO Google Cast V0.11  <Device: 9876771f-1568-47d9-8fa6-1a75e39704fe (Living Room speaker)> emitting event: {"component_id":"main","state":{"value":50},"capability_id":"audioVolume","attribute_id":"volume"}
2023-09-27T19:38:44.043544617+00:00 INFO Google Cast V0.11  <Device: 9876771f-1568-47d9-8fa6-1a75e39704fe (Living Room speaker)> emitting event: {"component_id":"main","state":{"value":"unmuted"},"capability_id":"audioMute","attribute_id":"mute"}
2023-09-27T19:38:44.057974325+00:00 DEBUG Google Cast V0.11     ***** lastmedia IN:
2023-09-27T19:38:44.059832367+00:00 INFO Google Cast V0.11  <Device: 9876771f-1568-47d9-8fa6-1a75e39704fe (Living Room speaker)> emitting event: {"component_id":"main","state":{"value":"stopped"},"capability_id":"mediaPlayback","attribute_id":"playbackStatus"}
2023-09-27T19:38:44.078340075+00:00 INFO Google Cast V0.11  <Device: 9876771f-1568-47d9-8fa6-1a75e39704fe (Living Room speaker)> emitting event: {"component_id":"status","state":{"value":"no status"},"capability_id":"partyvoice23922.rokumediastatus","attribute_id":"mediaStatus"}
2023-09-27T19:38:44.081412908+00:00 INFO Google Cast V0.11  <Device: 9876771f-1568-47d9-8fa6-1a75e39704fe (Living Room speaker)> emitting event: {"component_id":"main","visibility":{"displayed":false},"state":{"value":" "},"capability_id":"partyvoice23922.castmediacontrol","attribute_id":"castControl"}
2023-09-27T19:38:44.096706742+00:00 DEBUG Google Cast V0.11  New media playback state:  stopped
2023-09-27T19:38:44.098698617+00:00 INFO Google Cast V0.11  <Device: 9876771f-1568-47d9-8fa6-1a75e39704fe (Living Room speaker)> emitting event: {"component_id":"status","state":{"value":" "},"capability_id":"partyvoice23922.mediasubtitle","attribute_id":"subtitle"}
2023-09-27T19:38:44.105454158+00:00 DEBUG Google Cast V0.11     ***** lastmedia OUT:
2023-09-27T19:38:44.122329742+00:00 DEBUG Google Cast V0.11  Received HTTP header:      POST / HTTP/1.1
2023-09-27T19:38:44.122968533+00:00 DEBUG Google Cast V0.11  Received body:
2023-09-27T19:38:44.124071450+00:00 DEBUG Google Cast V0.11  {"id":"4acc003b74b68daad8c91cc29ab90f4a","name":"Living Room speaker","connection":"connected","address":{"port":8009,"host":"192.168.0.5"},"sessionId":null,"status":{"groupPlayback":false,"volume":50,"muted":false,"application":"","status":"","title":"","subtitle":"","image":""},"groups":["34206261-042c-4f14-9461-5681fe5400cd"],"members":[]}
2023-09-27T19:38:44.132994200+00:00 INFO Google Cast V0.11  <Device: 9876771f-1568-47d9-8fa6-1a75e39704fe (Living Room speaker)> emitting event: {"component_id":"status","state":{"value":"connected"},"capability_id":"partyvoice23922.status","attribute_id":"status"}
2023-09-27T19:38:44.142057908+00:00 INFO Google Cast V0.11  <Device: 9876771f-1568-47d9-8fa6-1a75e39704fe (Living Room speaker)> emitting event: {"component_id":"main","state":{"value":50},"capability_id":"audioVolume","attribute_id":"volume"}
2023-09-27T19:38:44.154285408+00:00 INFO Google Cast V0.11  <Device: 9876771f-1568-47d9-8fa6-1a75e39704fe (Living Room speaker)> emitting event: {"component_id":"main","state":{"value":"unmuted"},"capability_id":"audioMute","attribute_id":"mute"}
2023-09-27T19:38:44.176245408+00:00 DEBUG Google Cast V0.11     ***** lastmedia IN:
2023-09-27T19:38:44.176697450+00:00 INFO Google Cast V0.11  <Device: 9876771f-1568-47d9-8fa6-1a75e39704fe (Living Room speaker)> emitting event: {"component_id":"main","state":{"value":"stopped"},"capability_id":"mediaPlayback","attribute_id":"playbackStatus"}
2023-09-27T19:38:44.190895242+00:00 INFO Google Cast V0.11  <Device: 9876771f-1568-47d9-8fa6-1a75e39704fe (Living Room speaker)> emitting event: {"component_id":"status","state":{"value":"no status"},"capability_id":"partyvoice23922.rokumediastatus","attribute_id":"mediaStatus"}
2023-09-27T19:38:44.194134742+00:00 INFO Google Cast V0.11  <Device: 9876771f-1568-47d9-8fa6-1a75e39704fe (Living Room speaker)> emitting event: {"component_id":"main","visibility":{"displayed":false},"state":{"value":" "},"capability_id":"partyvoice23922.castmediacontrol","attribute_id":"castControl"}
2023-09-27T19:38:44.216162450+00:00 DEBUG Google Cast V0.11  New media playback state:  stopped
2023-09-27T19:38:44.217103450+00:00 INFO Google Cast V0.11  <Device: 9876771f-1568-47d9-8fa6-1a75e39704fe (Living Room speaker)> emitting event: {"component_id":"status","state":{"value":" "},"capability_id":"partyvoice23922.mediasubtitle","attribute_id":"subtitle"}
2023-09-27T19:38:44.219363117+00:00 DEBUG Google Cast V0.11     ***** lastmedia OUT:
2023-09-27T19:38:44.235810992+00:00 DEBUG Google Cast V0.11  Received HTTP header:      POST / HTTP/1.1
2023-09-27T19:38:44.236448242+00:00 DEBUG Google Cast V0.11  Received body:
2023-09-27T19:38:44.237557950+00:00 DEBUG Google Cast V0.11  {"id":"11af5ec767d31b885a81ffe3cb4b1b33","name":"Kitchen speaker","connection":"connected","address":{"port":8009,"host":"192.168.0.66"},"sessionId":null,"status":{"groupPlayback":false,"volume":50,"muted":false,"application":"","status":"","title":"","subtitle":"","image":""},"groups":["34206261-042c-4f14-9461-5681fe5400cd"],"members":[]}
2023-09-27T19:38:44.254752408+00:00 INFO Google Cast V0.11  <Device: 13931824-e5b5-42e8-8b06-53412abdd60d (Kitchen speaker)> emitting event: {"component_id":"status","state":{"value":"connected"},"capability_id":"partyvoice23922.status","attribute_id":"status"}
2023-09-27T19:38:44.276873408+00:00 INFO Google Cast V0.11  <Device: 13931824-e5b5-42e8-8b06-53412abdd60d (Kitchen speaker)> emitting event: {"component_id":"main","state":{"value":50},"capability_id":"audioVolume","attribute_id":"volume"}
2023-09-27T19:38:44.294809325+00:00 INFO Google Cast V0.11  <Device: 13931824-e5b5-42e8-8b06-53412abdd60d (Kitchen speaker)> emitting event: {"component_id":"main","state":{"value":"unmuted"},"capability_id":"audioMute","attribute_id":"mute"}
2023-09-27T19:38:44.307692825+00:00 DEBUG Google Cast V0.11     ***** lastmedia IN:
2023-09-27T19:38:44.308337575+00:00 INFO Google Cast V0.11  <Device: 13931824-e5b5-42e8-8b06-53412abdd60d (Kitchen speaker)> emitting event: {"component_id":"main","state":{"value":"stopped"},"capability_id":"mediaPlayback","attribute_id":"playbackStatus"}
2023-09-27T19:38:44.326069575+00:00 INFO Google Cast V0.11  <Device: 13931824-e5b5-42e8-8b06-53412abdd60d (Kitchen speaker)> emitting event: {"component_id":"status","state":{"value":"no status"},"capability_id":"partyvoice23922.rokumediastatus","attribute_id":"mediaStatus"}
2023-09-27T19:38:44.336731825+00:00 INFO Google Cast V0.11  <Device: 13931824-e5b5-42e8-8b06-53412abdd60d (Kitchen speaker)> emitting event: {"component_id":"main","visibility":{"displayed":false},"state":{"value":" "},"capability_id":"partyvoice23922.castmediacontrol","attribute_id":"castControl"}
2023-09-27T19:38:44.358545658+00:00 DEBUG Google Cast V0.11  New media playback state:  stopped
2023-09-27T19:38:44.359478533+00:00 INFO Google Cast V0.11  <Device: 13931824-e5b5-42e8-8b06-53412abdd60d (Kitchen speaker)> emitting event: {"component_id":"status","state":{"value":" "},"capability_id":"partyvoice23922.mediasubtitle","attribute_id":"subtitle"}
2023-09-27T19:38:44.361751075+00:00 DEBUG Google Cast V0.11     ***** lastmedia OUT:
2023-09-27T19:38:44.378552658+00:00 DEBUG Google Cast V0.11  Received HTTP header:      POST / HTTP/1.1
2023-09-27T19:38:44.379301450+00:00 DEBUG Google Cast V0.11  Received body:
2023-09-27T19:38:44.380424325+00:00 DEBUG Google Cast V0.11  {"id":"34206261-042c-4f14-9461-5681fe5400cd","name":"Home group","connection":"connected","address":{"port":32059,"host":"192.168.0.66"},"sessionId":null,"status":{"groupPlayback":false,"volume":50,"muted":false,"application":"","status":"","title":"","subtitle":"","image":""},"groups":[],"members":["4acc003b74b68daad8c91cc29ab90f4a","11af5ec767d31b885a81ffe3cb4b1b33"]}
2023-09-27T19:38:44.389445117+00:00 INFO Google Cast V0.11  <Device: 338504d3-dd90-4c1a-a45b-54a878aa89b8 (Home group)> emitting event: {"component_id":"status","state":{"value":"connected"},"capability_id":"partyvoice23922.status","attribute_id":"status"}
2023-09-27T19:38:44.398586825+00:00 INFO Google Cast V0.11  <Device: 338504d3-dd90-4c1a-a45b-54a878aa89b8 (Home group)> emitting event: {"component_id":"main","state":{"value":50},"capability_id":"audioVolume","attribute_id":"volume"}
2023-09-27T19:38:44.412533825+00:00 INFO Google Cast V0.11  <Device: 338504d3-dd90-4c1a-a45b-54a878aa89b8 (Home group)> emitting event: {"component_id":"main","state":{"value":"unmuted"},"capability_id":"audioMute","attribute_id":"mute"}
2023-09-27T19:38:44.426063908+00:00 DEBUG Google Cast V0.11     ***** lastmedia IN:
2023-09-27T19:38:44.427925575+00:00 INFO Google Cast V0.11  <Device: 338504d3-dd90-4c1a-a45b-54a878aa89b8 (Home group)> emitting event: {"component_id":"main","state":{"value":"stopped"},"capability_id":"mediaPlayback","attribute_id":"playbackStatus"}
2023-09-27T19:38:44.450104742+00:00 INFO Google Cast V0.11  <Device: 338504d3-dd90-4c1a-a45b-54a878aa89b8 (Home group)> emitting event: {"component_id":"status","state":{"value":"no status"},"capability_id":"partyvoice23922.rokumediastatus","attribute_id":"mediaStatus"}
2023-09-27T19:38:44.453960992+00:00 INFO Google Cast V0.11  <Device: 338504d3-dd90-4c1a-a45b-54a878aa89b8 (Home group)> emitting event: {"component_id":"main","visibility":{"displayed":false},"state":{"value":" "},"capability_id":"partyvoice23922.castmediacontrol","attribute_id":"castControl"}
2023-09-27T19:38:44.474345492+00:00 DEBUG Google Cast V0.11  New media playback state:  stopped
2023-09-27T19:38:44.475323700+00:00 INFO Google Cast V0.11  <Device: 338504d3-dd90-4c1a-a45b-54a878aa89b8 (Home group)> emitting event: {"component_id":"status","state":{"value":" "},"capability_id":"partyvoice23922.mediasubtitle","attribute_id":"subtitle"}
2023-09-27T19:38:44.477884117+00:00 DEBUG Google Cast V0.11     ***** lastmedia OUT:
2023-09-27T19:38:44.488198242+00:00 DEBUG Google Cast V0.11  Response:  {"response":"ok"}
2023-09-27T19:38:44.488646450+00:00 DEBUG Google Cast V0.11  Living Room speaker device thread event handled
2023-09-27T19:38:46.282041824+00:00 DEBUG Google Cast V0.11  Received HTTP header:      POST / HTTP/1.1
2023-09-27T19:38:46.283965033+00:00 DEBUG Google Cast V0.11  Received body:
2023-09-27T19:38:46.287497824+00:00 DEBUG Google Cast V0.11  {"id":"4acc003b74b68daad8c91cc29ab90f4a","name":"Living Room speaker","connection":"connected","address":{"port":8009,"host":"192.168.0.5"},"sessionId":"ebcce3f4-ad04-48b3-8791-996c9b7263d7","status":{"groupPlayback":false,"volume":50,"muted":false,"application":"Default Media Receiver","status":"","title":"","subtitle":"","image":""},"groups":["34206261-042c-4f14-9461-5681fe5400cd"],"members":[]}
2023-09-27T19:38:46.305143824+00:00 INFO Google Cast V0.11  <Device: 9876771f-1568-47d9-8fa6-1a75e39704fe (Living Room speaker)> emitting event: {"component_id":"status","state":{"value":"connected"},"capability_id":"partyvoice23922.status","attribute_id":"status"}
2023-09-27T19:38:46.308639324+00:00 INFO Google Cast V0.11  <Device: 9876771f-1568-47d9-8fa6-1a75e39704fe (Living Room speaker)> emitting event: {"component_id":"main","state":{"value":50},"capability_id":"audioVolume","attribute_id":"volume"}
2023-09-27T19:38:46.331250116+00:00 INFO Google Cast V0.11  <Device: 9876771f-1568-47d9-8fa6-1a75e39704fe (Living Room speaker)> emitting event: {"component_id":"main","state":{"value":"unmuted"},"capability_id":"audioMute","attribute_id":"mute"}
2023-09-27T19:38:46.356079074+00:00 DEBUG Google Cast V0.11     ***** lastmedia IN:
2023-09-27T19:38:46.356528324+00:00 INFO Google Cast V0.11  <Device: 9876771f-1568-47d9-8fa6-1a75e39704fe (Living Room speaker)> emitting event: {"component_id":"main","state":{"value":"stopped"},"capability_id":"mediaPlayback","attribute_id":"playbackStatus"}
2023-09-27T19:38:46.371714824+00:00 INFO Google Cast V0.11  <Device: 9876771f-1568-47d9-8fa6-1a75e39704fe (Living Room speaker)> emitting event: {"component_id":"status","state":{"value":"no status"},"capability_id":"partyvoice23922.rokumediastatus","attribute_id":"mediaStatus"}
2023-09-27T19:38:46.375010116+00:00 INFO Google Cast V0.11  <Device: 9876771f-1568-47d9-8fa6-1a75e39704fe (Living Room speaker)> emitting event: {"component_id":"main","visibility":{"displayed":false},"state":{"value":" "},"capability_id":"partyvoice23922.castmediacontrol","attribute_id":"castControl"}
2023-09-27T19:38:46.389241574+00:00 DEBUG Google Cast V0.11  New media playback state:  stopped
2023-09-27T19:38:46.391125616+00:00 INFO Google Cast V0.11  <Device: 9876771f-1568-47d9-8fa6-1a75e39704fe (Living Room speaker)> emitting event: {"component_id":"status","state":{"value":"Default Media Receiver"},"capability_id":"partyvoice23922.rokucurrentapp","attribute_id":"currentApp"}
2023-09-27T19:38:46.399825824+00:00 INFO Google Cast V0.11  <Device: 9876771f-1568-47d9-8fa6-1a75e39704fe (Living Room speaker)> emitting event: {"component_id":"status","state":{"value":" "},"capability_id":"partyvoice23922.mediasubtitle","attribute_id":"subtitle"}
2023-09-27T19:38:46.408494574+00:00 DEBUG Google Cast V0.11     ***** lastmedia OUT:
listening for logs... done

I do see errors being returned by that device like this:

HTTP GET request to 192.168.0.107:3000 failed with code 500, status: HTTP/1.1 500 Internal Server Error

I don’t know the cause if it. I can also see where the speech synch request was sent, but the speaker never sent an OK acknowledgement.

But later commands sent to that device seemed to have worked ok.

Can you play anything else on that speaker through the SmartThings device - like a preset station or a notification?

Just so I’m clear - this was something you did through the same SmartThings device/driver, or was that some other method?

Are you able to use speech synthesis on any other speaker?

You mentioned some issues with your Pi, and it reminds me that I had to modify the castwebapi software on my Pi to get speech synthesis to work. So my question to you is, did you have speech synthesis working prior to your Pi problems? If so, is there a chance maybe you reinstalled castwebapi and over-wrote any sw changes you might have made?

Hi yes it was working before the pi problems , presets still work fine ,as well as eg-

But not the following .

I think i remember we had to change /replace tts json or something a while bavk but could have dreamed it .

Thanks martin

well ive sorted it :smiley: with the help of your github ,

thanks
martin

1 Like

Hi i like to install this on my synology. Not family with the steps. Do anyone have the details how to do this? Thanks

Have you looked at the installation instructions HERE ?

You can also reference my README file here.

When I try to install casp-web-api-cli, i keep getting this in the log.
Since these mention grpc, I did the --unsafe-perm for the install. Nothing changed.

node /usr/local/lib/node_modules/cast-web-api-cli/node_modules/cast-web-api/api.js: symbol lookup error: /usr/local/lib/node_modules/cast-web-api-cli/node_modules/grpc/src/node/extension_binary/node-v108-linux-x64-glibc/grpc_node.node: undefined symbol: __wrap_memcpy

What OS are you on? I’m wondering if you are missing a required Node library.

thanks. Fedora 38

npm WARN deprecated source-map-url@0.4.1: See GitHub - lydell/source-map-url: [DEPRECATED] Tools for working with sourceMappingURL comments.

npm WARN deprecated urix@0.1.0: Please see GitHub - lydell/urix: [DEPRECATED] Makes Windows-style paths more unix and URI friendly.

npm WARN deprecated har-validator@5.1.5: this library is no longer supported

npm WARN deprecated resolve-url@0.2.1: GitHub - lydell/resolve-url: [DEPRECATED] Like Node.js’ `path.resolve`/`url.resolve` for the browser.

npm WARN deprecated source-map-resolve@0.5.3: See GitHub - lydell/source-map-resolve: [DEPRECATED] Resolve the source map and/or sources for a generated file.

npm WARN deprecated chokidar@2.1.8: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies

npm WARN deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (ReDos Vulnerability Regression Visibility Notice Β· Issue #797 Β· debug-js/debug Β· GitHub)

npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See There’s Math.random(), and then there’s Math.random() Β· V8 for details.

npm WARN deprecated mkdirp@0.5.1: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)

npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142

npm WARN deprecated axios@0.19.2: Critical security vulnerability fixed in v0.21.1. For more information, see https://github.com/axios/axios/pull/3410

npm WARN deprecated grpc@1.24.11: This library will not receive further updates other than security fixes. We recommend using @grpc/grpc-js instead.

added 623 packages in 3m

Hi @TAustin, thanks, yes i looked at the installation instructions, but i do not know how to install the package with synology. is there some basic guidelines to install this in synology? do i need to create a docker etc. i am not familar with the installation in synology… thanks

1 Like

@Tin_Hwee_Wang I am successfully using this docker container for cast-web-api. I’m not running it on synology, but I imagine you could get it to work there.

2 Likes

A quick google search brought me to this thread: Can't install using pip on ubuntu 19.04 Β· Issue #22645 Β· grpc/grpc Β· GitHub

Seems to be related to a compiler option issue with grpc. You might try upgrading to Fedora 39 if you can to see if it fixes it.

Hopefully @Hoodah77 's reply is helpful to you, as I don’t know anything about a Synology box or what implications that may have on installing the cast-web-api app.

1 Like

@Hoodah77, @TAustin , thanks that is helpful, will try to figure out how to install it with the above. appreciated.

1 Like

@Hoodah77 and @TAustin , thanks, everything works perfect. i am able to run this on the synology docker

3 Likes