Page 173 - Programming the Photon Getting Started With the Internet of Things
P. 173

Figure 8.13 Photon action fields.


             Click  Create  Action  and  then  click  Create  Recipe  and  that’s  it—we  now  have
        everything ready and set up; all we need to do is test the scripts and recipe. To test the
        project, all you need to do is mention yourself in a tweet or get someone else to do it for

        you. When IFTTT notices this and checks the Twitter feed, it will then trigger the Photon
        to sound the buzzer and vibrate the motor. The IFTTT Web service will check Twitter
        every  15  minutes,  so  you  may  have  to  wait  a  few  minutes  until  it  triggers  the  Photon
        board. At this point you can feel free to play around with the different types of triggers
        that are available using the Twitter Web service, such as when you tweet something or

        when you have a new follower on Twitter. You can see the final project build in Figure
        8.14.






























        Figure 8.14 Grove Photon connected to buzzer and vibration modules.
   168   169   170   171   172   173   174   175   176   177   178