Module: Pinoccio::Commands

Included in:
Scout, Troop
Defined in:
lib/commands.rb

Instance Method Summary collapse

Instance Method Details

#bootObject



16
17
18
# File 'lib/commands.rb', line 16

def boot
  execute("scout.boot")
end

#daisy!Object



11
12
13
14
# File 'lib/commands.rb', line 11

def daisy!
  execute("scout.daisy")
  execute("scout.daisy")
end

#eventsObject



52
53
54
# File 'lib/commands.rb', line 52

def events
  EventsCommands.new(self)
end

#functionsObject



56
57
58
# File 'lib/commands.rb', line 56

def functions
  FunctionCommands.new(self)
end

#lead?Boolean

Returns:

  • (Boolean)


3
4
5
# File 'lib/commands.rb', line 3

def lead?
  @is_lead ||= get("scout.isleadscout", :boolean)
end

#ledObject



36
37
38
# File 'lib/commands.rb', line 36

def led
  LedCommands.new(self)
end

#meshObject



44
45
46
# File 'lib/commands.rb', line 44

def mesh
  MeshCommands.new(self)
end

#pinObject



48
49
50
# File 'lib/commands.rb', line 48

def pin
  PinCommands.new(self)
end

#powerObject



32
33
34
# File 'lib/commands.rb', line 32

def power
  PowerCommands.new(self)
end

#random_numberObject



24
25
26
# File 'lib/commands.rb', line 24

def random_number
  get("randomnumber", :integer)
end

#reportObject



7
8
9
# File 'lib/commands.rb', line 7

def report
  get("scout.report", :json)
end

#temperatureObject



20
21
22
# File 'lib/commands.rb', line 20

def temperature
  get("temperature", :integer)
end

#uptimeObject



28
29
30
# File 'lib/commands.rb', line 28

def uptime
  get("uptime", :integer)
end

#wifiObject



40
41
42
# File 'lib/commands.rb', line 40

def wifi
  WifiCommands.new(self)
end