JSON post a flag keep_hotspot_until_connected with value true true to /setup/save_wifi before the Chromecast decided to drop off the new wifi network.Once you buy a Google Chromecast, the challenge remains on how to connect it to your PC.JSON post the ssid, wpa_auth, wpa_cipher, and enc_passwd to /setup/connect_wifi. Encrypt the password to the device's public key using RSA_PKCS1_PADDING and an oaepHash of sha256 (the nodejs crypto module can do this, if you wrap the key in BEGIN and END lines), and base64 encode the cyphertext.After a bit, get /setup/scan_results, find your network, and grab the wpa_auth (always 7?) and wpa_cipher (always 4?).(My curl defaulted to 1.3, and that was too new for the device and I had to dissuade it.) Get the device RSA public_key from the JSON available via TSL 1.2 HTTPS to port 8443 at /setup/get_eureka_info.I don't want to copy-paste a whole script in here, since I don't think that's what StackExchange is for, but the important steps are: If you're a big fan of the curl | bash school of system administration, you can: wget ĬHROMECAST_IP=192.168.0.100 WIFI_SSID="foobar" WIFI_PASSWORD="hackme". To use it, you need to get your computer on the same network as the Chromecast somehow, either with an Ethernet adapter for the Chromecast (which I tested) or by somehow finding and joining its setup hotspot (which I have not tested). All you need is a Linux or (probably) Mac environment, or (probably) WSL on Windows. So, I put together a Bash script, which I've published at, which can do the Chromecast initial setup and connect it to WiFi without Google Home or an Android or iOS device. There was also some useful information at about how you need to encrypt the WiFi password with a public key from the device before submitting it. However, I did find some documentation of the Chromecast's API at, and I noted that if you're doing initial setup, none of it needs any authentication. I had no luck with answer, because I could only find Linux builds of Chromium, not Chrome, and Chromium seems to never have implemented chrome://cast. (Haven't seen a single bug in the beta of my Chromecasts, only one: I get my features earlier than others ) ) I highly suggest just creating another account for the Cast thing, since if you get to beta with that, it is totally worth it. Open an Ignoto tab and do the steps for "3rd Way" (the computer version) On Google Cast select "Allow in ignoto" Go to Chrome Settings (click here for fast link) Note: It sometimes steals your logged in to Chrome Google account. Set up your Chromecast and you are good to go!.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |