æè¿ãã¹ãã¼ãã¹ãã¼ã«ã¼ã使ã£ã¦è²ã
ã¨å®é¨ãè¡ã£ã¦ããã®ã§ããããããªãªãã§Google Home
ã®IPã¢ãã¬ã¹ç°¡åã«ç¥ãæ¹æ³ãããã¨ãããªãã¨æã£ã¦ãã¾ãããã¹ãã¼ããã©ã³çµç±ã§HOMEã¢ããªã使ãã°ç»é²ãããããã¤ã¹ã®IPã¢ãã¬ã¹ãç¥ããã¨ã¯ã§ãã¾ãããã ããã®æ
å ±ã«ãã©ãçãã¾ã§ã«ããªãã®ææ°ãå¿
è¦ã«ãªãã®ã§ãå²ã¨ããã©ããªãã¨æã£ã¦ãã¾ããã
ããã§ä»åã¯UbuntuãRaspberryPiãªã©ããç°¡åã«èª¿ã¹ãæ¹æ³ãã¾ã¨ãã¦ã¿ã¾ãããï¼ç»é¢ã¯RaspberryPiã§ãã£ããã£ãã¦ãã¾ãï¼
avahi-utils
ãã¤ã³ã¹ãã¼ã«
ä»åã使ç¨ããã®ã¯avahi-utils
ã¨ãªãã¾ããGoogle HomeãChromeCastãªã©ã§ã®åå/IPã¢ãã¬ã¹ã®è§£æ±ºã¯Bonjourï¼Avahiãï½DNSï¼
ã¨ãããããã³ã«ã使ç¨ãã¦è§£æ±ºããã¦ãã¾ããå種OSã¨ãåºæ¬çã«ã¯æ¨æºã§å¯¾å¿ã¯ãã¦ãã¾ããï¼AndroidãChromebookã¯OSã¬ãã«ã§ã¯å¯¾å¿ãã¦ãã¾ãããããã©ã«ãã®ç¶æ
ã§ã¯è§£æ±ºã§ããªãã®ã§å°ãæ®å¿µï¼
ãã®Avahiã«å¯¾å¿ããã¢ããªãavahi-utilsã¨ãªãã¾ãããã¤ãã©ããaptã³ãã³ãã使ç¨ãã¦ã¤ã³ã¹ãã¼ã«ãè¡ãã¾ãã
$ sudo apt update
$ sudo apt install -y avahi-utils
ã¤ã³ã¹ãã¼ã«ãã°
ããã§ã¤ã³ã¹ãã¼ã«å®äºã§ãããã®ããã±ã¼ã¸ã§ä½¿ç¨ããã®ãavahi-browseã³ãã³ãã¨ãªãã¾ãã
Bonjour/Avahiã®ããã¤ã¹èªè
ã¤ã³ã¹ãã¼ã«ããã¨ãavahi-browseã³ãã³ãã使ç¨ã§ããããã«ãªãã¾ããããã§ãã¼ã«ã«ã¨ãªã¢ã§ããã¼ããã£ã¹ããã¦ããããã¤ã¹ã表示ããã¾ãã 以ä¸ã®ããã«å®è¡ããã¨ããã¼ããã£ã¹ããã¦ããããã¤ã¹ã表示ããã¾ãã
$ avahi-browse -at
IPv6ã®ããã¤ã¹ãããã®ã§ããªãå¤ãã®ããã¤ã¹ã表示ããã¾ãããå
容ã¯Synology
ã®NASãå¤ãã§ãã欲ããã£ãGoogle Homeï¼èªå®
ã¯miniã使ç¨ï¼ã®æ
å ±ãåå¾ã§ãã¾ããã
ä¸è¨ã®ç»åã®ä¸ã«ããwlan0 IPv4 Google-Home-Mini-ã»ãã»ã
ã¨ããã¨ã³ããªãGoogle Home miniã«ãªã£ã¦ãã¾ãã
ã¡ãªã¿ã«ããã¼ããã£ã¹ãããã¦ãããã®ãåå¾ããã®ã§ãä¸åã§ã¯ãã¾ã表示ãããªããã¨ãããã¾ãã®ã§ãä½åº¦ãè¡ãã¨ãã¾ã表示ããããã¨æãã¾ãã
ï¼åèï¼avahi-browseã³ãã³ãã©ã¤ã³ãªãã·ã§ã³
ããã§ããã¤ã¹ãèªèããã¦ããã®ã¯ãããã®ã§ããããã®ã¾ã¾ã§ã¯IPã¢ãã¬ã¹ã¯ãããã¾ããããè¤æ°å°ã®Google Homeããã¤ã¹ããã£ãå ´åãå¤å¥ãä»ãã¾ããã
ããã§ãããã¤ã¹åã¨IPã¢ãã¬ã¹ã確èªã§ããããã«ãã¦ã¿ã¾ãã
以ä¸ã®æ§ã«ãªãã·ã§ã³ã¹ã¤ãããå¤æ´ãã¾ããããã§ã¯æ¤ç´¢ããããã¤ã¹ãgooglecast.tcpã«å¯¾å¿ãããã®éå®ãã¾ãã
$ avahi-browse -rk _googlecast._tcp
Chromecastãªã©ããã¦ãã¦ãã¾ãã¾ãããããã§ããã¤ã¹ä¸è¦§ã表示ããã¾ãããã¾ãã詳細ããããIPã¢ãã¬ã¹ãç»é²æã«ã¤ããããã¤ã¹åï¼èªåã¯ããªãã³ã°ãã¨ãã¦ãã¾ãï¼ã表示ããã¾ãããããã§ãã¹ããã¼ã ããããã¾ãããããã¤ã¹åããããã®ã§è¤æ°å°å®¶ã«ããã¤ã¹ããã£ã¦ãåºå¥ã§ãããã¨æãã¾ãã
ãããã«
ã¢ããªãã¤ã³ã¹ãã¼ã«ããã³ãã³ããå®è¡ããã ãã§ãIPã¢ãã¬ã¹ããããã®ã§ããªããæ軽ã§ããç¹ã«DHCPãªã©ã使ç¨ãã¦ããç°å¢ã§ã¯ãIPãã©ã®æ®µéã§å¤ãã£ã¦ãããããããªãã§ãããã®ãããªæ¹æ³ã調ã¹ã¦ããã®ã¯ããããªã¨æãã¾ãã
ã¾ããä»åã¯Google Homeã¨ãã¦ãã¾ããããBonjour/Avahi
ã使ç¨ãã¦ããå種ããã¤ã¹ãåæ§ã«èª¿ã¹ããã¨ãã§ããã®ã§ãDHCPãããã¯ã¼ã¯å
ã§å¤æ´ããã¦ãã¾ã£ããNASãããªã³ã¿ãªã©ã®IPãç¥ãããã¨ãã«ã便å©ãªã®ã§ã¯ãªããã¨æãã¾ãã