Sha256: 4f094d10e8d843169afe777848d0cfa64eb5ef7c2873a09b6264a81769c1a992

Contents?: true

Size: 884 Bytes

Versions: 2

Compression:

Stored size: 884 Bytes

Contents

# ![Whipped Cream logo](header.png)

> HTTP topping for [Raspberry Pi](http://www.raspberrypi.org)
> [![Gem Version](https://badge.fury.io/rb/whipped-cream.png)](http://badge.fury.io/rb/whipped-cream)
> [![Build Status](https://travis-ci.org/justincampbell/whipped-cream.png?branch=master)](https://travis-ci.org/justincampbell/whipped-cream)
> [![Code Climate](https://codeclimate.com/github/justincampbell/whipped-cream.png)](https://codeclimate.com/github/justincampbell/whipped-cream)

## DSL

```rb
name "Garage"

camera

button "Open/Close", pin: 1 do
  tap
end

sensor "Door",
  pin: 2,
  low: "Closed",
  high: "Open",
  on_high: :door_opened

sensor "Temperature", pin: 3, unit: "F" do
  binary_to_farenheit(value)
end

helpers do
  def binary_to_farenheit(binary)
    binary.to_f * 123.45
  end

  def door_opened
    WhippedCream.find("Front Door").ring_bell
  end
end
```

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
whipped-cream-0.0.1pre5 README.md
whipped-cream-0.0.1pre4 README.md