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

I have a problem. I have cast-web running on a linux box and everything seems to be working until after I run discovery. It finds all my devices, but if I pick a device and then hit next I just get a blank screen. I used to run this service on windows and when I clicked next it would verify the device I picked with a long string of characters. Any thoughts?

Are you using the classic app or STSC?

Classic App

Try rebooting your sever. Youā€™ve enabled Oauth for the app?

When you moved from one server to the other, did you uninstall and re-install the app or just modify the IP address of the server in the cast-web connect app?

Oath is not enabled. When I moved from windows to Linux I removed all my devices and the smart app through Smarthings API web. I then added a new smart app, gave it my linux machines IP/port and went from there.

Rebooted, same outcome. After I discover my devices, it finds all my devices but when I select one and hit next I just get a blank screen. Is there something on the server I can look for (logs) that will help? I just started the cast-web-api up from the command line to watch itā€™s output and after it starts I see it run discovery and return all my devices.

I do see the command line also return errors as such as well as my device discovery:

2018-12-27T17:42:52.485Z discover(): exception while prcessing service: TypeError: Cannot read property ā€˜0ā€™ of undefined

What type of GH devices are you trying to add? Did they work before?

Iā€™m adding a few different things that all worked when I was hitting my windows sever.

  1. 2 Google Homeā€™s
  2. 6 Google Miniā€™s
  3. 3 Insignia Smart Speakers
  4. 1 Lenovo Home Hub

Just to test sanity I removed the smart app and then added it back with my windows server and everything works as described. Maybe something else Iā€™m running on that Linux box? That Linux machine is running mqtt to smarthings server on it and I feel like Iā€™ve had issues with something else due to that piece running.

Thatā€™s possible. What ports does that use? Cast web API will use several different ports in addition to 3000 it uses to connect to ST. You might want to try using a docker installation with the Docker Bridge network. I havenā€™t figured out how to do that yet though. You can try to test it by stopping the MQTT server and seeing if it works.
Just out of curiosity, what type of Linux server are we talking about here? They do meet the minimum requirements for the Google Assistant SDK, right? Has to be at least ARM7 (not AM6) for example.

Iā€™m running image

I stopped the dock running smart-things mqtt server and still get nothing. Same old story.

Add a new cast-web, enter the linux machines IP/Port (running on 4000 as 3000 gets in the way of UNMS), discover (it finds all 19 devices), go to add oneā€¦ and then iā€™m greeted with a blank page in the classic Smartthings app.

** I also tried stopping all my docker containers as well. UNMS, Node-Red, Smartthings-mqtt

Is Cast web running in Docker? Do you have all ports forwarded to your container or just 4000? Iā€™m willing to bet itā€™s docker thatā€™s doing it.

For a while Iā€™ve been having an issue where I try to cast via Webcore to a GH device and all I get is a beep with no spoken text. Using the same webcore script Iā€™m able to have my Amazon tablets speak the same text, so it isnā€™t the script. Not sure if issue is with the Cast-Web app or my router settings (I havenā€™t customized any or changed routers but it is possible Verizon did something on their end to change security) or maybe something else. Any suggestions?

Are you using the default Google TTS? Or did you change to a different voice?

Yes - default voice

Got this to work by doing npm update on node.js. Canā€™t say I exactly knew what I was doing but followed some web directions after seeing error message in node.js log of ā€œget key failed from googleā€. If anyone else is having this problem I hope this helps.

Good afternoon,

Iā€™ve read and tried everything here, and I still have all devices showing up as cast-web-device.

Everything went very smoothly. Iā€™m running the api on a raspberry pi.

  • When I Test API connection in the SmartApp, it says ā€œConnected OK: 200ā€
  • When I discover devices, it finds 12, all listed perfectly as I have them named.
  • When I add devices from the list, it lists them with their IDs fine
  • I can access the api from any device or browser just fine, and it shows me v1.0.2
  • The devices listed can pause and playback something Iā€™ve already started casting
  • When I try to open the cast-web-device devices, it flashes white and goes back to the things list.
  • Iā€™ve definitely done everything on the FAQ page, including individually reinstalling every DTH and the smartapp, even reinstalled the api on the pi.

Iā€™m definitely on the same network (only have one) and do not have any kind of firewallā€¦

Is there something I can try next, or log something somehow? I know that when I runn the api manually, there are a lot of red errors that come up when Iā€™m trying to access the cast-web-device in the things list, and at other times when I add devices, etc. Thanks in advance for your help. This looks like exactly what Iā€™ve been looking for!

Update: I just installed node.js and the api on a Windows machine, and everything is the same. Same exact issues.

What do you mean, when you try to open the cast web devices? Where are you trying to open them?

Iā€™m referring to clicking the thingsIn the things list, all of which are named cast-web-device.
When I click the play/pause directly from the list, they actually do that function. But I canā€™t open the things

Can you provide a screenshot of what you are talking about? in the device list? in the smartapp? where?

Sure.