ããªãã®å®¶ã®å
å€ã§ç©ºæ°ã®è³ªãç£èŠããããšãèããããšããããŸããã©ãã«äœãã§ä»äºãããŠããŸããïŒ
balenaSenseãšåä»ã
ããããã®ãããžã§ã¯ãã¯ã枩床ã湿床ãæ°å§ã倧æ°è³ªã
枬å®ãããŠãããã§ãããã©ãããã§ãèŠçŽçµ±èšã衚瀺ããŠåŸåã远跡ã§ããããã·ã¥ããŒãã§ãã
å
容
ã¯ããã«
空æ°ãšæ°è±¡èŠ³æž¬æã®å質ãå¶åŸ¡ããã«ã¯ãå€ãã®ã¯ã€ã€ãŒãšããŸããŸãªã»ã³ãµãŒãå¿
èŠã§ããããã¹ãŠã®æž¬å®å€ãè¯ãå°ããªããŒãã«çµåããã»ã³ãµãŒãç»å ŽããŠããç¶æ³ã¯å®¹æã«ãªããŸããã
è¿œå ã®ã³ã³ããŒãã³ããªãã§Raspberry Piã«çŽæ¥æ¥ç¶ãããªãŒã«ã€ã³ã¯ã³ã»ã³ãµãŒã䜿çšããŠã枩床ã湿床ãæ°å§ãããã³ç©ºæ°è³ªãç£èŠããããšãæ€èšããŠãã ããã é»åå·¥åŠã®çµéšã¯å¿
èŠãããŸããããã¯ãã ããŠã¯å€§æè¿ã§ãïŒãã ãããªãã·ã§ã³ã§ãïŒã ãã®ãããžã§ã¯ãã¯ãçŸåšã®æž¬å®å€ã衚瀺ããããã«åŸåã確èªããããã®ã°ã©ãã£ã«ã«ã€ã³ã¿ãŒãã§ã€ã¹ãšãšãã«ãå±¥æŽæž¬å®å€ãä¿åããããã®ããŒã¿ããŒã¹ãå®è£
ããŠããŸãã
å¿
èŠãªæ©åš
ãã®ãããžã§ã¯ãã®ããã«è³Œå
¥ããå¿
èŠããããã®ã¯æ¬¡ã®ãšããã§ãã ã¯ãã ããŠã䜿çšãããã©ããã«å¿ããŠãã»ã³ãµãŒããŒããéžæããŸããããã«æ©èœãããã®ãããã°ãå°ãã¯ãã ä»ããå¿
èŠãªãã®ããããŸãã
ã¯ãã ä»ãããããªã
ã¯ãã ä»ãããããªãå Žåã¯ã次ã®ãã®ãå¿
èŠã§ãã
ã¯ãã ä»ãããã-ããïŒ
ããªããã¯ãã ããŠãæŸã£ãŠæºè¶³ããŠããå Žåãããªãã¯å¿
èŠã«ãªããŸãïŒ
ãã®ä»ã®ã»ã³ãµãŒ
æ¢ã«äœããã®ã»ã³ãµãŒããæã¡ã®å Žåããã®ãããžã§ã¯ãã¯
Sense HATããµããŒãããŸãããè¿œå ã®ããŒãã¹ããããŸãïŒLEDãããªãã¯ã¹ã®ã¹ãã€ãªãŒïŒãã¡ããã空æ°ã®è³ªã«ããïŒïŒ
ã©ã€ã¶ãŒä»ãããã·ã¥BME680ã¯ãããŸããŸãªäŸ¡æ Œã§ããŸããŸãªãµãã©ã€ã€ãŒãã泚æã§ããŸãã
ã泚æ ãã®èšäºã§ã¯ãPimoroniã䜿çšããŸãããã®ããŒãã«ã¯ãRaspberry Pi GPIOã®é£çµ¡å
ãæ£ããé åºã§ç Žæãããšããè¿œå ã®å©ç¹ããããŸãã ä»ã®ã«ãŒãã䜿çšããå Žåãé»æºãã°ã©ã³ããããã³I2Cãã¹ïŒSDAãšSCLïŒãåãã§ããããšã確èªããå¿
èŠããããŸã-ããã«ã€ããŠã¯ãããã¥ã¢ã«ã®åŸåã§èª¬æããŸãã
ãœãããŠã§ã¢
GitHubã§
balena-senseãããžã§ã¯ããéããŸããããã®ãããžã§ã¯ãã«ã¯ã皌åäžã®ã·ã¹ãã ã«å¿
èŠãªãã¹ãŠã®ãœãããŠã§ã¢ãæ§æãããã³ã³ãŒããå«ãŸããŠããŸãã ãã®ãããžã§ã¯ããç¡æã®
balenaCloudã¢ã«ãŠã³ãã«å±éããŠãRaspberry Piã®ãã¹ãŠã®ãœãããŠã§ã¢ãé
åžãããªã¢ãŒãã¢ã¯ã»ã¹ãæäŸããŸãã ãããã£ãŠã次ã®ãã®ãå¿
èŠã§ãã
æ©åšã®çµã¿ç«ãŠ
ãã®ãããžã§ã¯ãã®ããŒããŠã§ã¢ã«é¢ããäœæ¥ã¯ã»ãšãã©ãããŸããã ç®æšã¯ãã»ã³ãµãŒããŒããRaspberry Piã®GPIOãã³ã«æ¥ç¶ããããšã§ãã
BME680ã¯ãI2CïŒeye-squared-seeïŒãšåŒã°ãããã¹ãä»ããŠRaspberry Piãšéä¿¡ããŸããããã¯ã2æ¬ã®ã¯ã€ã€ãåããã·ãªã¢ã«ãã¹ã§ãã ãããã®2æ¬ã®ã¯ã€ã€ã¯ãåæã©ã€ã³ïŒSCKïŒããã³ããŒã¿ã©ã€ã³ïŒSDAïŒãšåŒã°ããŸãã 2æ¬ã®ã¯ã€ã€ã«å ããŠãã»ã³ãµãŒïŒ3.3VãŸãã¯3V3ïŒã«é»æºãäŸçµŠããæ¥å°ããå¿
èŠããããŸãã
PimoroniãŸãã¯Sparkfunããã¯ãã ä»ãããã«ããŸãã¯Sense HATã䜿çšããã«ãªãã·ã§ã³ãéžæããå Žåãå
æ²¢ã®ããæ°ããã³ã³ããŒãã³ããRaspberry Piã«æ¥ç¶ããã ãã§ããã¹ãŠã®æ¥ç¶ãèªåçã«è¡ãããŸãã次ã®ã¹ãããã«é²ã¿ãŸãã
PimoroniãŸãã¯å¥ã®ã©ã€ã¶ãŒã䜿çšããŠã»ã³ãµãŒãRaspberry Piã«çŽæ¥æ¥ç¶ããå Žåãäž»ãªããšã¯ãäžèšã®æ¥ç¹ïŒSDAãSCKã3V3ãããã³GNDïŒãæ£ããæ¥ç¶ããããšã§ãã
Raspberry Piã§GPIOãæäœããããã®äŸ¿å©ãªãµã€ãã¯
pinout.xyzã§ãã ãã³1ïŒ3V3é»æºïŒã3ïŒSDAïŒã5ïŒSCLïŒããã³9ïŒã°ã©ã³ãïŒãå¿
èŠã§ããããšãæ確ã«ç€ºããŠããŸãã Pi 2以éã§ã¯ã40ãã³GPIOãæšæºã§ãã PimoroniããŒãã䜿çšããŠããå Žåãã³ã³ã¿ã¯ãã¯ããŒããæ¥ç¶ããæ£ããé åºã«ãªã£ãŠããŸãã ããŒãäžã®è¡šèšãäžèšã®ãã³é
眮å³ãšäžèŽããããšã«æ³šæããŠãã ããã
ãããããã®æ¹æ³ã§ã»ã³ãµãŒãæ¥ç¶ãããšã枬å®å€ã¯Raspberry Piããã»ããµãŒããã®ç±ã®åœ±é¿ãåããŸãã ããæ£ç¢ºãªæž¬å®å€ãåéããã«ã¯ãããŒãããã»ã³ãµãŒãåãå€ãå¿
èŠããããŸãã以äžã«ç€ºãããã«ã
DuPontã®ãã¶ãŒããŒãã¶ãŒïŒãŸãã¯
ãžã£ã³ããŒãžã£ãŒã㌠ïŒ
ã±ãŒãã«ã§è¡ããŸãã
åæ§ã«ããã³é
眮å³ãæ£ç¢ºã«äžèŽããªãå¥ã®ã»ã³ãµãŒã䜿çšããå Žåãåãæ¹æ³ã䜿çšããŠãããã®ããŒããPiã«æ¥ç¶ã§ããŸãã äž»ãªãã®ã¯ã3V3ãSDAãSCLãããã³GNDãžã®æºæ ãä¿èšŒããããšã§ãã ããŒãã«SDIãSDOãCSã®æ¥ç¹ãããå Žåã¯ããã®ãããžã§ã¯ãã§ã¯äœ¿çšããªã代æ¿SPIã€ã³ã¿ãŒãã§ãŒã¹ã«äœ¿çšããããããç¡èŠã§ããŸãã
äžèšã®åçã§ã¯ãRaspberry Pi 3A +ã䜿çšããŠããŸãããPi Zeroãå®äŸ¡ãªãœãªã¥ãŒã·ã§ã³ãšããŠé©ããŠããŸãã
Raspberry Piãæ§æãã
balenaOSãªãã¬ãŒãã£ã³ã°ã·ã¹ãã ã§SDã«ãŒãããã©ãã·ã¥ããbalenaCloudã¯ã©ãŠãã«æ¥ç¶ããããã«ããã€ã¹ãè¿œå ããŠãåŸã§ç°¡åã«æŽæ°ã§ããããã«ãããžã§ã¯ããæ§æããŸãã
ãŸããbalenaCloudã¢ã«ãŠã³ããèšå®ããå¿
èŠããããŸãã ããã¯ãç»é²ãã¢ããªã±ãŒã·ã§ã³ã®è¿œå ãããã³ããã€ã¹ã®è¿œå ãæå³ããŸãã
ã¹ããã1. balenaCloudã«ãµã€ã³ã¢ãããã
æ¢ã«GitHubãŸãã¯Googleã¢ã«ãŠã³ãããæã¡ã®å Žåã¯ã
ç»é²ããã»ã¹ãçµãããšãªããã°ã€ã³ã«äœ¿çšã§ããŸãã
ã¹ããã2.ã¢ããªã±ãŒã·ã§ã³ãäœæãã
æ£ããããã€ã¹ã¿ã€ããšã¢ããªã±ãŒã·ã§ã³ã¿ã€ããšããŠ
Starter
ãéžæããŠã¢ããªã±ãŒã·ã§ã³ãè¿œå ãã[
Create New Application
]ãã¯ãªãã¯ã
Create New Application
ã ãã®ã¿ã€ãã¯ãã¹ãŠã®ãã€ã¯ããµãŒãã¹ããµããŒãããæ倧10å°ã®ããã€ã¹ãç¡æã§ãã
次ã«ãæ°ããäœæãããã¢ããªã±ãŒã·ã§ã³ã®ããã·ã¥ããŒãã衚瀺ããã次ã®ã¹ãããã«é²ãã§ããã€ã¹ãè¿œå ã§ããŸãã ã¢ããªã±ãŒã·ã§ã³ã«ä»»æã®ååãä»ããããšãã§ããŸãããã³ãŒãã®èšè¿°æã«ããã¥ã¢ã«ã§åŸã§å¿
èŠã«ãªããŸãã
ã¹ããã3.ããã€ã¹ãè¿œå ããOSãèµ·åããŸã
ã¢ããªã±ãŒã·ã§ã³ã®äœæåŸãç·è²ã®[
ããã€ã¹ã®è¿œå ]ãã¿ã³ãã¯ãªãã¯ããŠããã®ã¢ããªã±ãŒã·ã§ã³ã«ããã€ã¹ãè¿œå ã§ããŸãã ããã€ã¹ãè¿œå ãããšãã«ãæ£ããããã€ã¹ã¿ã€ããæå®ããŸãã ã¯ã€ã€ã¬ã¹ãããã¯ãŒã¯ã«æ¥ç¶ããŠããå Žåã¯ãWiFI SSIDãšãã¹ãã¬ãŒãºãèšå®ã§ããŸãã
æ³šïŒ Raspberry Pi 3ã¯ã¢ãã¡ãŒã·ã§ã³ã«è¡šç€ºãããŸããæ£ããã¿ã€ãã®ããã€ã¹ãéžæããããšãå¿ããªãã§ãã ããïŒ
ãã®ããã»ã¹ã¯ãã¢ããªã±ãŒã·ã§ã³ããã³ããã€ã¹ã¿ã€ãã®ã«ã¹ã¿ã ã€ã¡ãŒãžãäœæããŸããããã«ã¯ãæå®ãããŠããå Žåããããã¯ãŒã¯ãã©ã¡ãŒã¿ãŒãå«ãŸããŸãã
泚ïŒãŸããéçºè
ã€ã¡ãŒãžãéžæããŠãããã€ãã®ãã¹ããšãã©ãã«ã·ã¥ãŒãã£ã³ã°ãè¡ãããšããå§ãããŸãã éçºã€ã¡ãŒãžãšæ¬çªã€ã¡ãŒãžã®éãã®è©³çŽ°ã«ã€ããŠã¯ã
ãã¡ããåç
§ããŠ
ãã ãã ã ããã«éçšã€ã¡ãŒãžã®å±éãéå§ã§ãããšç¢ºä¿¡ããŠããå Žåã¯ããé¡ãããŸãã
æé 4. SDã«ãŒããšããŒãããã€ã¹ãèšé²ãã
OSã€ã¡ãŒãžãããŒããããããSDã«ãŒãããã©ãã·ã¥ããŸãã ããã«ã¯
balenaEtcherã䜿çšã§ããŸãã
ããã»ã¹ãå®äºããããSDã«ãŒããRaspberry Piã«æ¿å
¥ããé»æºãæ¥ç¶ããŸãã
ããã€ã¹ãåããŠèµ·åãããšãbalenaCloudããã·ã¥ããŒãã«æ¥ç¶ããŸãããã®åŸããªã³ã©ã€ã³ãªã¹ãã§ç¢ºèªãã次ã®æé ã«é²ã¿ãŸãã
ãã©ãã«ã·ã¥ãŒãã£ã³ã°ïŒããã€ã¹ã¯æ°åã§ããã«ã«è¡šç€ºãããã¯ãã§ãã 衚瀺ãããªãå Žåã¯ãäœããããããã£ãã ããã¥ã¡ã³ãã«ã¯ããããçºçããçç±ã«é¢ããå€ãã®æ
å ±ãå«ãåºç¯ãª
ãã©ãã«ã·ã¥ãŒãã£ã³ã°ã¬ã€ãããããŸãã ããã¥ã¡ã³ãã圹ã«ç«ããªãã£ãå Žåã¯ã
ãã©ãŒã©ã ã«ãåãåãããã ããã
ãœãããŠã§ã¢å±é
Raspberry Piã®æºåãããŠã³ããŒããbalenaCloudãžã®æ¥ç¶ãå®äºããããã¢ããªã±ãŒã·ã§ã³ã³ãŒããããã€ã¹ã«ã€ã³ã¹ããŒã«ããæºåãæŽããŸãã
ã¯ãŒã¯ã¹ããŒã·ã§ã³ã«balena CLIããŒã«ãã€ã³ã¹ããŒã«ãã
BalenaCloudã䜿çšãããšãã¢ããªã±ãŒã·ã§ã³ãœãããŠã§ã¢/ã³ãŒããRaspberry Piããã³ãã®ä»ã®ããã€ã¹ã«ãªã¢ãŒãã§è»¢éã§ããŸãã ãããå¯èœã«ããã«ã¯ãã¯ãŒã¯ã¹ããŒã·ã§ã³ïŒRaspberry Piã§ã¯ãªãïŒãããã€ãã®æå°ãœãããŠã§ã¢èŠä»¶ãæºãããŠããå¿
èŠããããŸãã
泚ïŒãã®ãããžã§ã¯ããæ£åžžã«ãããã€ããããã«ãSSHãŸãã¯balenaCloudããã·ã¥ããŒãããããã€ã¹èªäœã§ã³ãã³ããå®è¡ããå¿
èŠã¯ãããŸããã ãã¹ãŠããªã¢ãŒãã§è¡ãããŸãïŒ
ã³ã³ãã¥ãŒã¿ãŒã«
npmãæ¢ã«ããïŒãŸãã¯æ§æã§ããïŒå Žåãããã¯CLIããŒã«ãå®è¡ããæãéãæ¹æ³ã§ãã
WindowsãmacOSãããã³Linuxçšã®ãã€ããªããããŸãã
泚ïŒä»ã®ãããžã§ã¯ãçšã«ãããã®ããŒã«ãæ¢ã«ã€ã³ã¹ããŒã«ããŠããå Žåããã®éšåãã¹ãããããŠæ¬¡ã®ã¹ãããã«çŽæ¥é²ãããšãã§ããŸãã
CLIããŒã«ã®ããã¥ã¡ã³ãã§ã¯ãnpmããã±ãŒãžã®ã€ã³ã¹ããŒã«ãšæ§æãããã³ãã€ããªã«ã€ããŠèª¬æããŠããŸãã
CLIãã€ã³ã¹ããŒã«ããŠå®è¡ããããæåã®ã¹ãããã¯
balena login
ã³ãã³ããå®è¡ããŠbalenaCloudã«ãã°ã€ã³ããããšã§ãã
ã¢ã«ãŠã³ãã«äœæ¥CLIãç»é²ãããŠããå ŽåãRaspberry Piã«ããã°ã©ã ãã€ã³ã¹ããŒã«ããæºåãã§ããŠããŸãã
GitHubãããããžã§ã¯ããããŠã³ããŒããã
次ã®ã¹ãããã¯
ããã®ãããžã§ã¯ãã®ã³ãŒããGitHubãã
ããŠã³ããŒãããããšã§ã ã
éããã¿ã³ã¯ãããžã§ã¯ãã®zipãã¡ã€ã«ãããŒãããŸãããGitã«ç²ŸéããŠããå Žå
git clone
éåžžã®æ¹æ³
git clone
䜿çšã§ããŸãã
Raspberry Piã«ã€ã³ã¹ããŒã«ãã
CLIãšææ°ã®ã³ãŒããã€ã³ã¹ããŒã«ãããŠããããã1ã€ã®ã³ãã³ãã§balenaCloudã§ãã®ã³ãŒããå®è¡ã§ããŸãã ããã§ãDockerã€ã¡ãŒãžãåéããã³æ§æãããããã€ã¹ã§å®è¡ãããŸãã
解åãããããžã§ã¯ããã£ã¬ã¯ããªããã
balena push <appName>
å®è¡ããŸããappNameã¯ãããã¥ã¢ã«ã®åé ã§æå®ããã¢ããªã±ãŒã·ã§ã³åã§ãã ããšãã°ã
balena push balenaSense
ã
ãã¹ãŠãæ£ããè¡ããããšãæ°ååŸã«ã³ã³ãããŒã«ããã«ã®ããã€ã¹ã®æ
å ±ç»é¢ã«ãå®è¡äžã®ãµãŒãã¹ïŒåãœãããŠã§ã¢ã³ã³ããŒãã³ãããšã«1ã€ïŒã衚瀺ãããŸãã
æåã®ããŠã³ããŒãã«ã¯æ°åãããå ŽåããããŸãïŒã€ã³ã¿ãŒãããæ¥ç¶ã®é床ã«ãã£ãŠç°ãªããŸãïŒãããã®åŸã¯ã³ã³ãããŒå
ã®å€æŽã®ã¿ãããŠã³ããŒããããããããã¹ãŠãã¯ããã«é«éã«è¡ãããŸãã
泚ïŒã¢ããªã±ãŒã·ã§ã³ãåããŠèµ·åãããšãïŒãããŠSense HATã§ã¯ãªãBME680ã䜿çšãããšãïŒãã»ã³ãµãŒã¯çŽ5åéãããŒã³ã€ã³ããå®è¡ããŸãã ãã®æéäžã枬å®å€
ã¯ååŸããããããŒã¿ããŒã¹ã«æ¿å
¥ãã
ãŸãã ã ã¢ããªã±ãŒã·ã§ã³ã¯ãbalenaCloudããã«ã«è¡šç€ºãããã«ãŠã³ãããŠã³ãèšé²ããŸãã
ã«ãŠã³ãããŒãã«éãããšããã«ãŒããéå§ããŠããŸã...ããšããã¡ãã»ãŒãžã衚瀺ãããŸãã ãã®åŸã枬å®å€ãååŸããã10ç§ããšã«ããŒã¿ããŒã¹ã«æ¿å
¥ãããŸãã
ããã·ã¥ããŒãã衚瀺
ããã€ã¹ããã©ãã·ã¥ãããããã¯ãŒã¯ã«æ¥ç¶ããåé¡ãªãèµ·åããããšãé¡ã£ãŠããŸãã ç¡æã®balenaCloudã¢ã«ãŠã³ãã䜿çšãã倧ããªå©ç¹ã®1ã€ã¯ã
Public Device URL
æ©èœã§ãã
ãã®ã¹ã€ãããã¢ã¯ãã£ãã«ããéãç¢å°ã¢ã€ã³ã³ãã¯ãªãã¯ããŠããã·ã¥ããŒãã«ã¢ã¯ã»ã¹ããŸãã ãã®ãªã³ã¯ãå
±æããããæºåž¯é»è©±ãä»ã®ããã€ã¹ã®ããã¯ããŒã¯ã«è¿œå ãããã§ããŸãã balenaSenseããã€ã¹ãæ¥ç¶ãããŠåäœããŠããéãã©ãããã§ãããã·ã¥ããŒãã衚瀺ã§ããŸãïŒ
ãããªãã¯ã¢ã¯ã»ã¹ãæå¹ã«ããããªãå Žåã§ããäžèšã®ã¹ã¯ãªãŒã³ã·ã§ããã«èŠãããããã«ãIPã¢ãã¬ã¹ã§ããŒã«ã«ãããã¯ãŒã¯ããããã·ã¥ããŒãã衚瀺ã§ããŸãã ç°ãªããã®ã«ãªããŸããããã©ãŠã¶ã«
http://<ip->
ãšå
¥åããã ãã§ãããã€ã¹ãšåããããã¯ãŒã¯äžã«ããå Žåã§ãããã·ã¥ããŒãã«ã¢ã¯ã»ã¹ã§ããŸãã ããšãã°ãããã€ã¹ã«ã¢ã¯ã»ã¹ããã«ã¯ã
http://10.1.231.36
ãšå
¥åã
http://10.1.231.36
ã
Grafanaã«ãã°ã€ã³ããŠèšå®ãæäœããå Žåãããã©ã«ãã®è³æ Œæ
å ±ã¯
admin
ããã³
admin
ã§ãã
ã©ã®ããã«æ©èœããŸããïŒ
ãã®ãããžã§ã¯ãã«ã¯ã3ã€ã®äž»èŠã³ã³ããŒãã³ãã3ã€ã®ãµãŒãã¹ããããŸãã ãããã®ååã¯ãbalenaCloudããã·ã¥ããŒãã«ãããŸãã
- InfluxDB-ã»ã³ãµãŒã®æž¬å®å€ãä¿åããããã«äœ¿çšãããããŒã¿ããŒã¹
- ã»ã³ãµãŒ-ã»ã³ãµãŒã«ã¢ã¯ã»ã¹ããèªã¿åãå€ãååŸããŠããŒã¿ããŒã¹ã«ä¿åããããã®Pythonã©ã€ãã©ãªãšã³ãŒã
- Grafana-ã°ã©ããšã¬ããŒããå«ãããã·ã¥ããŒãã®äœæã«äœ¿çš
ããã·ã¥ã®BME680ã»ã³ãµãŒã¯ã枩床ã湿床ãå§åãããã³ã¬ã¹æµæãæ€åºããŸãã 枩床ã湿床ãå§åã»ã³ãµãŒã¯ããã«äœ¿çšã§ããŸãããã¬ã¹æµæã®æž¬å®å€ã ãã§ã¯ããŸã圹ã«ç«ã¡ãŸããã ãããã¯ã空æ°çµæã®å€åã®ææšã§ãã ã»ã³ãµãŒãèµ·åãããšãåºæºãèšå®ãããå€æŽãç£èŠãããŸãã 空æ°ã®è³ªã瀺ãææšã¯ããŒã»ã³ãã§ç€ºããã湿床ãšã¬ã¹æµæã®åœ±é¿ãèæ
®ã«å
¥ããŠããŸãã
ã¬ã¹æµæã»ã³ãµãŒããªãSense HATã䜿çšããå Žåãç®æšã®æž©åºŠãšæ¹¿åºŠã®å€ã«åºã¥ããŠç©ºæ°å質ã®æž¬å®å€ãæŠç®ããŸãã
次ã¯ïŒ
ããã§ããããžã§ã¯ããå®å
šã«éå§ããããã·ã¥ããŒãã«ã¢ã¯ã»ã¹ãã枬å®å€ãååŸããããŒã¿ããŒã¹ã«å
¥åãå§ããããšãé¡ã£ãŠããŸãã ãã£ãšéèŠãªããšãè¿°ã¹ãŠãã ããã
ãã¹ã¯ãŒããå€æŽãã
ããã€ã¹ããããªãã¯ã¢ã¯ã»ã¹çšã«éãå Žåã¯ãGrafanaã®ãã¹ã¯ãŒããå€æŽããããšããå§ãããŸãã
ãŠãŒã¶ãŒåãšããã©ã«ãã®ãã¹ã¯ãŒã
admin
admin
ã䜿çšããŠã·ã¹ãã ãã»ããã¢ããããŸãã ããããå€æŽããã«ã¯ãããã«ã®å·Šäžé
ã«ãããã¿ã³ã䜿çšããŠGrafanaãšå
¥åããŸãã åããŠãã°ã€ã³ãããšãã«ãã¹ã¯ãŒããå€æŽããããã«æ±ããããŸãã
ã«ã¹ã¿ãã€ãº
ããã·ã¥ããŒããšã¬ããŒãçšã®Grafanaããã°ã©ã ã«ã¯ãå€ãã®æ§æãã©ã¡ãŒã¿ãŒãšèšå®ããããŸãã 4ã€ã®å枬å®ãªãã·ã§ã³ã®ãã£ãŒããšã°ã©ãã衚瀺ããåºæ¬ããã«ãäœæããŸããã
ã¿ã€ãã«ã®äžã«ããŠã¹ã移åããŠç·šéã«é²ãããšã§ãåGrafanaããã«ãã«ã¹ã¿ãã€ãºã§ããŸãã èšå®ãããã£ãŠã¿ãããšããå§ãããŸã-ããã·ã¥ããŒãã®å€æŽã¯èªåçã«ä¿åãããªããããééããå Žåã¯ããŒãžããªããŒãããã ãã§ãã¹ãŠãå
ã®ãã©ãŒã ã«æ»ããŸãã å€æŽãä¿åããå Žåã¯ãã³ã³ãããŒã«ããã«ã®äžéšã«ãã[
ä¿å ]ãã¯ãªãã¯ãããšããã¹ãŠã®èšå®ãããã€ã¹ã«ä¿åãããŸãã
ã»ã³ãµãŒãæ§æããããšãã§ããŸãã ããšãã°ãã²ãŒãžå³ã§ã¯ãæ°å€ã®ä»£ããã«ããã€ãã®åºæ¬çãªç¯å²ãšããã¹ãå€ãèšå®ããŸãã ãã®ãã¹ãŠãããªãã®å¥œã¿ã«å€ãããŸãïŒ
æ¬äœ
ãã®ãããªã»ã³ãµãŒã¯ãã»ã³ãµãŒãæ¥å
ãæŸå°ç±ããä¿è·ãã
æ°è±¡ããŒã¹ãžã®èšçœ®ã«æé©ã§ãã éšå±ã®ç°å¢ãå¶åŸ¡ããå Žåãããã¯ããã»ã©éèŠã§ã¯ãããŸããããã»ã³ãµãŒãå±å€ã«èšçœ®ããå Žåãæ£ç¢ºãªæž¬å®å€ãååŸããã«ã¯ã»ã³ãµãŒã®äœçœ®ãšä¿è·ãéèŠã§ãã
ãŠã§ã¶ãŒããŒã¹
ã¯è²©å£²ãããŠããŸãããããªãé«äŸ¡ã«ãªãå¯èœæ§ãããããã
DIYãªãã·ã§ã³ãæ€èšããŠãã ããã
Thingiverseã«ã¯ãããã€ãã®
BME680ãã«ãš
ãŠã§ã¶ãŒããŒã¹ããããŸãã
æåŸã®èã
èªãã§ãããŠããããšãïŒ å€§æ°è³ªç®¡çæ©èœãåããç¬èªã®æ°è±¡èŠ³æž¬æã建èšããããšã«æ±ºããå Žåã¯ããã¹ãŠãã©ããªã£ãããã©ããªåé¡ãçããããæããŠãã ããã ãããžã§ã¯ãã®éçºã®ã¢ã€ãã¢
ã¯ãã©ãŒã©ã ã§è¡šçŸã§ã
ãŸã ã