remotedroid:与Ruby MacroDroid相关的实验用于触发宏和远程响应操作 源码
RemoteDroid:查询电池状态等 require 'remotedroid' r = RemoteDroid::Client.new # toggle the torch r.invoke :torch # retrieve the current location of the device location = r.query :location #=> {:coords=>"55.9192166,-3.246983", :latency=>1.496} # play a chirpy sound r = r.invoke :'play-doda' # use TTS to say something r.control.speak_text 'hello' r.control.say 'how can I help you?' # buzz the device for a
下载地址
用户评论