Saturday, May 30, 2020
WORKING WITH THING SPEAK AND IFTTT?
WORKING WITH THING SPEAK AND IFTTT? Home Blogging WORKING WITH THING SPEAK AND IFTTT?BloggingcareerTechnologyWORKING WITH THING SPEAK AND IFTTT?By Ayushi Mishra - April 24, 201917760Facebook Working with THING SPEAK and IFTTT can be a little confusing if there is no step by step guide available. For computer science students and for those who aspire to learn INTERNET IF THINGS can take help of this article to learn about it.1) At first set up the coding part for the action which you want to receive constant information about, here we the action weâll be working with is âSOIL MOISTUREâ.2) Make sure to connect the NODE MCU with your hotspot by including your hotspot name and password. ALSO, as we are going to link it with Thingspeak, include the API KEY and CHANNEL NUMBER in the code too.3) Now, log on to THING SPEAK website, there make an account by signing in.4) To start, navigate to Channels -MyChannels. Click on âNew Channelâ to create first channel to sent data to.Add a suitable name, description and assign the required number of fields as shown in the screenshot below. Each âFieldâ will contain a specific kind of data. For example, to monitor temperature and humidity of a greenhouse, temperature data is logged to one field and humidity to another field. The number of fields corresponds to the number of different types of data you want to send to your channel.Click on âSave Channelâ. You have now created a channel. Explore to see what is possible!NOW WE ARE DONE WITH CREATING A CHANNEL TO RECEIVE ONLINE GRAPH ABOUT OUR ACTION âSIL MOISTUREâ.5) AND NOW WE WILL LINK THIS SET UP WITH IFTTT SO AS TO GET MESSAGE ON EMAIL OR PHONE ABOUT THE ACTIVITY ON THE ACTION NAMED âSOIL MOISTUREâ.WORKING WITH IFTTTFor more details, you can follow the protocol given in the learning portal.6) FIRST, IFTTT means if this, then that, its exactly how it sounds, it works on the basis of condition you have put so as to get alerts on the action happening.7) Start by navigating onto the IFTTT website.8) Click the âSign Upâ,link located on the upper-right corner. Here, enter the email and password of your choice. It is recommended that you use the same Email address in which you want to get the notifications about your system. If you do not want to log in using your Google account, click again on âsign upâ at the bottom of the screen.9) Next, youâll be guided on how to use the website if you are first time user. Once done, click on CONTINUE.10) Now lets dive straight into getting an SMS every time the moisture level of soil falls below a certain threshold. We will be using WEBHOOKS for this.11) Click on âMyAppletsâ and create a new applet by clicking âNew Appletâ.You will be directed to a new window with the big bold text reading âIf this then thatâ. Click on âthisâ.12) Search for webhooks in the services search bar and select webhooks service.13) Click on âReceive a web requestâ, and create new event, giving it a suitable name. In our case, it can be something like âsoil moisture levelâ. Finish by clicking on âCreate Triggerâ.14) Next, click on the text âthatâ. Since we want an SMS notification, click on âSMSâ. Click on âSend me a SMSâ.15) Type the appropriate Subject text and Body of the email you wish to receive. Ensure âEvent Nameâ is included in the Subject and the body. The body must also include âValue 1â. If these âingredientsâ arenât available, you can add them by clicking on âNew Ingredientâ. Next click on create action.16) Complete the process by clicking on âFinishâ.17) Next in the search bar, search for âWebhooksâ. Click on the âServicesâ tab and select Webhooks.18) Once redirected to the webhooks page, click on âDocumentationâ. YPU WILL BE REDIRECTED TO A PAGE.19) You will find heading called âMake a POST or GET web request to:â followed by an URL. You will be able to edit a part of this URL which is denoted by â{event}â. Type the name of the event you created. Copy this URL. We are done with the settings in IFTTT. Now letâs head over to ThingSpeak.20) Log in to your account and click on ThingHTTP under the âAppsâ drop down menu at the top toolbar of the website.21) Click on âNew ThingHTTPâ, and paste the URL you copied to the text box labelled âURLâ. Change the method to âPOSTâ. This means that we will be using HTTP POST. Remove existing headers under the Headers tab. Type an appropriate message you want to include with your HTTP POST command under the âBodyâ tab. This step is recommended but optional.22) Next, click on âReactâ, which is also found under the âAppsâ drop down menu at the top toolbar of the website. Click on âNew Reactâ. Using âReactâ, we can set the threshold at which an Email is sent to us.23) Change the condition type to âNumericâ. Choose the field of data you want to act on. For example, if you want an alert each time the soil water content readings from your soil moisuture sensor drops below a certain limit, choose the field onto which the soil water content values are plotted. Choose the desired thresholds beyond which you wish to receive an Email.24) Choose the Action as âThingHTTPâ and then choose the corresponding Request ID of your ThingHTTP from the drop down menu. Under âOptionsâ, choose âRun action each time condition is metâ. Save the React. This completes our Setup.In todays generation computer science is the most flourishing field and computer science students are supposed to keep themselves updated with all the new information technology updates. This article will help computer science and non computer science students to complete their desired projects using THING SPEAK AND IFTTT.Thatâs it! Simple, yet powerful. You will now receive an SMS every time the values in your chosen field exceeds the threshold.TAGSIFTTTInteret of thingsIotPROJECTSREAL TIME NOTIFICATIONTHING SPEAK
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.