Are you running cast-web on a pi?
No, a mini PC with Windows 10
I asked because the service on my pi has never persisted after reboot - no matter how many times Iβve tried setting it up. It will start after reboot but then inexplicably stop after approximately 3-5 minutes.
Good choice. My pi4b has become a handicap for my networking needs, and now Iβm considering moving everything linux-related over to a virtual machine on a um790 pro.
What are you doing to have it autostart. Did you use this command?
cast-web-api-cli startup
That is supposed to configure it to automatically start and bootup. Itβs never given me any problems on a Pi 3, although I donβt think Iβve updated the OS on that machine in a long long time!
Iβve followed the startup guide, repeatedly. What version of npm are you using? Do I need to update my node.js version? Iβm seeing this:
pi@raspberrypi:~ $ sudo npm audit
npm WARN cli npm v9.8.1 does not support Node.js v14.15.0. This version of npm supports the following node versions:^14.17.0 || ^16.13.0 || >=18.0.0
. You can find the latest version at https://nodejs.org/.
npm ERR! code ENOLOCK
npm ERR! audit This command requires an existing lockfile.
npm ERR! audit Try creating one first with: npm i --package-lock-only
npm ERR! audit Original error: loadVirtual requires existing shrinkwrap filenpm ERR! A complete log of this run can be found in: /root/.npm/_logs/2023-08-20T19_03_18_961Z-debug-0.log
I donβt think that would be causing the startup problem, but who knows.
You should probably just go ahead and update both node and npm.
OK, theyβre up-to-date. npmβs n module made the process super easy. Cronjob created as failsafe. Hopefully it did the trick.
I did some more digging around and it looks like cast-web-api uses a utility called pm2 to handle starting/stopping/autoloading of cast-web-api. So if you are trying to ALSO set up a systemd service or cronjob, or other method to autostart the app at boot time, then you are probably causing a conflict. PM2 itself needs to be auto-starting at system boot and then it takes care of starting up other tasks such as cast-web-api, and keeps them running - auto restarting it if it crashes, for example.
Best to let cast-web-api and pm2 do its own thing using this command to ensure autostart:
cast-web-api-cli startup
If you want to learn more about pm2, this is a good explanation. A couple sample pm2 commands:
~/.npm-global/lib/node_modules/cast-web-api-cli/node_modules/pm2/bin/pm2 list
-- OR --
~/.npm-global/lib/node_modules/cast-web-api-cli/node_modules/pm2/bin/pm2 logs
Note that your directory path may be something different.
To expand on pm2, there are some steps to be followed to make sure pm2 is autostarting:
~/.npm-global/lib/node_modules/cast-web-api-cli/node_modules/pm2/bin/pm2 startup
This will result in showing a command that you need to run - something like this:
sudo env PATH=$PATH:/usr/local/bin /home/pi/.npm-global/lib/node_modules/cast-web-api-cli/node_modules/pm2/bin/pm2 startup systemd -u pi --hp /home/pi
So copy and paste that command to execute it.
At this stage, make sure you havenβt started cast-web-api by any means other than using the cast-web-api-cli tool. In other words, make sure you donβt have a duplicate process running via some other method.
Confirm pm2 is currently running cast-web-api with this command:
~/.npm-global/lib/node_modules/cast-web-api-cli/node_modules/pm2/bin/pm2 list
cast-web-api should be listed if it is currently running. If not, starting it now:
cast-web-api-cli start
Once cast-web-api starts ok, then do this final command to ensure pm2 remembers it at next boot:
~/.npm-global/lib/node_modules/cast-web-api-cli/node_modules/pm2/bin/pm2 save
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.
Thank you! Zigbee knob is inbound, ETA Sept. 5th - looking forward to testing it.
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