If, for example, you would like to receive a message or notification on your smartphone if the weight falls below a certain level, you can set this up quite simply by using the following services:
- at ThingSpeak.com through the services “ThingHTTP” and “React” in interaction with the
- IFTTT.com available service “WebHooks”
- You are using the HoneyPi solution and your sensor data is already transferred to a ThingSpeak account
- You have downloaded the app IFTTT from the App Store (iOS) or from the PlayStore (Android) to your smartphone and set up an account with IFTTT
- You use a browser like Firefox (not necessarily Safari) – because then all buttons work
You must proceed in the following order:
- Sign in at IFTTT.com on your PC or Mac with the created account (Sign in)
- Open the menu item “My Applets” and click on “New Applet”.
- In the next window click on the blue “this”. Search for “WebHooks” and click on the blue tile “WebHooks”.
- Click now on the tile “Receive a web request”.
- In the next window enter a name for the alarm in the field “Event name”, e.g. “Swarm alarm”.
- Now click on the button “Create trigger”.
- Now click on the blue “that” in the next window
- Search now under “Search action service” for “Notifications” and then click on the tile “Notifications”.
- In the window “Choose action” now click on the tile “Send a rich notification from the IFTTT app”.
- In the next window, enter a name for the message in the “Title” field, e.g. “Swarm alarm beehive 1”.
11. In the field “Message” you can now change the whole text. However, you must enter the name you have given above for “Event name” in the white field “EventName”.
It could look like this:
12. Then click on “Create action” below.
13. In the next window “Review and finish” click on “Finish”. This should look like this on the next page:
14 . Now you have to click on “WebHooks” in the upper left corner.
15. Click on “Documentation” in the top right corner of the next window
16. Now a window opens that should look like this:
The link given here is now important. In this link “event” with the braces must be replaced by your event name “Schwarmalarm1”. Then copy this link with the replaced event name and save it somewhere. We will need it later.
(the x are given individually and automatically)
17. Now close the window in your browser
18. Continue with ThingSpeak
19. Open ThingSpeak.com now and log in via “Sign in”
20. Open the settings page “ThingHTTP” in the menu bar via “Apps
21. Click on the green button “New ThingHTTP”.
22. In the field “URL” you enter the link that we have cached at the top of this page
23. The “Method” field must be set to “Get”. We leave all other fields unchanged.
24. We remember the number behind “Request” under “Name” at the top of the page
25. Now close the window by clicking the green button “Save ThingHTTP”.
26. Now call “React” at the top of the menu bar via “Apps”
27. Enter a name in the field “React Name” above, e.g. “My swarm alarm”.
28. “Change “Condition Type” to “numeric”
29. Now under “Condition” under “If channel” select your ThingSpeak Channel
30. …and in “field” select the data field for the measured value of the scale, in the second field change from “contains” to “is less or equal to”, in the third field set the weight from which the notification is to be sent (e.g. 40kg)
31. “Action” must contain “ThingHTTP” and “then perfom ThingHTTP” must contain the number of the “Request” that we remembered above
32. Bei “Options” solltest du “Run action only the first time the condition is fulfilled” auswählen
33. Now save the entries with “Save React”
…and already, after these only few and simple steps ;-), you should get a notification if the weight of your beehive falls below 40kg.
Of course you can also use this function for many other things. IFTTT.com (IF This Then That) offers almost unlimited possibilities that can be linked to a specific event.
Translated 11.08.2019 by JK