Jewliebots/wizard-of-jewliebots — pull request #1 by scottcreynolds (2014-11-28 22:46:33+00:00)
Title: Scott

Take a look.

After connecting to a device, takes you to a page that asks if you want to make a recipe or just send colors to it (preserves previous functionality)

### Device

`sendProximityRecipe` on line 113 is what will send the results of the "when I am near..." recipe dialog to the device. Currently just mimics the other function. Will need to be modified to match whatever the appropriate api call is for storing this recipe.

### Friends
Hard coded two friends, but put hooks in so that it can be built dynamically from whatever ends up being the database for friends. Currently supporting an array of javascript objects that is being set on line 23 for now.

```javascript
var friends = [
{ name: "Steven",
deviceId: "001",
avatar: "images/guy.png"
},
{ name: "Kim",
deviceId: "002",
avatar: "images/lady.png"
},
];
```
On line 165 `createFriendsList` will take this format of friends from anywhere, so if this comes from a database or web service, this should still work (format may need to change based on needs).