Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

sakura.ioで送られてくるデータをNode-REDで処理する話

347 views

Published on

さくらインターネットが提供するIoT プラットフォーム sakura.io で収集したデータをNode-REDで処理をする話。さらに、Node-RED上のアクションでデバイス側に信号を送ることも可能です。

2018年1月29日開催
Node-RED UG勉強会&新年会 Vol.6「Node-RED x 2018」
https://node-red.connpass.com/event/74012/
にて

Published in: Technology
  • Be the first to comment

  • Be the first to like this

sakura.ioで送られてくるデータをNode-REDで処理する話

  1. 1. sakura.io Node-RED Node-RED UG Vol.6 Node-RED x 2018 (C) Copyright 1996-2016 SAKURA Internet Inc 80 182 3
  2. 2. 2 eisaku.terao @eterao blog.terao.club & (2000/7 ) Q&A BIND (2001/5 ) UNIX Network sendmail (2002/2 ) UNIX Network Apache WWW (2002/9 ) CentOS 2 (2009/9/26 ) 2016/6/24
  3. 3. SAKURA Internet Inc. 1999 8 17 1996 12 23 22 5,692 495 /2017 3 JDCC 3 CSAJ JPNIC JAIPA Joe’s 3 S2i
  4. 4. AU o P n i sg AUP AUP o fn P P I G V AU o sg P P I P sg P o N g rt g V r n sg P V GV g h N sg f a f a i P f ag g o T N P V sg 1 g UPi T PIS f S GV 1 t sg AUP e e I P sg a o o sfog e h 4 1 /
  5. 5. .
  6. 6. 6
  7. 7. I 7 sakura.io IoT I IoT MVNO / I / /o / I / /T
  8. 8. 8 API SIM SSL/TLS
  9. 9. - D. 9 Arduino Uno N SHT31/HDC1000 sakura.io . sakura.io LED Web .E R Twitter DE
  10. 10. Node-RED 10 Node-RED / /
  11. 11. . 11 sakura.io Arduino UNO
  12. 12. - H - 12 Arduino IDE1 H 1 sakura.io-C 0 1 Arduino Uno D
  13. 13. @sakura.io 13 → → → ID
  14. 14. WebSocket 14
  15. 15. WebSocket 15 sakura.io Node-RED sakura.io WebSocket
  16. 16. Node-RED 16 JSON ch0 ch1 /ui/ 10 ../ui/ Twitter WebSocket MySQLMySQL SQL
  17. 17. SQL Node5 17 / 0 Node-RED DB 6 1 2 MySQL / PostgreSQL / MongoDB / DB2 / Cloudant / dashDB / LevelDB / InfluxDB / DynamoDB /RedShift / Aurora / MariaDB https://qiita.com/khara914/items/a7176c3f54bd54ca6eee 8 9 8 9
  18. 18. 1 SQL Node 18 node-red-nodes-cf-sqldb-dashdb node-red-node-mysql node-red-node-sqlite
  19. 19. MySQL 19 use iot1; CREATE TABLE `iot_sensor_log` ( `id` int NOT NULL AUTO_INCREMENT, `module` varchar(64) DEFAULT 1, `datetime` DATETIME DEFAULT NULL, `temp` FLOAT DEFAULT NULL, `humi` FLOAT DEFAULT NULL, `count` int DEFAULT NULL, UNIQUE KEY `id` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; CREATE USER iot1 IDENTIFIED BY 'xxxxxxxxxxxx'; GRANT ALL PRIVILEGES ON iot1.* TO 'iot1'; create database iot1 DEFAULT CHARACTER SET utf8mb4;
  20. 20. MySQLT [ Z c 20 = = = , ;= = ;= '/' " '2 2 0' ", = . = 1( )("')(, =; . = 1) )("')(, = 1* , = ; ; ; ; = ;= = =; " = ;= = =; ", , = ; ", = , msg.topic MySQLT ¥ M _] msg.payload _]a
  21. 21. Node-RED 21
  22. 22. Twitter 22 Twitter Twitter
  23. 23. LED 23 Node-RED websocket
  24. 24. 24 Arduino Uno SHT31/HDC1000 sakura.io LED Twitter WebSocket module WebSocket JSON JSON
  25. 25. sakura.io https://www.slideshare.net/sakura_pr/sakuraio-introduction sakura.io https://www.slideshare.net/sakura_pr/sakuraio-handson 5 2
  26. 26. 26 eisaku.terao @eterao blog.terao.club & (2000/7 ) Q&A BIND (2001/5 ) UNIX Network sendmail (2002/2 ) UNIX Network Apache WWW (2002/9 ) CentOS 2 (2009/9/26 ) 2016/6/24

×