Skip to content

The code and repository of an interactive, social-powered installation designed by Bruce Sterling and produced by Casa Jasmina. A Tribute to NBH

Notifications You must be signed in to change notification settings

CasaJasmina/Social-Media-Fan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Social-Media-Fan

The code and repository of an interactive, social-powered installation designed by Bruce Sterling and produced by Casa Jasmina.
A Tribut to NBH.

Description

This projects uses an Arduino MKR1000 as a hardware and IFTTT plus dweet.io as a software.
Every time an interaction you choose happens, IFTTT will make an HTTP post request to dweet.io which stores this data up to 5 requests (for more you will have to upgrade).
Every hour the MKR1000 will poll those data and will trigger the fan accordingly, to then come back in sleep mode in order to save battery power.

Getting started with dweet.io

The peculiarity of this service is that you don't need any registration and that it keeps an history of the post requests you sent.

All you have to do is to choose a name for your "thing", then you'll be able to POST using:

< https://dweet.io:443/dweet/for/your-thing-name?something=value >

And to GET using:

< https://dweet.io:443/get/dweets/for/your-thing-name? >

For this particular project we will be looking for the time the fan need to be boosted, so in order to trigger the fan for 3 seconds our POST request will be:

< https://dweet.io:443/dweet/for/your-thing-name?boost=3 >

Getting started with IFTTT

IFTTT (if this than that) allows you to easily link external services to each other. In our case we want every tweet with a certain hashtag to trigger an HTTP POST to dweet.io.

First thing is to create an account on IFTTT, then create a New Applet. Select New tweet from search and choose whatever hashtag you want.

Step 1

Create the "trigger" and proceed selecting the action service: Maker Webhoocks

Step 2

Now you can fill in the URL field with the POST request we created before, make sure you selected the POST method.

Step 3

Configuration

All is left to do now is to upload the sketch on your MKR1000.

Once you uploaded the code the board will be in access point mode, so that it will expose a network named "MKR1000AP".
Connect to the network and go to http://192.168.1.1 on your browser.
It will redirect you to a web page where you can set the needed credentials.

Step 4

Press enter and you are done!

Libraries

In order to compile the sketch you have first to download some libraries:

*WiFi101
*Json library
LowPower

About

The code and repository of an interactive, social-powered installation designed by Bruce Sterling and produced by Casa Jasmina. A Tribute to NBH

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Other 100.0%