Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 516 Bytes

README.md

File metadata and controls

27 lines (19 loc) · 516 Bytes

fhc4ruby

FutureHomeController controller for Ruby

Target device

Future Home Controller

Sample

API_KEY  = ""
FHC_HOST = "fhc.example.com"
FHC_PORT = 80

fhc = FHC.new(API_KEY, FHC_HOST, FHC_PORT)

ret = fhc.get_list
if ret.success?
    puts ret.list
end

fhc.action("扇風機", "つける")

puts "temperature: #{fhc.temp}"

Licence

Copyright © 2013 syonbori Distributed under the MIT License.