Giter Club home page Giter Club logo

iremocon's Introduction

Iremocon

Iremocon is a gem for managing iRemocon through telnet.

Installation

$ gem install iremocon

Usage

iRemocon has following commands (for more details, please see official document).

  • au 接続確認用
  • is 赤外線発信
  • ic リモコン学習開始
  • cc リモコン学習中止
  • tm タイマーセット
  • tl タイマー一覧取得
  • td タイマー解除
  • ts 現在時刻設定
  • tg 現在時刻取得
  • vr ファームバージョン番号の取得
  • li 照度センサー値の取得
  • hu 湿度センサー値の取得 ※IRM-03WLA用
  • te 温度センサー値の取得 ※IRM-03WLA用
  • se 照度・湿度・温度センサー値の取得 ※IRM-03WLA用

You can call it as an instance method of Iremocon class.

require "iremocon"

iremocon = Iremocon.new("192.168.0.2")

iremocon.au
#=> send "*au"

iremocon.is(1)
#=> send "*is;1"

iremocon.ic(1)
#=> send "*ic;1"

iremocon.cc
#=> send "*cc"

iremocon.tm(1, 946652400, 60)
#=> send "*tm;1;946652400;60"

iremocon.tm(1, Time.local(2000), 60)
#=> send "*tm;1;946652400;60"

iremocon.tm(1, Time.local(2000))
#=> send "*tm;1;946652400;0"

iremocon.tl
#=> send "*tl"

iremocon.td(1)
#=> send "*td;1"

iremocon.ts(946652400)
#=> send "*ts;946652400"

iremocon.ts(Time.local(2000))
#=> send "*ts;946652400"

iremocon.tg
#=> send "*tg"

iremocon.vr
#=> send "*vr"

iremocon.li
#=> send "*li"

iremocon.hu
#=> send "*hu"

iremocon.te
#=> send "*te"

iremocon.se
#=> send "*se"

iremocon's People

Contributors

morikat avatar r7kamura avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.