先日のbravia∴npmを利用してBRAVIAで放映している番組名をアナウンスさせてみます。
bravia-ch.js をこちらの内容で作成します。
その後「bin/bravia-ch.js」とコマンドを実行して番組名がアナウンスされればきちんと動作しています。
bin/bravia-ch.js
*** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see http://0pointer.de/avahi-compat?s=libdns_sd&e=node
*** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see http://0pointer.de/avahi-compat?s=libdns_sd&e=node&f=DNSServiceRegister
said サンプルの番組名です
(WARNINGは無視してください)
homebotへの設定は
@homebot command tv:ch:say bin/bravia-ch.js
で、こんな応答があれば登録完了です。
set !tv:ch:say to bin/bravia-ch.js
あとはIFTTTで行いたい操作をslackに出力するよう設定すればOKです。
@homebot send tv:ch:say()
と設定します。
これでGoogle Homeに声をかけて、番組名をアナウンスさせる事ができました。
Product details are currently unavailable. Click the link to view on Amazon.
