how to export data in time range using thingspeak?

Hi Team
I am using Jquery and communicate with my channel because i created a normal plugin for my UI. I want to find if there is a way in Jquery that you can download date range using datapicker, i am searching online nothing seem to appear similar to what i am aiming to achieve. Kindly please assist me thanks.

답변 (1개)

Christopher Stapels
Christopher Stapels 2019년 11월 8일

0 개 추천

You can see the documentation for the read data API call. There is a dateRange parameter you can use. Just be extra careful about the date format, it is qute picky.

댓글 수: 3

$(document).ready(function() {
$("#download").click(function() {
$.ajax({
url:'https://api.thingspeak.com/update?api_key=D***field8=1',
type:'POST',
success:function(response){
window.location = response;
}
});
});
});
" I am getting an error, the page you looking for doesnt exist" But once i use GET its not authenticated, how can i resolve this issue..?
You said you were using jquery from a plugin. It sounded like that plugn was on your own site.
If you are trying to use jquery to read data over a specific date range, you can make a call to the API (perhaps with JQuery.get()) and it will return the data to you. I would suggest json format.
If you are trying to read data from within Thingspeak, you can use thingSpeakRead in a MATLAB analysis or MATLAB visualization.
Wht is the final goal of the project? Its not quite clear what exactly you wish to do.
We aiming to use the plugin, such as this one for own development use when using IOT application and other libraries that support Jquery or Javascript libraries when using any web control in the front end stack.

댓글을 달려면 로그인하십시오.

커뮤니티

더 많은 답변 보기:  ThingSpeak 커뮤니티

카테고리

도움말 센터File Exchange에서 Read Data from Channel에 대해 자세히 알아보기

제품

릴리스

R2019b

질문:

2019년 11월 8일

편집:

2019년 11월 10일

Community Treasure Hunt

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

Start Hunting!

Translated by