deblockt / google-home-push

python lib to push message on google case device
MIT License
15 stars 8 forks source link

Issue running script #5

Closed peterd550 closed 3 years ago

peterd550 commented 4 years ago

When I use the example and change to my device name in Google home

from googlehomepush import GoogleHome

GoogleHome("Google-Nest").say("test") GoogleHome("Google-Nest").play("http://www.hubharp.com/web_sound/BachGavotteShort.mp3")

When I run the python script in vscode I get the following error.

Failed to connect, retrying in 5.0s

Any help would be appreciated

peterd550 commented 4 years ago

Found how it is mean to work. Doco is not clear. You can not ping the hostname ofyou device you need to make it static in your router and use this what I did

text = 'Hello how are you?' GoogleHome(host = "THE IP OF DEVICE").say(text, lang='en-GB') GoogleHome(host = "THE IP OF DEVICE").play("http://www.hubharp.com/web_sound/BachGavotteShort.mp3")

Now it works

viditagrawal commented 3 years ago

hey, sorry not sure I understood your fix to this problem.

I'm having the same issue, where do I find this IP of the google home mini?

peterd550 commented 3 years ago

Use an ip scanner Then in your router you set them to static That way the IP address doesn't change