Nature ã½ããã¦ã§ã¢ã¨ã³ã¸ãã¢ã®ç°äºã§ãããã®è¨äºã¯ã第 2 å Nature Engineering Blog ç¥ã® 1 æ¥ç®ã®è¨äºã«ãªãã¾ãï¼æ¬æ¥ã¯ãã§ããæ¥ã§ããï¼ Matter ã«å¯¾å¿ãã Nature Remo nano ãçºå£²ããã¾ããï¼ æ¬æ¥ 2023/7/4 12:00 ãããMatter ã«å¯¾å¿ãã Nature Remo nano ãçºå£²ããã¾ããï¼3,980 å㧠Matter ããã¤ã¹ãæã«å ¥ããªãã¦â¦ï¼ããã¯ããã¯ãããã¦ãããããã¦ãã¾ããï¼ (以é Nature Remo nano ã Remo nano, nano ã¨å¼ã¶ãã¨ãããã¾ã) nature.global è³¼å ¥ã¯ãã¡ããããã©ããï¼ https://www.amazon.co.jp/dp/B0C6V1CJB7 Matter ã£ã¦ãªã«ï¼ Matter ã£ã¦ãªã«ï¼ã¨æãæ¹ãããã£ãããã¨æãã¾ã
ã¯ããã« Google Homeã§ã®å¤é¨APIã³ã¼ã«ã«IFTTTã使ã£ã¦ããããã¯å¤ãã¨æãã¾ãã IFTTTãææã«ãªã£ã¦ãã¾ãç¡æçã ã¨3ã¤ã¾ã§ã®ãã諦ãã¦ãã¾ã£ãæ¹ãå¤ãã¨æããã¾ãã 代ããã«ä½ãç¡æã§ããæ¹æ³ãæ¢ããã¨ããHome Assistantã使ããã¨ã§IFTTTã§è¡ã£ã¦ãããã¨ã®ä»£ç¨ãã§ãããã§ããã Google Homeã§ã®å¤é¨APIã³ã¼ã«ãã¹ãã¼ããã¼ã åã«ä¾¿å©ãããªãã¨ãããã£ãã®ã§æ¦è¦ã¨èµ¤å¤ç·ãªã¢ã³ã³é£æºãGoogle Homeé£æºã¾ã§ã説æãã¦ããã¾ãã ããããããéè¦ã§ç»åã®ã¹ã¯ã·ã§å¤ãã§ã®èª¬æã«ãªãã¾ããã½ãããã¯ã©ã¦ããµã¼ãã¹å´ã®æ´æ°ã§UIãä¸é¨å¤ããå¯è½æ§ãããæ¨ã¯ãäºæ¿ä¸ãã(2020/12/19æç¹ã§ã®ã¹ã¯ã·ã§ã«ãªãã¾ãï¼ ç°¡åãªé£æºæ¦è¦ Googleã®Homeã¢ããªã®ã«ã¼ãã£ã³è¨å®ã«ã¦Home Assistantã®ã¹ã¯ãªããï¼å種å¤é¨APIå®
ã¯ããã« Google Homeçºå£²å½åãGoogle Homeããã¯ã®Hello Worldã¨ãè¨ãããGoogle Homeãåããã¦ã¿ããããã¯ã§èª°ãã使ç¨ããã§ããããgoogle-home-notifierãã§ãããåããªããªã£ããã¡ã³ããããªããªã£ããã§ããã¯ãå¤ãã®æ¹ãGoogle Homeãåããããã¨ãããã¦ãã¾ã£ãã®ã§ã¯ãªãã§ããããã ãããªæãµã¨npmãçºãã¦ããããgoogle-home-playerãã¨ããããã±ã¼ã¸ããããREADMEã§ãgoogle-home-notifierã®ä»£æ¿ã¨ãã£ãã®ã§è©¦ãã¦ã¿ã¾ããã google-home-notifierã¯callbackå½¢å¼ã®æ¸ãæ¹ã§ããããgoogle-home-playerã¯Promiseã§æ¸ãã¾ãããã¡ããasync/awaitã§ãã ãã®ãããããã£ã¦ãgoogle-home-notifierã«æ¯ã¹å¤§å
ååã®è¨äºã§ï¼Raspberry Pi 4Bã§Dockerã使ãã¾ãããï¼æã£ãããããªã½ã¼ã¹ãä½ã£ã¦ããã®ã§ï¼ããçé»åã«ã§ããªããæ¤è¨ãã¾ããï¼Raspberry Pi Zero Wã«Dockerãã¤ã³ã¹ãã¼ã«ãã¦ä½¿ã£ã¦ã¿ã¾ããï¼ ä»æ§ Raspberry Pi Zero W 802.11 b/g/n wireless LAN Bluetooth 4.1 Bluetooth Low Energy (BLE) 1GHz, single-core CPU 512MB RAM Mini HDMI and USB On-The-Go ports Micro USB power HAT-compatible 40-pin header Composite video and reset headers CSI camera connector Buy a Raspberry Pi Zero W
3æã«WaveShareã®CM4åãã®IOãã¼ããCM4-NANO-Aããè²·ã£ã¦ã¬ãã¥ã¼ãã¾ããã akkiesoft.hatenablog.jp ãããæ¸ããããã¨ããå¾ã«ãCM4-NANO-Bããç»å ´ãã¦ãLANãã¼ãã»HDMIãã¼ãã»DSIãã¼ãã»3.5mmãªã¼ãã£ãªã追å ããããã«ä»æ§ã ã£ãã®ã§ã大å¤æããæãããã¤ã¤ææ ¢ãã¦ãã¾ããããã¤ãã«ææ ¢ããããã«ããã£ã¦ãã¾ãã¾ããâ¦â¦ï¼ ãã£ããAã¨Bã並ã¹ã¦æ¯è¼ããã¨ãããªæãã GPIOã¯Aã¨åããããã³ãããã¼ãä»å±ãã¦ãã¦ä»»æã§åãä»ãã«ãªã£ã¦ãã¾ãããä»åã¯å®è£ ããã«ä½¿ãã¤ããã§ãã ãã¼ãé¡ã¯ä¸ä¸å·¦å³å ¨é¨ããåºã¦ãã¾ããããããã¬ã¹ã§æä½éå¿ è¦ã«ãªãé»æºã»SDã»LANãä¸å´ã«ã¾ã¨ã¾ã£ã¦ããã®ã¯ãã±ã¼ãã«ã®åãåãã®è¦³ç¹ãã大å¤ãã¤ã³ããé«ãã¨æãã¾ããã次ãã§å¿ è¦ã«ãªããããªUSBã»HDMIã¯ä¸å´ã«å®è£ ããã¦ãã¾ããHDM
Raspberry Pi Zeroã¯å®ä¾¡ã«ã³ã³ãã¯ããªRaspberry Piã®ç°å¢ãæã«å ¥ãããã¨ãã§ãã大å¤éå®ãã¾ããããããææ°ã®Raspberry Pi(Raspberry Pi 3ãããARMv8/arm64ã§ã)ã¨æ¯ã¹ã¦ã¢ã¼ããã¯ãã£ã®ãã¼ã¸ã§ã³ãARMv6ã¨å¤ããNode.jsã®ã¡ã¤ã³ãµãã¼ãããå¤ãã¦ãã¾ã£ã¦ãã¾ãã ARMv7ã¾ã§ãããã¦ã³ãã¼ããã¼ã¸ã«åå¨ããªã ARMv6ã§æãæ°ãããã¦ã³ãã¼ãã§ããã®ã¯ã2021/04/25ç¾å¨v10.24.1ã®ããã§ããã¡ããã¨ã»ãã¥ãªãã£ãããã¯å½ãã£ã¦ããããã§ãããv10ã®EOLã¯ä»æã§çµããã§ãããæ©è½é¢ã®æå³ãèãã¦ãã極åæ°ãããã¼ã¸ã§ã³ã使ã£ã¦ããããã§ãããã ãã¡ã¤ã³ãµãã¼ããã¨ããããæè¨ããã®ã¯...ããã§ããéå ¬å¼ã§å®é¨çãªããã¸ã§ã¯ãã¨ãã¦ãã«ããããææç©ã https://unofficial-bu
å人ã¡ã¢ç¨ã«Raspberry Piã«SSHæ¥ç¶ãã¦ãããããã¨ãã¾ã¨ãã¦ããã¾ããSSHæ¥ç¶ããã¾ã§ã¯ä»¥ä¸ã®è¨äºã«ã¾ã¨ãã¦ãã¾ãã æµã useradd ã¾ãã¯piã§ãã°ã¤ã³ããããã®ã¦ã¼ã¶ã¼ã¯æ°ããsudoã°ã«ã¼ãã«æå±ãã¦ããã¦ã¼ã¶ã¼ã追å ããã¾ã§ä½¿ç¨ããã ä»»æã®ã¦ã¼ã¶ã¼åã§ã¦ã¼ã¶ã¼ãä½æãããããã©ã«ãã§è¿½å ããã¦ããpiã¦ã¼ã¶ã¼ã¯ã»ãã¥ãªãã£å¼·åã®ããã«å¾ç¨åé¤ããã $ sudo useradd taneyats éä¸ã«ã¦ã¼ã¶ã¼ã«é¢ããæ å ±(ååãªã©)ãç»é²ããããã³ãããåºã¦ãããã¨ã³ã¿ã¼é£æã§åé¡ãªãã ãã®è¾ºã¯ç´æ¥Raspberry Piã«æ¥ç¶ãã¦è¨å®ãã¦ããã¨ãã«ãã£ã¦ããã¦ããããããããªãã usermod -aG å ã»ã©è¿½å ããã¦ã¼ã¶ã¼ãã¡ã¤ã³ã§ä½¿ç¨ããããã«ãpiã®æå±ãã¦ããã°ã«ã¼ãããã®ã¾ã¾ä½¿ç¨ãããgroups ([username])ã³ãã³ãã§ç¾å¨ã®ã¦
Raspberry Pi zero WHãã¢ãã¿ã¼ã»ãã¼ãã¼ããªãã§SSHæ¥ç¶ããã¾ã§ ãã®è¨äºã§ã¯ããã¼ãã¼ããªãããã¢ãã¿ã¼ãªããããã¦ã¹ãªãããLANã±ã¼ãã«ãªããã§Raspberry Piï¼ã©ãºãã¤ï¼ã®åæè¨å®ããæ¹æ³ããããã解説ãã¾ããSSHã§Raspberry Piããªã¢ã¼ãæä½ã§ããããã«ãMacä¸ã§Raspberry Piã®ç°å¢æ§ç¯ãè¡ãªã£ã¦ããã¾ãã â¼ Raspberry Pi 4ã®ã¤ã³ã¹ãã¼ã«æ¹æ³ã¯ãã¡ã
ããã«ã¡ã¯ãã½ã©ã³ã ã®ä¼è¤(ããã¯ãã¼ã : Masaki)ã§ãã Raspberry Pi(ã©ãºããªã¼ãã¤ãé称:ã©ãºãã¤)ã¯ãã»ã³ãµã¼ã¨æ¥ç¶ã§ããå°åã®ã³ã³ãã¥ã¼ã¿ã¼ã§ãIoTã®æ¤è¨¼ããã¢ãªã©ã®ãã使ããã¾ããããã¦ãRaspberry Pi Imagerãã¯ãã©ãºãã¤ã§å©ç¨ããmicroSDã«OSãæ軽ã«ã¤ã³ã¹ãã¼ã«ã§ããå ¬å¼ãã¼ã«ã§ãã ãã®ããã°ã§ã¯2022å¹´6ææç¹ã§ã®ææ°ãã¼ã¸ã§ã³(v1.7.2)ã«å¯¾å¿ããRaspberry Pi Imagerã®ä½¿ãæ¹ã«ã¤ãã¦èª¬æãã¦ããã¾ãã Raspberry Pi Imagerã¨ã¯ Raspberry Pi Imagerã¨ã¯ãã©ãºãã¤ã§ä½¿ãOSã®ãã¦ã³ãã¼ãã¨microSDã®æ¸ãè¾¼ã¿ãä¸åº¦ã«è¡ã£ã¦ãããã½ããã¦ã§ã¢ã§ãã対å¿OSã¯WindowsãmacOSãããã¦GUIã¿ã¤ãã®Linuxã§å©ç¨ã§ãã¾ãããã¦ã¹ãæä½ãã¦ï¼ï½ï¼ã¯ãªãã¯ã§æ¸ã
åºæ¬ã®å ¬å¼OSãRaspberry Pi OSã æåã¯åºæ¬ã§ããRaspberry Pi OSã«ã¤ãã¦ãç´¹ä»ãã¾ãã ç¥ã£ã¦ãããã¼ã¨ãã人ã¯èªã¿é£ã°ãã¦ãã ããã ã©ãºãã¤ã®åºæ¬OSã¯Raspberry Pi OSï¼æ§Raspbianï¼ã¨è¨ãã¾ããå ã ã®å称ã§ããRaspbianã¯Linuxã®ãã£ã¹ããªãã¥ã¼ã·ã§ã³ã®1ã¤ã«ããDebianï¼ããã¢ã³ï¼ã¨ããOSãå ã«ãªã£ã¦ãã¾ãã ã©ãºãã¤ç¨ã«æé©åãããDebianãã¼ã¹ã®ç¡æã®ãªãã¬ã¼ãã£ã³ã°ã·ã¹ãã ã§ãã2020å¹´ããRaspberry Pi OSã¨å称ãçµ±ä¸ããã¾ããã Raspbianã¯å ã ãã¨ããã³ãã¥ããã£ã§ä½æããã½ããã¦ã§ã¢ã§ããã http://www.raspbian.org/ã¯ã½ããã¦ã§ã¢æ好家ã®ãã¼ã ãä½æãããã®ã§ãã ã©ãºãã¤ã«ããGPIO端åãå«ããç¹å¥ãªæ©è½ãOSã¬ãã«ï¼ã¨ã½ããã¦ã§ã¢ï¼ã§å¯¾å¿ãã¦ããã®
Natureæ ªå¼ä¼ç¤¾ï¼ä»£è¡¨åç· å½¹ï¼å¡©åº æ´æµ·ãæå¨å°ï¼æ±äº¬é½æ¸è°·åºã以ä¸ãNatureãï¼ãæä¾ããã¹ãã¼ããªã¢ã³ã³ ãNature Remo 3ãã¯ãQrioæ ªå¼ä¼ç¤¾ï¼ä»£è¡¨åç· å½¹ï¼å¾è¤ é磨ãæå¨å°ï¼æ±äº¬é½æ¸è°·åºã以ä¸ãQrioãï¼ãæä¾ããã¹ãã¼ãããã¯ãQrio Lockãã¨é£æºãããNature Remo 3ãããããã¯ã¼ã¯ããã¨ãã¦ããQrio Lockãã®æä½ãå¯è½ã«ãªãã¾ããã ããã«ãããã¹ãã¼ããã©ã³ããã®éµã®é éæä½ããæ½é ã»è§£é ç¶æ³ã®ç¢ºèªãæ½é ã»è§£é ãè¡ãããéã®æ å ±ãéç¥ã§åãåããããã«ãªãã¾ããããNature Remo 3ãã§ãå©ç¨ããã ãããªã¼ãã¡ã¼ã·ã§ã³æ©è½ãã·ã¼ã³æ©è½ã«ã¤ãã¦ã¯é 次対å¿ãã¦ããäºå®ã§ãã ã¾ããåæã«ãNature Remoãã¢ããªã¯ãAmazon Alexaãã®ã¢ããªéã¢ã«ã¦ã³ããªã³ã¯ã«å¯¾å¿ãããAmazon Alexaãã¨ã®é£æºãã¯ã³
Nature Remo ã«ã¯ããã¼ã«ã«ç¨ã® API ãç¨æããã¦ãã¾ãã ãµã¼ãé害æãã¤ã³ã¿ã¼ãããæ¥ç¶é害æã§ããLocal API çµç±ã§ããã°å©ç¨å¯è½ã§ãã â»ä»¥åã®è¨äºã§è§¦ãã Cloud API ã¨ã¯å¥ç© å ¬å¼ãµã¤ãã® Swagger ã«è©³ç´°ãè¨è¼ããã¦ãã¾ãã https://local-swagger.nature.global/ Remo ã§ç»é²æ¸ã¿ã®ãªã¢ã³ã³ä¿¡å·ã¯ãµã¼ãå´ã«ä¿åããã¦ããããããä»å使ç¨ãããã¼ã«ã«ããå¼ã³åºããã¨ã¯ã§ãã¾ãããåå¥ã«èµ¤å¤ç·ä¿¡å·ãæå®ããå¿ è¦ãããã¾ãã IP ã¢ãã¬ã¹ã調ã¹ãRemo ã®æ㤠IP ãåãã£ã¦ããã°ã¹ãããå¯è½ã(ã«ã¼ã¿ã®ç®¡çç»é¢ã§èª¿ã¹ãã®ã楽) ã¾ãã¯ããã«ãRemo ãå©ç¨ãã¦ãããã¹ãåã確èªãdns-sd -B _remo._tcp ã§æ¤ç´¢ã§ãã¾ãã $ dns-sd -B _remo._tcp Browsing
å æ¥å¼ã£è¶ãã¦åãã¦ãªã¼ãããã¯ä»ãã®ãã³ã·ã§ã³ã«ä½ã¿å§ããã®ã§ãããä¸ãä¸é¨å±ã«éµãç½®ããã¾ã¾åºããã¦ãã¾ãã¨å ±åçé¢ããå ã«å ¥ããªããªã£ã¦ãã¾ãã¨æãããªãã¨ããªã¢ã¼ãã§è§£é ã§ããªããã¨è©¦è¡é¯èª¤ãã話ã§ãã ï¼ãã¹ã確èªãã´ãåºãã§æ½é ããã«åºãããããã¨ãããããèªå® ã®çé¢ãã¢ã¯ä»¥åãã使ã£ã¦ããSESAME miniãã¤ãã¦ã¢ããªã§æ½é ã»è§£é ã§ããããã«ãã¦ããã®ã§ããã£ããéµãç½®ããã¾ã¾åºããã¦ãã¾ããã¨ã¯ããå¾ãï¼ å®æå½¢ã¯ãã¡ãã ã¾ãæåã¯åç´ã«ãSwitchBotã§ã¤ã³ã¿ã¼ãã³ã®è§£é ãã¿ã³ãæ¼ããããã«ãã¾ããã SwitchBotã¯ã¢ããªããæä½ãã¦ç©çã¹ã¤ãããæ¼ããã¨ãã§ããããã¤ã¹ã§ãã www.switchbot.jp SwitchBotåä½ã§ã¯Bluetoothçµç±ã§ã®ã¿æä½ã§ãã¾ãããããï¼Hub MiniãHub Plusï¼ã使ç¨ãã¦Wi-Fiã«æ¥ç¶ããã
ã¯ããã« ééã»ã³ãµã¼ã使ã£ã¦å¾ããã¼ã¿ããRaspberryPi3ãGatewayã¨ãã¦Google Cloud IoT Coreçµç±ã§BigQueryã«ä¿åãã¦ã¿ã¾ããã RaspberryPi3ã§ã®ééã»ã³ãµã¼ã®ä½¿ãæ¹ãææ¡ãããã£ããã¨ã¨ãGCPé£æºãã¦ãã¼ã¿æ ¼ç´ã¾ã§ãããã¨ã§ãä¸é£ã®IoTã·ããªãªãåä½ç¢ºèªãããã£ããã¨ãã¢ããã¼ã·ã§ã³ã§ãã ãã¨ããã®è¨äºãè¦ã¦è§¦çºãããã¾ããã ã©ãºãã¤ã§ã³ã¼ãã¼ãããIoTï¼ææ¥ããã in æèä¼åº§ã¿ã¯ã¼ï¼ ãããªã¦ã¼ã¶ã対象ã§ãã ééã»ã³ãµã¼ãã©ãºãã¤ã¨é£æºããã¦å®éã«ä½¿ã£ã¦ã¿ãã IoTã·ããªãªãå®éã®ã·ãã¥ã¬ã¼ã¿ã§ãªãå®éã®ããã¤ã¹ãå©ç¨ãã¦åããã¦ã¿ãã ã¯ã©ã¦ãã¯GCPã使ããã ç°å¢ RaspberryPi3 (Python2.7) ééã»ã³ãµã¼(ãã¼ãã»ã«ãADã³ã³ãã¼ã¿HX711) GCP Cloud IoT Core(
âãã¡ãã®ãµã¤ãã§ãSwitchBot ã使ã£ã¦ãå¤ãããã³ã·ã§ã³çé¢ã®è§£é ããã¦ããã®ã§ããã¡ã§ã試ããã¨ã«ãã¾ããã hajipion.com ã¾ãã¯ãSwitchBot ãè³¼å ¥ã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}