Skip to content

Instantly share code, notes, and snippets.

"models" : {
"Led" : {
"array" : true,
"shared" : false,
"attributes" : {
"ledId": {"type": "int32"}
},
"commands" : {
"startBlink" : {"paramType" : null},
"stopBlink" : {"paramType" : null}
{
"config_log" : {
"direction" : "syslog",
"filter" : {
"error" : true,
"warn" : true,
"info" : true,
"trace" : true,
"debug" : true
},
#
# deb cdrom:[Debian GNU/Linux 6.0.5 _Squeeze_ - Official i386 NETINST Binary-1 20120512-20:43]/ wheezy main
#deb cdrom:[Debian GNU/Linux 6.0.5 _Squeeze_ - Official i386 NETINST Binary-1 20120512-20:43]/ wheezy main
deb http://cdn.debian.net/debian/ wheezy main
deb-src http://cdn.debian.net/debian/ wheezy main
deb http://security.debian.org/ wheezy/updates main
{
"name": "blink-rgx-led",
"version": "1.0",
"description": "Blinks a LED equipped with Rooster GX.",
"bugs": {
"mail": "bugs@example.com"
},
"main" : "blink-rgx-led.so",
"models" : {
"Led" : {
module Moat
REST_URI = "https://sandbox.service-sync.com"
REST_PATH = "/moat/v1"
PACKAGE_ID = "blink-rgx-led"
APPLICATION_ID = "<Your Application ID>"
API_CLIENT_ID = "<Your Client ID>"
API_CLIENT_SECRET = "<Your Client Secret>"
<% @devices.each do |d| %>
<div class="container">
<table class="table-condensed">
<tr>
<td><h3>Gateway: <%= d.name %></h3></td>
<td>
<%= link_to({controller: "dashboard", action: "start_blink", name: d.name}, class: 'btn btn-info') do %>
Start Blink <i class='icon-play-circle'></i>
<% end %>
</td>