Unable to Post Data on Channel

1 回表示 (過去 30 日間)
Julien Jacquemet
Julien Jacquemet 2020 年 1 月 14 日
編集済み: Vinod 2020 年 2 月 22 日
Hi,
I have some difficult to post data on channel.
For exemple, I have create a channel test ( visible on https://thingspeak.com/channels/959736 )
The AP KEY for writing is : XXX
The AP KEY for reading : YYY
When I try to make GET or POST request (from Chrome or Postman) the result is always 0.
I didn't understand why, I follow too tutorial and try with Postman but always 0.
Thanks for your help.
Besy Regards

採用された回答

Vinod
Vinod 2020 年 1 月 14 日
I'm able to post to your channel using the link specified. Can you try again?
Also, my recommendation is to reset the API key to your channel and update your post above to remove your API key, unless you want spurious data in your channel.

その他の回答 (5 件)

Julien Jacquemet
Julien Jacquemet 2020 年 1 月 15 日
Thanks. It's work now for all my channel.
Have change some configurations in my account ?
Best Regards

Andrzej Bieniek
Andrzej Bieniek 2020 年 1 月 25 日
編集済み: Vinod 2020 年 1 月 27 日
Hi,
I have the same problem with my channel, I always get 0, could you help?
curl "https://api.thingspeak.com/update?api_key=MY_API_KEY&field1=1&field2=2"
0
  1 件のコメント
Vinod
Vinod 2020 年 1 月 27 日
編集済み: Vinod 2020 年 1 月 27 日
Still having trouble?

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


Andrew St Clair
Andrew St Clair 2020 年 2 月 2 日
編集済み: Andrew St Clair 2020 年 2 月 2 日
I am also having this issue. no matter what i do, i always get 0
EDIT:
the code responsible for uploading the data looks like this (Arduino Code):
HttpClient client;
humidity = DHT.getHumidity();
temp = DHT.getTemperature();
client.get("https://api.thingspeak.com/update?api_key=XXX&field1="+String((int)temp)+"&field2="+String((int)humidity)+"&field3="+String(dewPoint((int)temp, (int)humidity)));
  6 件のコメント
pavel heimlich
pavel heimlich 2020 年 2 月 20 日
Hi,
I've got the same problem, could you reset my account? thanks!
Vinod
Vinod 2020 年 2 月 20 日
@Pavel: Try again. You may have to log out of ThingSpeak and log back in.

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


peter veres
peter veres 2020 年 2 月 9 日
Hi everybody
I created 3 channels, humidity - temperature - altitude. (channel ID 979451)
Using Raspbery Pi4 + BMP180 sensor I see that data for 3 fields are uploading but not showing on chart at all:
Is refreshing every 5 seconds, reading correct data, but not showing on channel. Even I tryed to change API key, without success.
Does somebody has any ideea why?
Thank you
  9 件のコメント
peter veres
peter veres 2020 年 2 月 21 日
Thank you I can see the post.
Something like this it's in my mind:
I see a picture from the plant. It is live feed or just a picture?
Didn't found refference about how to embed live feed from pi camera in Thingspeek...
Do you have tips where to look?
Thank you again
Peter
Vinod
Vinod 2020 年 2 月 21 日
If you have an IP camera that is pointed at your plant, you can have that image embedded on your ThingSpeak channel. It's not a streaming video, but it is a live image taken when the page is refreshed.
Here's an example:
1) Create a new MATLAB visualization and put this code in it:
imshow(webread('http://24.73.89.162/axis-cgi/jpg/image.cgi',weboptions('ContentType','image')),'border','tight');
2) Add this MATLAB visualization to your channel's view.
If you have an Android phone, you can get one of the many IP camera apps and try it out pretty easily.

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


peter veres
peter veres 2020 年 2 月 22 日
Hi again
I mentioned that I want to use the Pi camera, not IP Camera. A refreshed image will be enough.
How can I embed the image captured to Thingspeak? And the refreshment of the measurements also?
Some ideea please? How tocreate a channel for the picture?
Do I need fixed IP address? I suppose not.
Thank you
Peter
  1 件のコメント
Vinod
Vinod 2020 年 2 月 22 日
編集済み: Vinod 2020 年 2 月 22 日
You can convert your raspberry pi camera to an IP camera easily. See here for information:
https://hackmypi.com/PiCamPart1.php

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

コミュニティ

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

カテゴリ

Help Center および File ExchangeConfigure Accounts and Channels についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by