Question: how to connect chromecast to two wifi?
Answer: It is not. You can make both WiFi locations have the same SSID and password and then it will automatically connect when moved. While your Chromecast is connected to WiFi you are able to forget the network in the Google Home app so it is ready to connect to a new network.