You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi!
I'm trying to use GHLocalApi (with help of interfect/castanet.sh) to deploy a Chromecast With Google TV (gen4).
It seems on CCwGTV, some API have changed. Here is my feedback:
API refuse connection (in ethernet) while your are on the first screen asking to pair your remote witht the CCwGTV. Hotspot is not enabled while on this page
eureka_info doesn't provide anymore public key: {"name":"Chromecast3943","net":{"ethernet_connected":true,"ip_address":"192.168.3.10","online":true},"setup":{"setup_state":63,"ssid_suffix":"ytb","tos_accepted":true},"
I managed to get the public key (I hope it's the good one) using openssl has follow: openssl s_client -showcerts -connect SERVER_IP:6467 </dev/null 2>/dev/null|openssl x509 -outform PEM > server.pem
I refactor this response to encrypt public key with this command:
ENCRYPTED_KEY="$(nodejs <<EOF
let crypto = require('crypto');
let cleartext = "${WIFI_PASSWORD}";
let publicKey = "${CHROMECAST_PUBKEY}";
publicKey = "-----BEGIN CERTIFICATE-----\n"+publicKey+"\n-----END CERTIFICATE-----"
const encryptedData = crypto.publicEncrypt({
key: publicKey,
padding: crypto.constants.RSA_PKCS1_PADDING,
// This was in the original thorleifjaocbsen code but seems nonsensical/unneeded and upsest some Nodes
//oaepHash: "sha256",
}, Buffer.from(cleartext));
console.log(encryptedData.toString("base64"));
EOF
)"
scan_wifi and scan_results seems to work as exepected
However, connect_wifi seems to have no effect on my CCwGTV, there is no return to my curl, save_wifi repond a strange "Default Response":
Call curl ${VERBOSITY} --insecure --tlsv1.2 --tls-max 1.2 -H "content-type: application/json" -d "${CONNECT_COMMAND}" https://${CHROMECAST_IP}:8443/setup/connect_wifi respond with a {}
Call Call curl ${VERBOSITY} --insecure --tlsv1.2 --tls-max 1.2 -H "content-type: application/json" -d "${SAVE_COMMAND}" https://${CHROMECAST_IP}:8443/setup/save_wifi respond with a Default Response
But for sure, my CCwGTV is not connected to my wifi.
Any idea of what's wrong here? Is someone aware of changes in the API?
Thanks!
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Hi!
I'm trying to use GHLocalApi (with help of interfect/castanet.sh) to deploy a Chromecast With Google TV (gen4).
It seems on CCwGTV, some API have changed. Here is my feedback:
{"name":"Chromecast3943","net":{"ethernet_connected":true,"ip_address":"192.168.3.10","online":true},"setup":{"setup_state":63,"ssid_suffix":"ytb","tos_accepted":true},"
openssl s_client -showcerts -connect SERVER_IP:6467 </dev/null 2>/dev/null|openssl x509 -outform PEM > server.pem
Here is my CONNECT_COMMAND:
Call
curl ${VERBOSITY} --insecure --tlsv1.2 --tls-max 1.2 -H "content-type: application/json" -d "${CONNECT_COMMAND}" https://${CHROMECAST_IP}:8443/setup/connect_wifi
respond with a{}
Call Call
curl ${VERBOSITY} --insecure --tlsv1.2 --tls-max 1.2 -H "content-type: application/json" -d "${SAVE_COMMAND}" https://${CHROMECAST_IP}:8443/setup/save_wifi
respond with aDefault Response
But for sure, my CCwGTV is not connected to my wifi.
Any idea of what's wrong here? Is someone aware of changes in the API?
Thanks!
The text was updated successfully, but these errors were encountered: