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

no error messages this is the log for checking and trying to add,tryed a phone reboot last night but the same


is it something to do with this as the string path is only /device ?
def sendHttpRequest(String host, String path) {
logger(‘debug’, “Executing ‘sendHttpRequest’ host: “+host+” path: “+path)
sendHubCommand(new physicalgraph.device.HubAction(””“GET ${path} HTTP/1.1\r\nHOST: $host\r\n\r\n”"", physicalgraph.device.Protocol.LAN, host, [callback: hubResponseReceived]))

Oh I think it’s the double trailing slashes. Your url ends up to be 192.168.0.20:3000//device

Should be 192.168.0.20:3000/device

Just change the host address in the smart manager by removing the last /

Oh and also remove the htttp, maybe I’ll add an st specific address output for st in the api on startup.

Thank you - the documentation for installing it is very useful and clear.

I had a little trouble getting npm to install the update but it eventually worked. I also ran into the issue with http in the API host address of the SM (the documentation will need updating) but now I have everything working as it was before with the older version. I am using a Windows PC for the node.js and mainly use the speakers for announcements from WebCoRE.
Next I can start experimenting with the new features.

Thank you for all your efforts and for sharing with the community :slight_smile:

1 Like

Sorted thanks

1 Like

Updated the ‘first steps’ to make it more clear what to copy!

1 Like

what does the cast-web-api device handler (thing) for/do? do you not refresh/update via the smartapp.

Also (sory) where do i drop the data copyed from the preset generator? i cant find a link to the guid

It just refreshes all devices connected to the api and the connection between the api and ST. If something doesn’t work on multiple devices, or you restarted the api, hit that button.

In the service manager > tap on a device you want to paste it to > hit the (x) on the current preset string > paste it in > ‘done’ .

There’s also a button below that, where you can edit the current preset. It will automatically copy it to the browser for you.

thanks makes sense now i never scroled down that far in the app

Also (sory x2) can you change the device names (things), i tryed but it didnt save. do i have to do them in googlehome the it will cascade

Not sure what you mean by ‘it will cascade’ but if it’s just about renaming:

For now the Google Home app is your only (lasting) option. Next release will have an option to turn the name synchronization off.
Added it to the feature vote and will make it into next release for sure!

883ea96a-b288-43da-9b15-f595d8442832  10:19:33 AM: debug getChildDevices(false), children=0
883ea96a-b288-43da-9b15-f595d8442832  10:19:33 AM: debug getChildDevices(false), children=0
883ea96a-b288-43da-9b15-f595d8442832  10:19:31 AM: debug index 1: Kitchen Home, 211e63769c78d7519b052d44b05c2e04
883ea96a-b288-43da-9b15-f595d8442832  10:19:31 AM: debug JSON rcvd: [[id:45f0b6eb15ea753f55ef9a7ca4e202cf, connection:disconnected, status:[title:, application:, status:, muted:false, subtitle:, volume:0, image:], address:[port:8009, host:192.168.2.99], name:SHIELD], [id:211e63769c78d7519b052d44b05c2e04, connection:disconnected, status:[title:, application:, status:, muted:false, subtitle:, volume:0, image:], address:[port:8009, host:192.168.2.26], name:Kitchen Home, groups:[]], [id:a864ac887f6f3f03089ff0c4adb8f8ff, connection:disconnected, status:[title:, application:, status:, muted:false, subtitle:, volume:0, image:], address:[port:8009, host:192.168.2.34], name:Family Room, groups:[]]], JSON.size: 3
883ea96a-b288-43da-9b15-f595d8442832  10:19:31 AM: debug Parsing 'index:1B, mac:B827EB767A7A, ip:C0A80207, port:0BB8, requestId:69d9cf57-3548-445f-adb4-7f6f08f0c411, callback:true, headers:SFRUUC8xLjEgMjAwIE9LDQpDb250ZW50LVR5cGU6IGFwcGxpY2F0aW9uL2pzb247IGNoYXJzZXQ9dXRmLTgNCkRhdGU6IFdlZCwgMTMgSnVuIDIwMTggMTQ6MTk6MzEgR01UDQpDb25uZWN0aW9uOiBrZWVwLWFsaXZlDQpDb250ZW50LUxlbmd0aDogNzM1, body:W3siaWQiOiI0NWYwYjZlYjE1ZWE3NTNmNTVlZjlhN2NhNGUyMDJjZiIsIm5hbWUiOiJTSElFTEQiLCJjb25uZWN0aW9uIjoiZGlzY29ubmVjdGVkIiwiYWRkcmVzcyI6eyJob3N0IjoiMTkyLjE2OC4yLjk5IiwicG9ydCI6ODAwOX0sInN0YXR1cyI6eyJ2b2x1bWUiOjAsIm11dGVkIjpmYWxzZSwiYXBwbGljYXRpb24iOiIiLCJzdGF0dXMiOiIiLCJ0aXRsZSI6IiIsInN1YnRpdGxlIjoiIiwiaW1hZ2UiOiIifX0seyJpZCI6IjIxMWU2Mzc2OWM3OGQ3NTE5YjA1MmQ0NGIwNWMyZTA0IiwibmFtZSI6IktpdGNoZW4gSG9tZSIsImNvbm5lY3Rpb24iOiJkaXNjb25uZWN0ZWQiLCJhZGRyZXNzIjp7Imhvc3QiOiIxOTIuMTY4LjIuMjYiLCJwb3J0Ijo4MDA5fSwic3RhdHVzIjp7InZvbHVtZSI6MCwibXV0ZWQiOmZhbHNlLCJhcHBsaWNhdGlvbiI6IiIsInN0YXR1cyI6IiIsInRpdGxlIjoiIiwic3VidGl0bGUiOiIiLCJpbWFnZSI6IiJ9LCJncm91cHMiOltdfSx7ImlkIjoiYTg2NGFjODg3ZjZmM2YwMzA4OWZmMGM0YWRiOGY4ZmYiLCJuYW1lIjoiRmFtaWx5IFJvb20iLCJjb25uZWN0aW9uIjoiZGlzY29ubmVjdGVkIiwiYWRkcmVzcyI6eyJob3N0IjoiMTkyLjE2OC4yLjM0IiwicG9ydCI6ODAwOX0sInN0YXR1cyI6eyJ2b2x1bWUiOjAsIm11dGVkIjpmYWxzZSwiYXBwbGljYXRpb24iOiIiLCJzdGF0dXMiOiIiLCJ0aXRsZSI6IiIsInN1YnRpdGxlIjoiIiwiaW1hZ2UiOiIifSwiZ3JvdXBzIjpbXX1d'
883ea96a-b288-43da-9b15-f595d8442832  10:19:31 AM: debug index 0: SHIELD, 45f0b6eb15ea753f55ef9a7ca4e202cf
883ea96a-b288-43da-9b15-f595d8442832  10:19:31 AM: debug Parsing 'index:1B, mac:B827EB767A7A, ip:C0A80207, port:0BB8, requestId:69d9cf57-3548-445f-adb4-7f6f08f0c411, callback:true, headers:SFRUUC8xLjEgMjAwIE9LDQpDb250ZW50LVR5cGU6IGFwcGxpY2F0aW9uL2pzb247IGNoYXJzZXQ9dXRmLTgNCkRhdGU6IFdlZCwgMTMgSnVuIDIwMTggMTQ6MTk6MzEgR01UDQpDb25uZWN0aW9uOiBrZWVwLWFsaXZlDQpDb250ZW50LUxlbmd0aDogNzM1, body:W3siaWQiOiI0NWYwYjZlYjE1ZWE3NTNmNTVlZjlhN2NhNGUyMDJjZiIsIm5hbWUiOiJTSElFTEQiLCJjb25uZWN0aW9uIjoiZGlzY29ubmVjdGVkIiwiYWRkcmVzcyI6eyJob3N0IjoiMTkyLjE2OC4yLjk5IiwicG9ydCI6ODAwOX0sInN0YXR1cyI6eyJ2b2x1bWUiOjAsIm11dGVkIjpmYWxzZSwiYXBwbGljYXRpb24iOiIiLCJzdGF0dXMiOiIiLCJ0aXRsZSI6IiIsInN1YnRpdGxlIjoiIiwiaW1hZ2UiOiIifX0seyJpZCI6IjIxMWU2Mzc2OWM3OGQ3NTE5YjA1MmQ0NGIwNWMyZTA0IiwibmFtZSI6IktpdGNoZW4gSG9tZSIsImNvbm5lY3Rpb24iOiJkaXNjb25uZWN0ZWQiLCJhZGRyZXNzIjp7Imhvc3QiOiIxOTIuMTY4LjIuMjYiLCJwb3J0Ijo4MDA5fSwic3RhdHVzIjp7InZvbHVtZSI6MCwibXV0ZWQiOmZhbHNlLCJhcHBsaWNhdGlvbiI6IiIsInN0YXR1cyI6IiIsInRpdGxlIjoiIiwic3VidGl0bGUiOiIiLCJpbWFnZSI6IiJ9LCJncm91cHMiOltdfSx7ImlkIjoiYTg2NGFjODg3ZjZmM2YwMzA4OWZmMGM0YWRiOGY4ZmYiLCJuYW1lIjoiRmFtaWx5IFJvb20iLCJjb25uZWN0aW9uIjoiZGlzY29ubmVjdGVkIiwiYWRkcmVzcyI6eyJob3N0IjoiMTkyLjE2OC4yLjM0IiwicG9ydCI6ODAwOX0sInN0YXR1cyI6eyJ2b2x1bWUiOjAsIm11dGVkIjpmYWxzZSwiYXBwbGljYXRpb24iOiIiLCJzdGF0dXMiOiIiLCJ0aXRsZSI6IiIsInN1YnRpdGxlIjoiIiwiaW1hZ2UiOiIifSwiZ3JvdXBzIjpbXX1d'
883ea96a-b288-43da-9b15-f595d8442832  10:19:31 AM: debug index 2: Family Room, a864ac887f6f3f03089ff0c4adb8f8ff
883ea96a-b288-43da-9b15-f595d8442832  10:19:31 AM: debug devices: [45f0b6eb15ea753f55ef9a7ca4e202cf:SHIELD, 211e63769c78d7519b052d44b05c2e04:Kitchen Home, a864ac887f6f3f03089ff0c4adb8f8ff:Family Room]
883ea96a-b288-43da-9b15-f595d8442832  10:19:31 AM: debug index 1: Kitchen Home, 211e63769c78d7519b052d44b05c2e04
883ea96a-b288-43da-9b15-f595d8442832  10:19:31 AM: debug index 0: SHIELD, 45f0b6eb15ea753f55ef9a7ca4e202cf
883ea96a-b288-43da-9b15-f595d8442832  10:19:31 AM: debug devices: [45f0b6eb15ea753f55ef9a7ca4e202cf:SHIELD, 211e63769c78d7519b052d44b05c2e04:Kitchen Home, a864ac887f6f3f03089ff0c4adb8f8ff:Family Room]
883ea96a-b288-43da-9b15-f595d8442832  10:19:31 AM: debug Parsing 'index:19, mac:B827EB767A7A, ip:C0A80207, port:0BB8, requestId:a485726f-7b02-443c-a32b-cebe7462919c, callback:true, headers:SFRUUC8xLjEgMjAwIE9LDQpDb250ZW50LVR5cGU6IGFwcGxpY2F0aW9uL2pzb247IGNoYXJzZXQ9dXRmLTgNCkRhdGU6IFdlZCwgMTMgSnVuIDIwMTggMTQ6MTk6MzEgR01UDQpDb25uZWN0aW9uOiBrZWVwLWFsaXZlDQpDb250ZW50LUxlbmd0aDogNzM1, body:W3siaWQiOiI0NWYwYjZlYjE1ZWE3NTNmNTVlZjlhN2NhNGUyMDJjZiIsIm5hbWUiOiJTSElFTEQiLCJjb25uZWN0aW9uIjoiZGlzY29ubmVjdGVkIiwiYWRkcmVzcyI6eyJob3N0IjoiMTkyLjE2OC4yLjk5IiwicG9ydCI6ODAwOX0sInN0YXR1cyI6eyJ2b2x1bWUiOjAsIm11dGVkIjpmYWxzZSwiYXBwbGljYXRpb24iOiIiLCJzdGF0dXMiOiIiLCJ0aXRsZSI6IiIsInN1YnRpdGxlIjoiIiwiaW1hZ2UiOiIifX0seyJpZCI6IjIxMWU2Mzc2OWM3OGQ3NTE5YjA1MmQ0NGIwNWMyZTA0IiwibmFtZSI6IktpdGNoZW4gSG9tZSIsImNvbm5lY3Rpb24iOiJkaXNjb25uZWN0ZWQiLCJhZGRyZXNzIjp7Imhvc3QiOiIxOTIuMTY4LjIuMjYiLCJwb3J0Ijo4MDA5fSwic3RhdHVzIjp7InZvbHVtZSI6MCwibXV0ZWQiOmZhbHNlLCJhcHBsaWNhdGlvbiI6IiIsInN0YXR1cyI6IiIsInRpdGxlIjoiIiwic3VidGl0bGUiOiIiLCJpbWFnZSI6IiJ9LCJncm91cHMiOltdfSx7ImlkIjoiYTg2NGFjODg3ZjZmM2YwMzA4OWZmMGM0YWRiOGY4ZmYiLCJuYW1lIjoiRmFtaWx5IFJvb20iLCJjb25uZWN0aW9uIjoiZGlzY29ubmVjdGVkIiwiYWRkcmVzcyI6eyJob3N0IjoiMTkyLjE2OC4yLjM0IiwicG9ydCI6ODAwOX0sInN0YXR1cyI6eyJ2b2x1bWUiOjAsIm11dGVkIjpmYWxzZSwiYXBwbGljYXRpb24iOiIiLCJzdGF0dXMiOiIiLCJ0aXRsZSI6IiIsInN1YnRpdGxlIjoiIiwiaW1hZ2UiOiIifSwiZ3JvdXBzIjpbXX1d'
883ea96a-b288-43da-9b15-f595d8442832  10:19:31 AM: debug devices: [45f0b6eb15ea753f55ef9a7ca4e202cf:SHIELD, 211e63769c78d7519b052d44b05c2e04:Kitchen Home, a864ac887f6f3f03089ff0c4adb8f8ff:Family Room]
883ea96a-b288-43da-9b15-f595d8442832  10:19:31 AM: debug index 1: Kitchen Home, 211e63769c78d7519b052d44b05c2e04
883ea96a-b288-43da-9b15-f595d8442832  10:19:31 AM: debug JSON rcvd: [[id:45f0b6eb15ea753f55ef9a7ca4e202cf, connection:disconnected, status:[title:, application:, status:, muted:false, subtitle:, volume:0, image:], address:[port:8009, host:192.168.2.99], name:SHIELD], [id:211e63769c78d7519b052d44b05c2e04, connection:disconnected, status:[title:, application:, status:, muted:false, subtitle:, volume:0, image:], address:[port:8009, host:192.168.2.26], name:Kitchen Home, groups:[]], [id:a864ac887f6f3f03089ff0c4adb8f8ff, connection:disconnected, status:[title:, application:, status:, muted:false, subtitle:, volume:0, image:], address:[port:8009, host:192.168.2.34], name:Family Room, groups:[]]], JSON.size: 3
883ea96a-b288-43da-9b15-f595d8442832  10:19:31 AM: debug Parsing 'index:18, mac:B827EB767A7A, ip:C0A80207, port:0BB8, requestId:2d532d07-30f7-49ef-a009-ecb698537dc5, callback:true, headers:SFRUUC8xLjEgMjAwIE9LDQpDb250ZW50LVR5cGU6IGFwcGxpY2F0aW9uL2pzb247IGNoYXJzZXQ9dXRmLTgNCkRhdGU6IFdlZCwgMTMgSnVuIDIwMTggMTQ6MTk6MzEgR01UDQpDb25uZWN0aW9uOiBrZWVwLWFsaXZlDQpDb250ZW50LUxlbmd0aDogNzM1, body:W3siaWQiOiI0NWYwYjZlYjE1ZWE3NTNmNTVlZjlhN2NhNGUyMDJjZiIsIm5hbWUiOiJTSElFTEQiLCJjb25uZWN0aW9uIjoiZGlzY29ubmVjdGVkIiwiYWRkcmVzcyI6eyJob3N0IjoiMTkyLjE2OC4yLjk5IiwicG9ydCI6ODAwOX0sInN0YXR1cyI6eyJ2b2x1bWUiOjAsIm11dGVkIjpmYWxzZSwiYXBwbGljYXRpb24iOiIiLCJzdGF0dXMiOiIiLCJ0aXRsZSI6IiIsInN1YnRpdGxlIjoiIiwiaW1hZ2UiOiIifX0seyJpZCI6IjIxMWU2Mzc2OWM3OGQ3NTE5YjA1MmQ0NGIwNWMyZTA0IiwibmFtZSI6IktpdGNoZW4gSG9tZSIsImNvbm5lY3Rpb24iOiJkaXNjb25uZWN0ZWQiLCJhZGRyZXNzIjp7Imhvc3QiOiIxOTIuMTY4LjIuMjYiLCJwb3J0Ijo4MDA5fSwic3RhdHVzIjp7InZvbHVtZSI6MCwibXV0ZWQiOmZhbHNlLCJhcHBsaWNhdGlvbiI6IiIsInN0YXR1cyI6IiIsInRpdGxlIjoiIiwic3VidGl0bGUiOiIiLCJpbWFnZSI6IiJ9LCJncm91cHMiOltdfSx7ImlkIjoiYTg2NGFjODg3ZjZmM2YwMzA4OWZmMGM0YWRiOGY4ZmYiLCJuYW1lIjoiRmFtaWx5IFJvb20iLCJjb25uZWN0aW9uIjoiZGlzY29ubmVjdGVkIiwiYWRkcmVzcyI6eyJob3N0IjoiMTkyLjE2OC4yLjM0IiwicG9ydCI6ODAwOX0sInN0YXR1cyI6eyJ2b2x1bWUiOjAsIm11dGVkIjpmYWxzZSwiYXBwbGljYXRpb24iOiIiLCJzdGF0dXMiOiIiLCJ0aXRsZSI6IiIsInN1YnRpdGxlIjoiIiwiaW1hZ2UiOiIifSwiZ3JvdXBzIjpbXX1d'
883ea96a-b288-43da-9b15-f595d8442832  10:19:31 AM: debug discoveryPage(), refresh
883ea96a-b288-43da-9b15-f595d8442832  10:19:31 AM: debug Executing 'sendHttpRequest' host: 192.168.2.7:3000 path: /device
883ea96a-b288-43da-9b15-f595d8442832  10:19:31 AM: debug Executing 'getDevices'
883ea96a-b288-43da-9b15-f595d8442832  10:19:31 AM: debug discoveryPage(), refresh
883ea96a-b288-43da-9b15-f595d8442832  10:19:31 AM: debug Executing 'sendHttpRequest' host: 192.168.2.7:3000 path: /device
883ea96a-b288-43da-9b15-f595d8442832  10:19:31 AM: debug Executing 'getDevices'
883ea96a-b288-43da-9b15-f595d8442832  10:19:31 AM: debug discoveryPage(), refresh
883ea96a-b288-43da-9b15-f595d8442832  10:19:31 AM: debug Executing 'sendHttpRequest' host: 192.168.2.7:3000 path: /device
883ea96a-b288-43da-9b15-f595d8442832  10:19:31 AM: debug Executing 'getDevices'
883ea96a-b288-43da-9b15-f595d8442832  10:19:31 AM: debug discoveryPage(), refresh
883ea96a-b288-43da-9b15-f595d8442832  10:19:31 AM: debug Executing 'sendHttpRequest' host: 192.168.2.7:3000 path: /device
883ea96a-b288-43da-9b15-f595d8442832  10:19:31 AM: debug Executing 'getDevices'
883ea96a-b288-43da-9b15-f595d8442832  10:19:18 AM: error grails.validation.ValidationException: Validation Error(s) occurred during save():
- Field error in object 'physicalgraph.device.Device' on field 'deviceNetworkId': rejected value [B827EB767A7A]; codes [physicalgraph.device.Device.deviceNetworkId.unique.error.physicalgraph.device.Device.deviceNetworkId,physicalgraph.device.Device.deviceNetworkId.unique.error.deviceNetworkId,physicalgraph.device.Device.deviceNetworkId.unique.error.java.lang.String,physicalgraph.device.Device.deviceNetworkId.unique.error,device.deviceNetworkId.unique.error.physicalgraph.device.Device.deviceNetworkId,device.deviceNetworkId.unique.error.deviceNetworkId,device.deviceNetworkId.unique.error.java.lang.String,device.deviceNetworkId.unique.error,physicalgraph.device.Device.deviceNetworkId.unique.physicalgraph.device.Device.deviceNetworkId,physicalgraph.device.Device.deviceNetworkId.unique.deviceNetworkId,physicalgraph.device.Device.deviceNetworkId.unique.java.lang.String,physicalgraph.device.Device.deviceNetworkId.unique,device.deviceNetworkId.unique.physicalgraph.device.Device.deviceNetworkId,device.deviceNetworkId.unique.deviceNetworkId,device.deviceNetworkId.unique.java.lang.String,device.deviceNetworkId.unique,unique.physicalgraph.device.Device.deviceNetworkId,unique.deviceNetworkId,unique.java.lang.String,unique]; arguments [deviceNetworkId,class physicalgraph.device.Device,B827EB767A7A]; default message [{0} must be unique]
@line 125 (addDevices)
883ea96a-b288-43da-9b15-f595d8442832  10:19:18 AM: debug No cast-web-api installed
883ea96a-b288-43da-9b15-f595d8442832  10:19:18 AM: debug getChildDevices(false), children=0
883ea96a-b288-43da-9b15-f595d8442832  10:19:11 AM: debug index 2: Family Room, a864ac887f6f3f03089ff0c4adb8f8ff
883ea96a-b288-43da-9b15-f595d8442832  10:19:11 AM: debug devices: [45f0b6eb15ea753f55ef9a7ca4e202cf:SHIELD, 211e63769c78d7519b052d44b05c2e04:Kitchen Home, a864ac887f6f3f03089ff0c4adb8f8ff:Family Room]
883ea96a-b288-43da-9b15-f595d8442832  10:19:11 AM: debug index 1: Kitchen Home, 211e63769c78d7519b052d44b05c2e04
883ea96a-b288-43da-9b15-f595d8442832  10:19:11 AM: debug index 0: SHIELD, 45f0b6eb15ea753f55ef9a7ca4e202cf
883ea96a-b288-43da-9b15-f595d8442832  10:19:11 AM: debug JSON rcvd: [[id:45f0b6eb15ea753f55ef9a7ca4e202cf, connection:disconnected, status:[title:, application:, status:, muted:false, subtitle:, volume:0, image:], address:[port:8009, host:192.168.2.99], name:SHIELD], [id:211e63769c78d7519b052d44b05c2e04, connection:disconnected, status:[title:, application:, status:, muted:false, subtitle:, volume:0, image:], address:[port:8009, host:192.168.2.26], name:Kitchen Home, groups:[]], [id:a864ac887f6f3f03089ff0c4adb8f8ff, connection:disconnected, status:[title:, application:, status:, muted:false, subtitle:, volume:0, image:], address:[port:8009, host:192.168.2.34], name:Family Room, groups:[]]], JSON.size: 3
883ea96a-b288-43da-9b15-f595d8442832  10:19:11 AM: debug Parsing 'index:16, mac:B827EB767A7A, ip:C0A80207, port:0BB8, requestId:cc22f7c4-6bab-4e77-b1d1-9f8662db7d09, callback:true, headers:SFRUUC8xLjEgMjAwIE9LDQpDb250ZW50LVR5cGU6IGFwcGxpY2F0aW9uL2pzb247IGNoYXJzZXQ9dXRmLTgNCkRhdGU6IFdlZCwgMTMgSnVuIDIwMTggMTQ6MTk6MTEgR01UDQpDb25uZWN0aW9uOiBrZWVwLWFsaXZlDQpDb250ZW50LUxlbmd0aDogNzM1, body:W3siaWQiOiI0NWYwYjZlYjE1ZWE3NTNmNTVlZjlhN2NhNGUyMDJjZiIsIm5hbWUiOiJTSElFTEQiLCJjb25uZWN0aW9uIjoiZGlzY29ubmVjdGVkIiwiYWRkcmVzcyI6eyJob3N0IjoiMTkyLjE2OC4yLjk5IiwicG9ydCI6ODAwOX0sInN0YXR1cyI6eyJ2b2x1bWUiOjAsIm11dGVkIjpmYWxzZSwiYXBwbGljYXRpb24iOiIiLCJzdGF0dXMiOiIiLCJ0aXRsZSI6IiIsInN1YnRpdGxlIjoiIiwiaW1hZ2UiOiIifX0seyJpZCI6IjIxMWU2Mzc2OWM3OGQ3NTE5YjA1MmQ0NGIwNWMyZTA0IiwibmFtZSI6IktpdGNoZW4gSG9tZSIsImNvbm5lY3Rpb24iOiJkaXNjb25uZWN0ZWQiLCJhZGRyZXNzIjp7Imhvc3QiOiIxOTIuMTY4LjIuMjYiLCJwb3J0Ijo4MDA5fSwic3RhdHVzIjp7InZvbHVtZSI6MCwibXV0ZWQiOmZhbHNlLCJhcHBsaWNhdGlvbiI6IiIsInN0YXR1cyI6IiIsInRpdGxlIjoiIiwic3VidGl0bGUiOiIiLCJpbWFnZSI6IiJ9LCJncm91cHMiOltdfSx7ImlkIjoiYTg2NGFjODg3ZjZmM2YwMzA4OWZmMGM0YWRiOGY4ZmYiLCJuYW1lIjoiRmFtaWx5IFJvb20iLCJjb25uZWN0aW9uIjoiZGlzY29ubmVjdGVkIiwiYWRkcmVzcyI6eyJob3N0IjoiMTkyLjE2OC4yLjM0IiwicG9ydCI6ODAwOX0sInN0YXR1cyI6eyJ2b2x1bWUiOjAsIm11dGVkIjpmYWxzZSwiYXBwbGljYXRpb24iOiIiLCJzdGF0dXMiOiIiLCJ0aXRsZSI6IiIsInN1YnRpdGxlIjoiIiwiaW1hZ2UiOiIifSwiZ3JvdXBzIjpbXX1d'
883ea96a-b288-43da-9b15-f595d8442832  10:19:11 AM: debug discoveryPage(), refresh
883ea96a-b288-43da-9b15-f595d8442832  10:19:11 AM: debug Executing 'sendHttpRequest' host: 192.168.2.7:3000 path: /device
883ea96a-b288-43da-9b15-f595d8442832  10:19:11 AM: debug Executing 'getDevices'
883ea96a-b288-43da-9b15-f595d8442832  10:19:11 AM: debug discoveryPage(), refresh
883ea96a-b288-43da-9b15-f595d8442832  10:19:11 AM: debug Executing 'sendHttpRequest' host: 192.168.2.7:3000 path: /device
883ea96a-b288-43da-9b15-f595d8442832  10:19:11 AM: debug Executing 'getDevices'
883ea96a-b288-43da-9b15-f595d8442832  10:18:51 AM: debug devices: [45f0b6eb15ea753f55ef9a7ca4e202cf:SHIELD, 211e63769c78d7519b052d44b05c2e04:Kitchen Home, a864ac887f6f3f03089ff0c4adb8f8ff:Family Room]
883ea96a-b288-43da-9b15-f595d8442832  10:18:51 AM: debug JSON rcvd: [[id:45f0b6eb15ea753f55ef9a7ca4e202cf, connection:disconnected, status:[title:, application:, status:, muted:false, subtitle:, volume:0, image:], address:[port:8009, host:192.168.2.99], name:SHIELD], [id:211e63769c78d7519b052d44b05c2e04, connection:disconnected, status:[title:, application:, status:, muted:false, subtitle:, volume:0, image:], address:[port:8009, host:192.168.2.26], name:Kitchen Home, groups:[]], [id:a864ac887f6f3f03089ff0c4adb8f8ff, connection:disconnected, status:[title:, application:, status:, muted:false, subtitle:, volume:0, image:], address:[port:8009, host:192.168.2.34], name:Family Room, groups:[]]], JSON.size: 3
883ea96a-b288-43da-9b15-f595d8442832  10:18:51 AM: debug Parsing 'index:11, mac:B827EB767A7A, ip:C0A80207, port:0BB8, requestId:ca9c6bc2-77d4-41b9-8942-1a89ce07021b, callback:true, headers:SFRUUC8xLjEgMjAwIE9LDQpDb250ZW50LVR5cGU6IGFwcGxpY2F0aW9uL2pzb247IGNoYXJzZXQ9dXRmLTgNCkRhdGU6IFdlZCwgMTMgSnVuIDIwMTggMTQ6MTg6NTEgR01UDQpDb25uZWN0aW9uOiBrZWVwLWFsaXZlDQpDb250ZW50LUxlbmd0aDogNzM1, body:W3siaWQiOiI0NWYwYjZlYjE1ZWE3NTNmNTVlZjlhN2NhNGUyMDJjZiIsIm5hbWUiOiJTSElFTEQiLCJjb25uZWN0aW9uIjoiZGlzY29ubmVjdGVkIiwiYWRkcmVzcyI6eyJob3N0IjoiMTkyLjE2OC4yLjk5IiwicG9ydCI6ODAwOX0sInN0YXR1cyI6eyJ2b2x1bWUiOjAsIm11dGVkIjpmYWxzZSwiYXBwbGljYXRpb24iOiIiLCJzdGF0dXMiOiIiLCJ0aXRsZSI6IiIsInN1YnRpdGxlIjoiIiwiaW1hZ2UiOiIifX0seyJpZCI6IjIxMWU2Mzc2OWM3OGQ3NTE5YjA1MmQ0NGIwNWMyZTA0IiwibmFtZSI6IktpdGNoZW4gSG9tZSIsImNvbm5lY3Rpb24iOiJkaXNjb25uZWN0ZWQiLCJhZGRyZXNzIjp7Imhvc3QiOiIxOTIuMTY4LjIuMjYiLCJwb3J0Ijo4MDA5fSwic3RhdHVzIjp7InZvbHVtZSI6MCwibXV0ZWQiOmZhbHNlLCJhcHBsaWNhdGlvbiI6IiIsInN0YXR1cyI6IiIsInRpdGxlIjoiIiwic3VidGl0bGUiOiIiLCJpbWFnZSI6IiJ9LCJncm91cHMiOltdfSx7ImlkIjoiYTg2NGFjODg3ZjZmM2YwMzA4OWZmMGM0YWRiOGY4ZmYiLCJuYW1lIjoiRmFtaWx5IFJvb20iLCJjb25uZWN0aW9uIjoiZGlzY29ubmVjdGVkIiwiYWRkcmVzcyI6eyJob3N0IjoiMTkyLjE2OC4yLjM0IiwicG9ydCI6ODAwOX0sInN0YXR1cyI6eyJ2b2x1bWUiOjAsIm11dGVkIjpmYWxzZSwiYXBwbGljYXRpb24iOiIiLCJzdGF0dXMiOiIiLCJ0aXRsZSI6IiIsInN1YnRpdGxlIjoiIiwiaW1hZ2UiOiIifSwiZ3JvdXBzIjpbXX1d'
883ea96a-b288-43da-9b15-f595d8442832  10:18:51 AM: debug discoveryPage(), refresh
883ea96a-b288-43da-9b15-f595d8442832  10:18:51 AM: debug Executing 'sendHttpRequest' host: 192.168.2.7:3000 path: /device
883ea96a-b288-43da-9b15-f595d8442832  10:18:51 AM: debug Executing 'getDevices'
883ea96a-b288-43da-9b15-f595d8442832  10:18:47 AM: debug getChildDevices(false), children=0
883ea96a-b288-43da-9b15-f595d8442832  10:18:47 AM: debug getChildDevices(false), children=0

Here’s the output, sorry it’s so long, but I tried a few times to get it to work. I do see an error about saving in this list.

FYI, it showed up on my log
08:56:24: error groovy.lang.MissingMethodException: No signature of method: script_dth_90756226dadeaa4e9153a993cb882f269b1c2a9b54ef9dbd6d9e96605ebdc30b.playTrackAndResume() is applicable for argument types: (java.lang.String, java.lang.Integer, java.lang.Integer) values: [https://s3.amazonaws.com/smartapp-media/polly-tts/salli/some_one_is_home.mp3, …]
Possible solutions: playTrackAndResume(java.lang.String, java.lang.String), playTrackAndResume(java.lang.String, java.lang.String, java.lang.Object), playTrackAndResume(java.lang.Object), playTrackAndResume(java.lang.Object, java.lang.Object), playTrackAndRestore(java.lang.String, java.lang.String), playTrackAndRestore(java.lang.String, java.lang.String, java.lang.Object) @line 528 (doCall)
96d9dcef-60cf-4473-8d85-8f4a3a76db8c 08:35:50: warn playTrack() data: [{ “mediaType”:“audio/mp3”, “mediaUrl”:“https://s3.amazonaws.com/smartapp-media/polly-tts/salli/somebody_at_the_door.mp3”, “mediaStreamType”:“BUFFERED”, “mediaTitle”:“SmartThings”, “mediaSubtitle”:“SmartThings playback”, “mediaImageUrl”:“https://lh3.googleusercontent.com/nQBLtHKqZycERjdjMGulMLMLDoPXnrZKYoJ8ijaVs8tDD6cypInQRtxgngk9SAXHkA=w300”}]

And? What where you trying to do? Did it work? Did it not work?

Can you please list all the cast-web device handlers you have installed in your IDE?

Update: Oh no, it’s easier than that. Have you installed any other kind of bridge on the same computer you’re using for cast-web? The DNI of cast-web-api is rejected.

Open the IDE > ‘my devices’ > then search for a device with this device network id: B827EB767A7A.
Don’t use the search box in the top right corner. Either search manually or press cmd+f(mac) / ctrl+f (win) to use the browser search box.

i assumre by the mp3 it was my front door trigering it, im not home so dont know if the speakers responded.
ill keep an eye open
just did some testing (dont know if it actualy played) looking at the log and the issue seam to be having resume ticked when using a group

Extremely happy with this! Took me way too long to get this up and running (my fault I’m sure) but had a question regarding the streamable content.

Mentioned multiple times in the thread, this only works with DRM content. However, one of the presets in the tutorial images is “Spotify”. Am I missing something?

Also, mentioned Google play would work?

If none of the above, could someone point me in the right direction for getting a URL from my personal device?

I am using an old Android and node js for the API proxy.
Thank you so much for this! I am loving this as it is currently!

1 Like

Ha, yep, I do have something called “HA-Bridge” running, which basically creates “Hue Lights” for each of my Logitech Harmony commands.

I need to keep both, so is there a way I can configure cast-web-api to use a different DNI?

However, I was able to get this working with v0.2.

No, then you’ll need to keep on using v0.3.

The DNI is your computers MAC address. Theoretically you could get a different network card/interface which should have a different mac address. Or a different device all together.

I think somebody has both working together on one pi, I’ll ask him about it.

I created a topic regarding presets.

No, it only shows a cast device that is currently playing something from Spotify.

What are you trying to do here? Don’t really understand :sweat_smile:

Ok thanks, I’d like to run both if possible.

For now, I’ve got it working on my windows box. By the way, I tried to follow the instructions on installing and running via the forever command and was having a heck of a time. The Node command prompt kept giving me syntax errors so I ended up using the windows command prompt, navigating to the correct folder and running:

forever castwebapi.js

Which seemed to work (I actually had to specify the filename and extension, otherwise forever couldn’t find it.

I’ve never used Forever on Windows - will it survive a reboot?

No, you need to run the command again, after every reboot. It only keeps it running even after the terminal window is closed.