使用 Python 触发 Google Home

问题描述 投票:0回答:1

我正在尝试将我的 Python 脚本连接到我的 google home。 Python 脚本不在本地运行,因此触发 google home 播放歌曲的简单 flask 应用程序不是解决方案。我将在托管在服务器(herokuapp 等)中的服务上运行 Python 脚本。在这种情况下,有什么办法可以触发我的 Google home 吗?

例子: 我的 Python 脚本将抓取某个位置的天气数据,每当特定位置下雨时,我需要在我的 google home 中播放歌曲/声音。

非常感谢任何帮助! 谢谢!

尝试构建一个 flask 应用程序,但它仅在 python 脚本在本地运行时有效。

automation iot google-home
1个回答
0
投票

您可以使用 REST APIs for Google Assistant SDK 来触发您的 Google Home。此外,有关如何在服务器中的服务上运行 python 脚本的更多信息,请参见此处

© www.soinside.com 2019 - 2024. All rights reserved.