{"id":1298,"date":"2018-05-14T12:40:57","date_gmt":"2018-05-14T03:40:57","guid":{"rendered":"https:\/\/litmus.jig-saw.com\/developer\/?p=1298"},"modified":"2018-06-06T14:50:30","modified_gmt":"2018-06-06T05:50:30","slug":"flow_sample_temphumi","status":"publish","type":"post","link":"https:\/\/litmus.jig-saw.com\/developer\/loopedge\/flow_sample_temphumi\/","title":{"rendered":"Flow\u30b5\u30f3\u30d7\u30eb : \u6e29\u5ea6\/\u6e7f\u5ea6"},"content":{"rendered":"<p>\u3053\u306eFlow\u306f\u7591\u4f3c\u7684\u306b\u6e29\u5ea6\u30fb\u6e7f\u5ea6\u306e\u30c7\u30fc\u30bf\u3092\u751f\u6210\u3057\u3066\u3001LoopEdge\u4e0a\u3067\u7c21\u6613\u306b\u53ef\u8996\u5316(\u30c1\u30e3\u30fc\u30c8\u30b0\u30e9\u30d5\u3084\u30b2\u30fc\u30b8)\u3055\u305b\u308b\u30b5\u30f3\u30d7\u30eb\u3067\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1186 aligncenter\" src=\"https:\/\/litmus.jig-saw.com\/developer\/wp-content\/uploads\/2018\/05\/demo_TempHumi1.png\" alt=\"\" width=\"500\" height=\"280\" \/><\/p>\n<div style=\"margin-left: 10px;\">\n<p><span style=\"font-size: 20px; font-weight: bold;\">\u5404\u30ce\u30fc\u30c9\u306e\u8aac\u660e<\/span><\/p>\n<\/div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1187 aligncenter\" src=\"https:\/\/litmus.jig-saw.com\/developer\/wp-content\/uploads\/2018\/05\/demo_TempHumi2.png\" alt=\"\" width=\"500\" height=\"280\" \/><strong>(1)Start Temp\/Humi<\/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><strong>(2)Create:Temp\/Humi<\/strong>\uff08funcion 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\uff0f\u6e7f\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\u3068\u6e7f\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><strong>(3)Chart Graph<\/strong>\uff08chart node<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1164\" src=\"https:\/\/litmus.jig-saw.com\/developer\/wp-content\/uploads\/2018\/05\/demo_chart.png\" alt=\"\" width=\"80\" height=\"27\" \/>\uff09<br \/>\n Create:Temp\/Humi\u30ce\u30fc\u30c9\u306b\u3066\u4f5c\u6210\u3057\u305f\u6e29\u5ea6\u306e\u30c0\u30df\u30fc\u30c7\u30fc\u30bf\u3092\u30c1\u30e3\u30fc\u30c8\u30b0\u30e9\u30d5\u8868\u793a\u3055\u305b\u308b\u305f\u3081\u306e\u30ce\u30fc\u30c9\u3067\u3059\u3002\u30c1\u30e3\u30fc\u30c8\u30b0\u30e9\u30d5\u3092\u8868\u793a\u3059\u308b\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u306e\u6307\u5b9a\u3084\u30b0\u30e9\u30d5\u306e\u7a2e\u985e\u306a\u3069\u3092\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><strong>(4)Gauge<\/strong>\uff08gauge node<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1165\" src=\"https:\/\/litmus.jig-saw.com\/developer\/wp-content\/uploads\/2018\/05\/demo_gauge.png\" alt=\"\" width=\"77\" height=\"27\" \/>\uff09<br \/>\n Create:Temp\/Humi\u30ce\u30fc\u30c9\u306b\u3066\u4f5c\u6210\u3057\u305f\u6e7f\u5ea6\u306e\u30c0\u30df\u30fc\u30c7\u30fc\u30bf\u3092\u30b2\u30fc\u30b8\u8868\u793a\u3055\u305b\u308b\u305f\u3081\u306e\u30ce\u30fc\u30c9\u3067\u3059\u3002\u30b2\u30fc\u30b8\u3092\u8868\u793a\u3059\u308b\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u306e\u6307\u5b9a\u3084\u30b2\u30fc\u30b8\u306e\u7a2e\u985e\u306a\u3069\u3092\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><strong>(5)Dump:Temp\/Humi<\/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>\u30d5\u30ed\u30fc\u8a2d\u5b9a<\/h5>\n<pre style=\"white-space: pre;\">[{\"id\":\"1278b126.530fbf\",\"type\":\"tab\",\"label\":\"Demo : Temp\/Humi\"},{\"id\":\"29c1c13f.71220e\",\"type\":\"inject\",\"z\":\"1278b126.530fbf\",\"name\":\"Start Temp\/Humi\",\"topic\":\"\",\"payload\":\"\",\"payloadType\":\"date\",\"repeat\":\"15\",\"crontab\":\"\",\"once\":true,\"x\":120,\"y\":140,\"wires\":[[\"804023fb.bd1348\"]]},{\"id\":\"804023fb.bd1348\",\"type\":\"function\",\"z\":\"1278b126.530fbf\",\"name\":\"Create : Temp\/Humi\",\"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\/\/ humidity\\nvar humidt = {};\\nhumi_max = 50;\\nhumi_min = 38;\\nhumi = Math.random() * (humi_max - humi_min) + humi_min; \\nhumidt.payload = Math.floor(humi * 100) \/ 100;\\n\\nreturn [msg, humidt];\\n\",\"outputs\":\"2\",\"noerr\":0,\"x\":225,\"y\":140,\"wires\":[[\"b6beacab.133fd8\",\"3bf34f22.058ac\"],[\"3795e938.d4ca66\",\"3bf34f22.058ac\"]]},{\"id\":\"b6beacab.133fd8\",\"type\":\"ui_chart\",\"z\":\"1278b126.530fbf\",\"name\":\"Chart Graph\",\"group\":\"18784aaf.af48dd\",\"order\":0,\"width\":\"6\",\"height\":\"6\",\"label\":\"Temperature (Sample)\",\"chartType\":\"line\",\"legend\":\"false\",\"xformat\":\"HH:mm:ss\",\"interpolate\":\"linear\",\"nodata\":\"Temperature (Sample)\",\"dot\":true,\"ymin\":\"20\",\"ymax\":\"40\",\"removeOlder\":\"10\",\"removeOlderPoints\":\"\",\"removeOlderUnit\":\"60\",\"cutout\":0,\"useOneColor\":false,\"colors\":[\"#1f77b4\",\"#aec7e8\",\"#ff7f0e\",\"#2ca02c\",\"#98df8a\",\"#31b0cc\",\"#ff9896\",\"#9467bd\",\"#c5b0d5\"],\"useOldStyle\":true,\"x\":340,\"y\":80,\"wires\":[[],[]]},{\"id\":\"3bf34f22.058ac\",\"type\":\"debug\",\"z\":\"1278b126.530fbf\",\"name\":\"Dump : Temp\/Humi\",\"active\":true,\"console\":\"false\",\"complete\":\"payload\",\"x\":440,\"y\":140,\"wires\":[]},{\"id\":\"3795e938.d4ca66\",\"type\":\"ui_gauge\",\"z\":\"1278b126.530fbf\",\"name\":\"Gauge \",\"group\":\"18784aaf.af48dd\",\"order\":0,\"width\":\"6\",\"height\":\"6\",\"gtype\":\"gage\",\"title\":\"Humidity (Sample)\",\"label\":\"%\",\"format\":\"{{value}}\",\"min\":0,\"max\":\"100\",\"colors\":[\"#00b500\",\"#e6e600\",\"#ca3838\"],\"seg1\":\"\",\"seg2\":\"\",\"x\":340,\"y\":200,\"wires\":[]},{\"id\":\"18784aaf.af48dd\",\"type\":\"ui_group\",\"z\":\"\",\"name\":\"Dashboard Group\",\"tab\":\"e0eeb339.b8c5c8\",\"order\":1,\"disp\":true,\"width\":\"12\",\"collapse\":false},{\"id\":\"e0eeb339.b8c5c8\",\"type\":\"ui_tab\",\"z\":\"\",\"name\":\"Sample Dashboard\",\"icon\":\"dashboard\",\"order\":1}]\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u306eFlow\u306f\u7591\u4f3c\u7684\u306b\u6e29\u5ea6\u30fb\u6e7f\u5ea6\u306e\u30c7\u30fc\u30bf\u3092\u751f\u6210\u3057\u3066\u3001LoopEdge\u4e0a\u3067\u7c21\u6613\u306b\u53ef\u8996\u5316(\u30c1\u30e3\u30fc\u30c8\u30b0\u30e9\u30d5\u3084\u30b2\u30fc\u30b8)\u3055\u305b\u308b\u30b5\u30f3\u30d7\u30eb\u3067\u3059\u3002 \u5404\u30ce\u30fc\u30c9\u306e\u8aac\u660e (1)Start Temp\/Humi\uff08inject node\uff09 \u4e00\u5b9a\u9593\u9694 &hellip; <a href=\"https:\/\/litmus.jig-saw.com\/developer\/loopedge\/flow_sample_temphumi\/\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">Flow\u30b5\u30f3\u30d7\u30eb : \u6e29\u5ea6\/\u6e7f\u5ea6<\/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":[23],"tags":[],"class_list":["post-1298","post","type-post","status-publish","format-standard","hentry","category-loopedge"],"_links":{"self":[{"href":"https:\/\/litmus.jig-saw.com\/developer\/wp-json\/wp\/v2\/posts\/1298","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=1298"}],"version-history":[{"count":2,"href":"https:\/\/litmus.jig-saw.com\/developer\/wp-json\/wp\/v2\/posts\/1298\/revisions"}],"predecessor-version":[{"id":1372,"href":"https:\/\/litmus.jig-saw.com\/developer\/wp-json\/wp\/v2\/posts\/1298\/revisions\/1372"}],"wp:attachment":[{"href":"https:\/\/litmus.jig-saw.com\/developer\/wp-json\/wp\/v2\/media?parent=1298"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/litmus.jig-saw.com\/developer\/wp-json\/wp\/v2\/categories?post=1298"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/litmus.jig-saw.com\/developer\/wp-json\/wp\/v2\/tags?post=1298"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}