Skip to content

Instantly share code, notes, and snippets.

@freddiefujiwara
Last active December 24, 2017 13:50
Show Gist options
  • Select an option

  • Save freddiefujiwara/6a637a1c50e1d76cd032b22ed61ac029 to your computer and use it in GitHub Desktop.

Select an option

Save freddiefujiwara/6a637a1c50e1d76cd032b22ed61ac029 to your computer and use it in GitHub Desktop.
Google HomeとIFTTTと自宅のサーバ(Rasberry Piでもok)で簡単家電操作 ref: https://qiita.com/freddiefujiwara/items/589f1388d5b278cf216e
module.exports = {
"heat":"[エアコン暖房ボタンの赤外線信号]",
"cool":"[エアコン冷房ボタンの赤外線信号]",
"airoff":"[エアコンオフボタンの赤外線信号]",
"tv":"[テレビ電源の赤外線信号]" ,
"light":"[ライトの赤外線信号]"
};
try_files $uri $uri/ /index.html;
npm i -g broadlinkjs-rm-cli
broadlinkjs-rm-cli 192.168.1.3 heat # 暖房をつける
broadlinkjs-rm-cli 192.168.1.3 heat # 暖房をつける
npm i -g altd
altd /var/log/nginx/access_log -w broadlinkjs-rm-cli,ls
broadlinkjs-rm-cli 192.168.1.3 airoff
command airoff -> Device 192.168.1.3(11:22:33:44:55:66)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment