posting field values within few seconds fails

2 ビュー (過去 30 日間)
theo koster
theo koster 2021 年 2 月 16 日
コメント済み: theo koster 2021 年 2 月 17 日
Using google app script I want to post measurements from my home domotics to a thingspeak channel. The chart has several charts.
I am using the following code
POST https://api.thingspeak.com/update.json
api_key=XXXXXXXXXXXXXXXX
field1=73
and after a few seconds
POST https://api.thingspeak.com/update.json
api_key=XXXXXXXXXXXXXXXX
field2=100.
In the channel it only updates the chart for field1. When I introduce a sleep of 15 seconds between the 2 posts, it will show both charts (field1 and field2). It seems not possible to send both posts with short intermediant times to update the both charts. Or should I use another way to achieve almost simultaneous updates of multiple charts ?
  1 件のコメント
theo koster
theo koster 2021 年 2 月 16 日
The channel has several charts (typo)

サインインしてコメントする。

回答 (1 件)

Hans Scharler
Hans Scharler 2021 年 2 月 17 日
The free ThingSpeak account tier has an update rate limit of 15 seconds.
You can send both field values in one update.
field1=73&field2=100
  1 件のコメント
theo koster
theo koster 2021 年 2 月 17 日
Thanks that explains the behaviour

サインインしてコメントする。

コミュニティ

その他の回答  ThingSpeak コミュニティ

カテゴリ

Help Center および File ExchangeREST API についてさらに検索

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by