{"id":1361,"date":"2018-06-04T10:34:22","date_gmt":"2018-06-04T01:34:22","guid":{"rendered":"https:\/\/litmus.jig-saw.com\/developer\/?p=1361"},"modified":"2018-06-06T14:49:01","modified_gmt":"2018-06-06T05:49:01","slug":"alertnotification","status":"publish","type":"post","link":"https:\/\/litmus.jig-saw.com\/developer\/loopedge\/alertnotification\/","title":{"rendered":"Alert\u901a\u77e5"},"content":{"rendered":"<p>\u3053\u306ealert\u8a2d\u5b9a\u306f\u3001LoopEdge\u304b\u3089LoopCloud\u3078\u6e21\u3063\u3066\u304d\u305f\u30c7\u30fc\u30bf\u3092\u5224\u5b9a\u3057\u3066Email\u3078alert\u901a\u77e5\u3055\u305b\u308b\u30b5\u30f3\u30d7\u30eb\u3067\u3059\u3002<\/p>\n<p>\u8a2d\u5b9a\u306f\u3001LoopCloud\u3068LoopEdge\u4e21\u65b9\u306b\u884c\u3046\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u203b\u8a2d\u5b9a\u304c\u5b8c\u4e86\u3059\u308b\u3068Email\u306b\u3088\u308b\u901a\u77e5\u304c\u3055\u308c\u307e\u3059\u306e\u3067\u3001\u8a66\u3057\u305f\u5f8c\u306f\u3001\u5fc5\u305a\u52d5\u4f5c\u306e\u505c\u6b62\u3092\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1418\" src=\"https:\/\/litmus.jig-saw.com\/developer\/wp-content\/uploads\/2018\/06\/LC_ALert_LE_Flow.png\" alt=\"\" width=\"731\" height=\"338\" \/><\/p>\n<ul>\n<li>LoopCloud\u5074\u3078\u306e\u8a2d\u5b9a<br \/>\n LoopEdge\u3068\u306e\u63a5\u7d9a\u53e3\u306b\u306a\u308bModel\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<br \/>\n \u30a2\u30e9\u30fc\u30c8\u901a\u77e5\uff08Email\uff09\u306e\u8a2d\u5b9a\u3092\u884c\u3044\u307e\u3059\u3002<\/li>\n<li>LoopEdge\u5074\u3078\u306e\u8a2d\u5b9a<br \/>\n LoopCloud\u3068\u306e\u63a5\u7d9a\u8a2d\u5b9a\u3084Flow\u3078\u306e\u8a2d\u5b9a\u3092\u884c\u3044\u307e\u3059\u3002<\/li>\n<\/ul>\n<h4>LoopCloud\u5074\u3078\u306e\u8a2d\u5b9a<\/h4>\n<p style=\"padding-left: 30px;\">1.LoopEdge\u3068\u306e\u63a5\u7d9a\u53e3\u306b\u306a\u308bModel\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p style=\"padding-left: 60px;\">\u30ca\u30d3\u30b2\u30fc\u30b7\u30e7\u30f3\u30d1\u30cd\u30eb\u306eConfiguration-Models\u304b\u3089Model\u3092\u65b0\u898f\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p style=\"padding-left: 60px;\">\u300cMQTT plain TCP connection Parameters\u300d\u3092\u9078\u629e\u3057\u3066\u3001SAVE\u30dc\u30bf\u30f3\u3092\u62bc\u4e0b\u3057\u307e\u3059\u3002<br \/>\n \u30ca\u30d3\u30b2\u30fc\u30b7\u30e7\u30f3\u30d1\u30cd\u30eb\u306eDevuce Mgmt-Devices\u3092\u958b\u304d\u3001\u53f3\u4e0a\u90e8Single\u3092\u62bc\u4e0b\u3057\u307e\u3059\u3002<br \/>\n \u5148\u307b\u3069\u4f5c\u6210\u3057\u305fModel\u3092\u9078\u629e\u3057\u307e\u3059\u3002<br \/>\n Model\u5185\u306f\u81ea\u52d5\u7684\u306b\u5024\u304c\u8a2d\u5b9a\u3055\u308c\u305fConfig\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<br \/>\n \u305d\u306e\u307e\u307eCONTINUE\u30dc\u30bf\u30f3\u3092\u62bc\u4e0b\u3057\u307e\u3059\u3002 <br \/>\n \u3053\u306eModel\u306e\u8a2d\u5b9a\u304c\u8a18\u8ff0\u3055\u308c\u3066\u3044\u308bJSON\u30d5\u30a1\u30a4\u30eb\u304c\u81ea\u52d5\u7684\u306b\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3055\u308c\u307e\u3059\u3002<br \/>\n \u3053\u306eJSON\u306fLoopEdge\u5074\u3078\u306e\u8a2d\u5b9a\u3067\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<p style=\"padding-left: 30px;\">1-2.alert\u901a\u77e5\u8a2d\u5b9a\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<p style=\"padding-left: 60px;\">\u30ca\u30d3\u30b2\u30fc\u30b7\u30e7\u30f3\u30d1\u30cd\u30eb\u306eAlerts\u3092\u9078\u629e\u3057\u307e\u3059\u3002<br \/>\n Action List\u306e\u53f3\u4e0a\u90e8\u306e\uff0b\u30dc\u30bf\u30f3\u3092\u62bc\u4e0b\u3057\u307e\u3059\u3002<br \/>\n Add action\u753b\u9762\u306b\u3066\u3001\u4ee5\u4e0b\u306e\u5024\u3092\u8a2d\u5b9a\u3057\u3066SAVE\u30dc\u30bf\u30f3\u3092\u62bc\u4e0b\u3057\u307e\u3059\u3002<\/p>\n<p style=\"padding-left: 60px;\">\u30fbAction Template \u306bEmail\u3092\u8a2d\u5b9a<br \/>\n \u30fbAction Name\u306b\u300ctest action\u300d\u3092\u8a2d\u5b9a\uff08\u4efb\u610f\u306e\u540d\u79f0\uff09<br \/>\n \u30fbEnter email\u3000\u901a\u77e5\u5148\u306e\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9<\/p>\n<p>&nbsp;<\/p>\n<p style=\"padding-left: 60px;\">Trigger List\u306e\u53f3\u4e0a\u90e8\u306e\uff0b\u30dc\u30bf\u30f3\u3092\u62bc\u4e0b\u3057\u307e\u3059\u3002<br \/>\n Edit trigger\u753b\u9762\u306eTRIGGER\u30bf\u30d6\u306b\u4ee5\u4e0b\u306e\u5024\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p style=\"padding-left: 60px;\">ROULES\u30bf\u30d6\u3092\u9078\u629e\u3057\u3066\u3001\u4ee5\u4e0b\u306e\u5024\u3092\u8a2d\u5b9a\u3057\u3001SAVE\u30dc\u30bf\u30f3\u3092\u62bc\u4e0b\u3057\u307e\u3059\u3002<\/p>\n<p style=\"padding-left: 60px;\">\u30fbName\u306b\u300ctest Trigger\u300d\u3092\u8a2d\u5b9a\uff08\u4efb\u610f\u306e\u540d\u79f0\uff09<br \/>\n \u30fbActive\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u3092\u30aa\u30f3\u306b\u6307\u5b9a<br \/>\n \u30fbAction List\u306b\u300ctest action\u300d\u3092\u8a2d\u5b9a<br \/>\n \u30fbDevice Tag List\u306b\u300calert_tag1\u300d\u3092\u8a2d\u5b9a<br \/>\n \u30fbSubject\u306b\u300calert mail\u300d\uff08\u4efb\u610f\u306e\u4ef6\u540d\uff09\u3092\u8a2d\u5b9a<br \/>\n \u30fbMessage\u306b\u300cWarning! Check the alert.\u300d\uff08\u4efb\u610f\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\uff09\u3092\u8a2d\u5b9a<\/p>\n<h4>\uff12\uff0eLoopEdge\u5074\u3078\u306e\u8a2d\u5b9a<\/h4>\n<p>\u3000\u30002-1.LoopCloud\u3068\u306e\u63a5\u7d9a\u8a2d\u5b9a\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p style=\"padding-left: 60px;\">DataHub\u3092\u958b\u304d\u3001\u753b\u9762\u4e0a\u90e8\u306eCloudConnectors\u306b\u3066\uff0b\u30dc\u30bf\u30f3\u3092\u62bc\u4e0b\u3057\u307e\u3059\u3002<br \/>\n Add Connector\u753b\u9762\u306b\u3066Upload JSON\u30dc\u30bf\u30f3\u3092\u62bc\u4e0b\u3057\u30011-5\u306eJSON\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u8fbc\u307f\u307e\u3059\u3002<br \/>\n Name\u6b04\u306b\u4efb\u610f\u306e\u540d\u524d\u3092\u8a2d\u5b9a\u3057\u3001Create\u30dc\u30bf\u30f3\u3092\u62bc\u4e0b\u3057\u307e\u3059\u3002<\/p>\n<p style=\"padding-left: 30px;\">2-2.Flow\u306e\u30ce\u30fc\u30c9\u3078\u8a2d\u5b9a\u3059\u308bTopics\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p style=\"padding-left: 60px;\">DetaHub\u3092\u958b\u304d\u3001\u753b\u9762\u4e0b\u90e8\u306eTopics\u306b\u3066\uff0b\u30dc\u30bf\u30f3\u3092\u62bc\u4e0b\u3057\u307e\u3059\u3002<br \/>\n CloudConnectors\u306b\u4f5c\u6210\u3057\u305f2-1\u3067\u4f5c\u6210\u3057\u305f\u63a5\u7d9a\u5148\u3092\u8a2d\u5b9a\u3057\u3001Create\u30dc\u30bf\u30f3\u3092\u62bc\u4e0b\u3057\u307e\u3059\u3002<\/p>\n<p style=\"padding-left: 30px;\">2-3.LoopFlows\u3078\u306e\u8a2d\u5b9a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1419 aligncenter\" src=\"https:\/\/litmus.jig-saw.com\/developer\/wp-content\/uploads\/2018\/06\/LC_ALert_LE_Flow2.png\" alt=\"\" width=\"731\" height=\"338\" \/><\/p>\n<h6 style=\"padding-left: 30px;\"><span style=\"font-size: 20px;\">\u5404\u30ce\u30fc\u30c9\u306e\u8aac\u660e<\/span><\/h6>\n<p style=\"padding-left: 60px;\"><strong>(1)Start<\/strong>\uff08inject node<img loading=\"lazy\" decoding=\"async\" class=\"wp-image-1162 alignnone\" src=\"https:\/\/litmus.jig-saw.com\/developer\/wp-content\/uploads\/2018\/05\/demo_inject.png\" alt=\"\" width=\"80\" height=\"27\" \/>\uff09<br \/>\n \u4e00\u5b9a\u9593\u9694\u3067\u5f53\u8a72\u30d5\u30ed\u30fc\u3092\u5b9f\u884c\u3059\u308b\u305f\u3081\u306e\u30ce\u30fc\u30c9\u3067\u3059\u3002<br \/>\n \u624b\u52d5\u3067\u5b9f\u884c\u3057\u305f\u3044\u5834\u5408\u3084\u4e00\u5b9a\u9593\u9694\u3067\u5f53\u8a72\u30d5\u30ed\u30fc\u3092\u5b9f\u884c\u3057\u305f\u3044\u5834\u5408\u306b\u4f7f\u7528\u3059\u308b\u30ce\u30fc\u30c9\u3067\u3059\u306e\u3067\u3001PLC\u6a5f\u5668\u304b\u3089\u306e\u30c7\u30fc\u30bf\u304c\u63a5\u7d9a\u3055\u308c\u308b\u3088\u3046\u306a\u5834\u5408\u306f\u4e0d\u8981\u3067\u3059\u3002<br \/>\n 15\u79d2\u9593\u9694\u3067\u5b9f\u884c\u3059\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p style=\"padding-left: 60px;\"><strong>(2)Create : Dummy data<\/strong>\uff08function node<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1163\" src=\"https:\/\/litmus.jig-saw.com\/developer\/wp-content\/uploads\/2018\/05\/demo_function.png\" alt=\"\" width=\"82\" height=\"27\" \/>\uff09<br \/>\n Demo\u52d5\u4f5c\u7528\u306e\u6e29\u5ea6\u306e\u30c0\u30df\u30fc\u30c7\u30fc\u30bf\u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\u306e\u30ce\u30fc\u30c9\u3067\u3059\u3002<br \/>\n PLC\u6a5f\u5668\u304b\u3089\u306e\u30c7\u30fc\u30bf\u304c\u63a5\u7d9a\u3055\u308c\u308b\u3088\u3046\u306a\u5834\u5408\u306f\u4e0d\u8981\u3067\u3059\u3002<br \/>\n \u6e29\u5ea6\u306e\u30c0\u30df\u30fc\u30c7\u30fc\u30bf\u3092\u4f5c\u6210\u3059\u308b\u30b3\u30fc\u30c9\u3092\u8a18\u8ff0\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p style=\"padding-left: 60px;\"><strong>(3)Change : format1<\/strong>\uff08function node<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1163\" src=\"https:\/\/litmus.jig-saw.com\/developer\/wp-content\/uploads\/2018\/05\/demo_function.png\" alt=\"\" width=\"82\" height=\"27\" \/>\uff09<br \/>\n Create : Dummy data\u30ce\u30fc\u30c9\u306b\u3066\u4f5c\u6210\u3057\u305f\u6e29\u5ea6\u306e\u30c0\u30df\u30fc\u30c7\u30fc\u30bf\u3092LoopCloud\u5074\u304c\u8a8d\u8b58\u3067\u304d\u308b\u66f8\u5f0f\u3078\u5909\u63db\u3059\u308b\u305f\u3081\u306e\u30ce\u30fc\u30c9\u3067\u3059\u3002<\/p>\n<p style=\"padding-left: 60px;\"><strong>(4)Change : Format2<\/strong>\uff08json node<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1427\" src=\"https:\/\/litmus.jig-saw.com\/developer\/wp-content\/uploads\/2018\/06\/demo_json.png\" alt=\"\" width=\"81\" height=\"27\" \/>\uff09<br \/>\n Create : Dummy data\u30ce\u30fc\u30c9\u306b\u3066\u4f5c\u6210\u3057\u305f\u6e29\u5ea6\u306e\u30c0\u30df\u30fc\u30c7\u30fc\u30bf\u3092LoopCloud\u5074\u304c\u8a8d\u8b58\u3067\u304d\u308b\u66f8\u5f0f\u3078\u5909\u63db\u3059\u308b\u305f\u3081\u306e\u30ce\u30fc\u30c9\u3067\u3059\u3002<\/p>\n<p style=\"padding-left: 60px;\"><strong>(5)Connect : to LoopCloud<\/strong>\uff08Datahub Publish node<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1428\" src=\"https:\/\/litmus.jig-saw.com\/developer\/wp-content\/uploads\/2018\/06\/demo_Datahub.png\" alt=\"\" width=\"82\" height=\"43\" \/>\uff09<br \/>\n \u4f5c\u6210\u3057\u305f\u30c7\u30fc\u30bf\u3092\u6307\u5b9a\u3057\u305fTopic\u3078\u4fdd\u5b58\u3057\u307e\u3059\u3002<br \/>\n \u30ce\u30fc\u30c9\u306e\u8a2d\u5b9a\u306b\u306f\u30012-2\u3067\u6307\u5b9a\u3057\u305f\u540d\u524d\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002\u4eee\u3067\u300cto_LoopCloud\u300d\u3068\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p style=\"padding-left: 60px;\"><strong>(6)Dump : data<\/strong>\uff08debug node<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1166\" src=\"https:\/\/litmus.jig-saw.com\/developer\/wp-content\/uploads\/2018\/05\/demo_debug.png\" alt=\"\" width=\"78\" height=\"27\" \/>\uff09<br \/>\n \u53d7\u3051\u53d6\u3063\u305f\u30c7\u30fc\u30bf\u3092debug tab\u306b\u51fa\u529b\u3057\u307e\u3059\u3002<\/p>\n<h5 style=\"padding-left: 60px;\">\u30d5\u30ed\u30fc\u8a2d\u5b9a<\/h5>\n<pre style=\"white-space: pre; padding-left: 30px;\">[{\"id\":\"89b5debf.49fbf\",\"type\":\"tab\",\"label\":\"to LoopCloud_data\"},{\"id\":\"dfe622c7.b37e2\",\"type\":\"inject\",\"z\":\"89b5debf.49fbf\",\"name\":\"Start\",\"topic\":\"\",\"payload\":\"\",\"payloadType\":\"date\",\"repeat\":\"15\",\"crontab\":\"\",\"once\":false,\"x\":120,\"y\":120,\"wires\":[[\"10c962b8.5eba9d\"]]},{\"id\":\"4ebfb414.e0d09c\",\"type\":\"debug\",\"z\":\"89b5debf.49fbf\",\"name\":\"Dump:data\",\"active\":true,\"console\":\"false\",\"complete\":\"payload\",\"x\":640,\"y\":280,\"wires\":[]},{\"id\":\"10c962b8.5eba9d\",\"type\":\"function\",\"z\":\"89b5debf.49fbf\",\"name\":\"Create:dummy data\",\"func\":\"\/\/ temperature\\ntemp_max = 28;\\ntemp_min = 26;\\ntemp = Math.random() * (temp_max - temp_min) + temp_min;\\nmsg.payload = Math.floor(temp * 100) \/ 100;\\n\\n\\nreturn [msg];\",\"outputs\":1,\"noerr\":0,\"x\":225,\"y\":120,\"wires\":[[\"9006a8a1.3bf3f8\"]]},{\"id\":\"9006a8a1.3bf3f8\",\"type\":\"function\",\"z\":\"89b5debf.49fbf\",\"name\":\"Change\uff1aformat1\",\"func\":\"msg.payload= {\\n \\\"timestamp\\\": 0,\\n \\\"values\\\": [{\\n\\n \\\"objectId\\\":3300,\\n \\\"instanceId\\\":\\\"0\\\",\\n \\\"resourceId\\\":5700,\\n \\\"datatype\\\":\\\"Float\\\",\\n \\\"value\\\":msg.payload\\n }]\\n};\\n return msg;\",\"outputs\":1,\"noerr\":0,\"x\":365,\"y\":120,\"wires\":[[\"24bab41f.f864ac\"]]},{\"id\":\"427a608d.6d52d\",\"type\":\"Datahub Publish\",\"z\":\"89b5debf.49fbf\",\"name\":\"Connect:to LoopCloud\",\"natc\":\"e300cf69.f432\",\"topicname\":\"to_LoopCloud\",\"x\":640,\"y\":120,\"wires\":[]},{\"id\":\"24bab41f.f864ac\",\"type\":\"json\",\"z\":\"89b5debf.49fbf\",\"name\":\"Change:format2\",\"x\":505,\"y\":120,\"wires\":[[\"427a608d.6d52d\",\"4ebfb414.e0d09c\"]]},{\"id\":\"e300cf69.f432\",\"type\":\"Datahub Connect\",\"z\":\"\",\"ipadd\":\"127.0.0.1\",\"port\":\"4222\"}]\r\n<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u306ealert\u8a2d\u5b9a\u306f\u3001LoopEdge\u304b\u3089LoopCloud\u3078\u6e21\u3063\u3066\u304d\u305f\u30c7\u30fc\u30bf\u3092\u5224\u5b9a\u3057\u3066Email\u3078alert\u901a\u77e5\u3055\u305b\u308b\u30b5\u30f3\u30d7\u30eb\u3067\u3059\u3002 \u8a2d\u5b9a\u306f\u3001LoopCloud\u3068LoopEdge\u4e21\u65b9\u306b\u884c\u3046\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002 \u203b\u8a2d\u5b9a\u304c\u5b8c\u4e86 &hellip; <a href=\"https:\/\/litmus.jig-saw.com\/developer\/loopedge\/alertnotification\/\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">Alert\u901a\u77e5<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24,23],"tags":[],"class_list":["post-1361","post","type-post","status-publish","format-standard","hentry","category-loopcloud","category-loopedge"],"_links":{"self":[{"href":"https:\/\/litmus.jig-saw.com\/developer\/wp-json\/wp\/v2\/posts\/1361","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/litmus.jig-saw.com\/developer\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/litmus.jig-saw.com\/developer\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/litmus.jig-saw.com\/developer\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/litmus.jig-saw.com\/developer\/wp-json\/wp\/v2\/comments?post=1361"}],"version-history":[{"count":3,"href":"https:\/\/litmus.jig-saw.com\/developer\/wp-json\/wp\/v2\/posts\/1361\/revisions"}],"predecessor-version":[{"id":1378,"href":"https:\/\/litmus.jig-saw.com\/developer\/wp-json\/wp\/v2\/posts\/1361\/revisions\/1378"}],"wp:attachment":[{"href":"https:\/\/litmus.jig-saw.com\/developer\/wp-json\/wp\/v2\/media?parent=1361"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/litmus.jig-saw.com\/developer\/wp-json\/wp\/v2\/categories?post=1361"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/litmus.jig-saw.com\/developer\/wp-json\/wp\/v2\/tags?post=1361"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}