comparison of multiple thing speak fields with mat lab

조회 수: 1 (최근 30일)
Dayne Gilleland
Dayne Gilleland 2020년 1월 27일
답변: avram alter 2020년 2월 3일
Is it possible to set up Matlab to compare thing speak field values.
Field 4 = 1 and Field 5 = 1 and Field 1 > 4 then
delay 30 secounds
Alert message " xxxxxxxxx"
  댓글 수: 3
Dayne Gilleland
Dayne Gilleland 2020년 2월 3일
Thanks
I am now having trouble using Thingspeak Alert API consistantly to generate email message when conditions are correct with the MATLAB code. The code does not fault but I get the error message, " Failed to send alert: The server returned the status 429 with message "Too Many Requests" in response to the request to URL https://api.thingspeak.com/alerts/send. sometimes, not everytime.
avram alter
avram alter 2020년 2월 3일
According to the thingSpeak alert documentation in MATLAB, Under limitations:
"Users are limited to 2 alerts every 30 minutes. The rate limit is applied when the request is made, not when the email is sent. If you exceed the request limit, the API returns the response code 429."
you can read more about that here:

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

채택된 답변

avram alter
avram alter 2020년 2월 3일
you can set your fields to variables, and use logical evaluators under your personal parameters:
field1 = %set this to equal the appropriate channel/value/etc
field2 =
field3 =
field4 =
field5 =
if field4 == 1 && field5 == 1 && field1 > field4
disp('XXXXXXXXX')
end

추가 답변 (0개)

커뮤니티

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

카테고리

Help CenterFile Exchange에서 Read Data from Channel에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by