【问题标题】:What URL should I use for Google Home local execution app我应该为 Google Home 本地执行应用使用什么 URL
【发布时间】:2020-10-09 23:21:03
【问题描述】:

我正在尝试 google home 本地执行的示例项目https://github.com/actions-on-google/smart-home-local

URL README 文件是否正确?

在开发 > 操作 > 在设备测试中将开发 URL 设置为 http://local-dev-server-hostname-or-ip:8080/

似乎google home设备正在向“/”发送get请求,而“/”处没有部署任何内容,应用程序说URL是:

[local-home-app] Node ondevice testing URL:   http://192.168.101.69:8080/node/bundle.js
[local-home-app] Chrome ondevice testing URL: http://192.168.101.69:8080/web/index.html
Frame 19273: 694 bytes on wire (5552 bits), 694 bytes captured (5552 bits) on interface 0
Ethernet II, Src: f0:72:ea:88:8b:30 (f0:72:ea:88:8b:30), Dst: Raspberr_7e:77:5d (dc:a6:32:7e:77:5d)
Internet Protocol Version 4, Src: 192.168.101.63, Dst: 192.168.101.69
Transmission Control Protocol, Src Port: 38838, Dst Port: 8080, Seq: 138161, Ack: 85361, Len: 628
Hypertext Transfer Protocol
GET / HTTP/1.1\r\n
[Expert Info (Chat/Sequence): GET / HTTP/1.1\r\n]
[GET / HTTP/1.1\r\n]
[Severity level: Chat]
[Group: Sequence]
Request Method: GET
Request URI: /
Request Version: HTTP/1.1
Host: 192.168.101.69:8080\r\n
Connection: keep-alive\r\n
Upgrade-Insecure-Requests: 1\r\n
User-Agent: Mozilla/5.0 (X11; Linux aarch64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.81 Safari/537.36 CrKey/1.42.180404\r\n
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,/;q=0.8,application/signed-exchange;v=b3\r\n
CAST-DEVICE-CAPABILITIES: {"audio_assistant":true,"bluetooth_supported":true,"display_supported":false,"hi_res_audio_supported":false,"remote_control_input_supported":false,"touch_input_supported":false}\r\n
Accept-Encoding: gzip, deflate\r\n
Accept-Language: en-us,en\r\n
\r\n
[Full request URI: http://192.168.101.69:8080/]
[HTTP request 221/222]
[Prev request in frame: 19227]
[Response in frame: 19274]
[Next request in frame: 19312]

【问题讨论】:

    标签: node.js typescript firebase local google-smart-home


    【解决方案1】:

    由于 Local Home SDK 的 new device support,Actions 控制台现在支持两个开发测试 URL:

    • Chrome 的测试网址
    • Node 的测试 URL

    对于与示例一起打包的本地开发服务器,这对应于您启动服务器实例时打印的 Chrome 和 Node URL。

    【讨论】:

      猜你喜欢
      • 2012-12-21
      • 1970-01-01
      • 1970-01-01
      • 2017-07-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-10-28
      • 1970-01-01
      相关资源
      最近更新 更多