First you need to download the "IFTTT" and "Wio" apps on your cellphone and plug the Wio node into a power outlet, then, you plug the "Led Socket Kit"(LSK) to the node.
We'll start working on the wio app, first you'll need to connect the node to the phone, so connect the phone to an internet source and take your node, press the button labeled "Func" and hold it for four seconds, then, press next on the app, you'll need to name the new node and then you'll have acces to it, search for the "Generic digital output" option, drag it and drop it on the diagram in the same place the LSK is connected, after that, well go on to facebook.
Go to your facebook configuration and activate your e-mail notifications from your pages and establish a gmail adress to recieve them. Then, go to the IFTTT
Just starting the app, it will ask for you to sign up, create an account and make a new applet, applets are composed of 2 parts, the condition (if this) and the consecuence (then that), we'll establish the condition first, choose "this" and search for the gmail option and select "New mail in inbox from" then you'll need to establish from which adress facebook sends you notification emails, you look for that in every notification mail you recieve. After that choose "that" to establish a consecuence and search for "SeedWio", select "Drive any grove with API" with the function "int onoff" with the parameter: 1.
That will be enough for getting the led to turn on when you recieve a notification, but, it will stay turned on, so we'll need to make another applet to turn it off.The new applet will have as "this" the Seed wio "Monitor a sensor value" option, with the sensor (int onoff), the condition "equal" and the value 1 so it can detect when the light is turned on and the "that" will be the same that we used in the other applet, except instead of 1, we'll use 0, so it turns off.
And there, the led should turn on and off any time you recieve a new notification from facebook about your page.
Comments