AWS IoT ã¨ã³ã¿ã¼ãã©ã¤ãºãã¿ã³ã使ã£ã¦é¢¨åã®çµ¦æ¹¯ã¹ã¤ãããæ¼ã
4æãã2ä¸å¸¯ä½å® ã«ä½ãã§ãã¾ããå¹³æ¥ã®å¤æ¹ã¯1éã§é£ã¹ã¦ãã®å¾ã«2éã§é¢¨åã«å ¥ãæµãã§ãããã®é1éã«ããªãã2éã®é¢¨åã®çµ¦æ¹¯ãã§ããã°ä¾¿å©ã ã¨èãã¦ãã£ã¦ã¿ã¾ããã
以ä¸ã®ãããªæãã§ãã
AWS IoT ã¨ã³ã¿ã¼ãã©ã¤ãºãã¿ã³ã使ã£ã¦ãã¾ãããå¤æ®µ2,500åã
IoTãã¿ã³ãæ¼ãã¦ãã給湯ããã«ã®ãã¿ã³ãæ¼ãã¾ã§ã®æµãã¯ä»¥ä¸ã§ãã
AWS IoT ã¨ã³ã¿ã¼ãã©ã¤ãºãã¿ã³æ¼ä¸ â AWS IoT 1-Click â AWS Lambda â IFTTTã®Webhook â Switch Bot Hub â Switch Botã2é風åã®å¶å¾¡ããã«ã®ãã¿ã³ãæ¼ä¸
AWS IoT 1-Clickã¯æé¡25åã»ã©ãããããã§ãã
AWS Lambdaãå¼ã¶ã¨ããã¾ã§ã¯ã以ä¸ã®ãµã¤ããåèã«ãã¾ããã
Lambdaããä¸ã®æµãã¯ã以ä¸ã®ãµã¤ããåèã«ãã¾ããã
oita.oika.me lambdaé¢æ°ã¯ä»¥ä¸ã§ãããã http getããã ãã§ãããã
import json import urllib.request def lambda_handler(event, context): url = 'https://maker.ifttt.com/trigger/xxxxxxxxxxxxxxxxxxxxxxxxxxxx' req = urllib.request.Request(url) with urllib.request.urlopen(req) as res: body = res.read() return { 'statusCode': 200, 'body': json.dumps('') }
AWS IoT ã¨ã³ã¿ã¼ãã©ã¤ãºãã¿ã³ã¯ã»ãã«ãããããªãã¨ã«ä½¿ãããã§ããLambdaãå¼ã¹ãã®ã§å¤¢ãåºããããã§ããã
ããããç¼ã®åã®ããã¤ã¹éé£æºãªã®ã«å¤ªå¹³æ´ãã¾ããã§éä¿¡ãããªãã¦ãã«ãã«ãã話ã§ããä½å® è¨åãIoTã«å¯¾å¿ããweb apiãåãã¦ã»ãããã®ã§ãã
- åºç社/ã¡ã¼ã«ã¼: SwitchBot
- ã¡ãã£ã¢: ã¨ã¬ã¯ãããã¯ã¹
- ãã®ååãå«ãããã°ãè¦ã
- åºç社/ã¡ã¼ã«ã¼: Wonderlabs
- ã¡ãã£ã¢: Tools & Hardware
- ãã®ååãå«ãããã°ãè¦ã