我正在制作一个智能家居应用程序使用谷歌上的行动。我目前有一个Firebase云函数,它通过请求同步请求调用HomeGraph应用程序接口。
下面是该函数的内容:
const {smarthome} = require('actions-on-google');
const app = smarthome({
key: "(My Key)"
});
//Assume UID is the id of the user that we are requesting a sync for
app.requestSync(uid).then((res) =>
我正在使用一个Node.js客户端与谷歌智能家居集成。
当对Google智能家庭API的请求超过每分钟100~150次时,会发生以下错误。
FetchError: request to https://homegraph.googleapis.com/v1/devices:reportStateAndNotification failed, reason: socket hang up
我们似乎达到了API的速率限制,但我看到文档说:“默认限制为每60秒6,000次请求,尽管我们的Node.js客户端从未发布过这么多请求。
有人知道解决这个问题的线索吗?
库
@googleapis/homeg
我正在实现智能家居操作,在测试套件上运行测试时,在OnOff特性测试期间收到了以下错误消息:
好的谷歌。打开WaterMoter AssertionError: Expected state to include: {"on":true}, actual state: {"on":false,"online":true}: expected false to be true
好的谷歌。关闭WaterMoter
但是,当我们尝试使用Google应用程序时,一切都正常,响应是200,对这些数据来说是可以的:
Apr 30 12:29:54 api.f
我在com.google.firebase.firebase-perf插件中得到了下面的错误。
原因:安卓/support/v7/app/ActionBarActivity at com.google.firebase.perf.plugin.instrumentation.InstrumentationConfigFactory.setAppStartConfig(InstrumentationConfigFactory.java:70) at com.google.firebase.perf.plugin.instrumentation.InstrumentationConfigFact
我正在尝试第一次从NodeJS项目部署到firebase,但我还没有设置实时数据库,因为我只计划使用Firestore。然而,当我从项目终端运行firebase deploy时,它抛出了这个错误-- It looks like you haven't created a Realtime Database instance in this project before. Please run firebase init database to create your default Realtime Database instance.,我可以避免创建实时数据库并仍然能够部署吗?使用的