필터 지우기
필터 지우기

How to test your IFTTT service to see you receive data via URL on ThingSpeak channel?

조회 수: 4 (최근 30일)
I have created IFTTT Webhook to send mail notication, via React App and ThingHTTP and configured them as per this email below. But now on the last React App, configured using Microsoft Office 365, using my mail on IFTTT i cant seem to get any notification and yet i am suppose to see some. Should i not, please help me to understand this better.

채택된 답변

Vinod
Vinod 2019년 12월 19일
편집: Vinod 2019년 12월 19일
You can now send emails from ThingSpeak in a much simpler way. Steps below:
1) Go to your ThingSpeak profile and click on the "Generate New API key" button next to "Alerts API Key"
2) In the "Apps" tab, click on "MATLAB Analysis" and create a new MATLAB Analysis with this code:
alert_body = 'This is the text that will be emailed';
alert_subject = 'This will be the subject of the email';
alert_api_key = 'YOUR_API_KEY_FROM_STEP_1';
alert_url= "https://api.thingspeak.com/alerts/send";
jsonmessage = sprintf(['{"subject": "%s", "body": "%s"}'], alert_subject,alert_body);
options = weboptions("HeaderFields", {'Thingspeak-Alerts-API-Key', alert_api_key; 'Content-Type','application/json'});
result = webwrite(alert_url, jsonmessage, options);
3) If you hit the "Save and Run" button, you will now get an email.
Now, if you want to tie this to an event on your channel, you can create a React tied to your channel that will run this code. You can get fancy in your MATLAB code and read the last value in your channel using the thingSpeakRead function and use that to compose your alert too, or only send the alert if a certain condition happens. Any complex condition is possible!
If you want to convert this to an SMS, you can create a rule in your email service to forward the email as an SMS to your phone number.
Note that you are limited to 800 alerts per year. You can see how much capacity you have remaining on your account page under the "Alerts usage" box.
  댓글 수: 3
Vinod
Vinod 2020년 1월 6일
From our records we did send an email to your m****la.co.z* email address. Can you check your spam or junk mail folders for the alert?
Mthunzi Booi
Mthunzi Booi 2020년 1월 7일
Let me have a look at it, must the email alert should come to my domain account? No wonder, if so which means its working right.

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

추가 답변 (0개)

커뮤니티

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

카테고리

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

태그

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by