{"id":50655,"date":"2017-04-18T00:00:00","date_gmt":"2017-04-18T07:00:00","guid":{"rendered":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/%e6%9c%aa%e5%88%86%e9%a1%9e\/raspberry-pi-tutorial-sending-thermal-data-to-griddb-via-the-kairosdb-connector\/"},"modified":"2025-11-14T07:53:24","modified_gmt":"2025-11-14T15:53:24","slug":"raspberry-pi-tutorial-sending-thermal-data-to-griddb-via-the-kairosdb-connector","status":"publish","type":"post","link":"https:\/\/www.griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/raspberry-pi-tutorial-sending-thermal-data-to-griddb-via-the-kairosdb-connector\/","title":{"rendered":"Raspberry Pi\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\uff1aKairosDB\u30b3\u30cd\u30af\u30bf\u3092\u4ecb\u3057\u3066GridDB\u306b\u6e29\u5ea6\u30c7\u30fc\u30bf\u3092\u9001\u4fe1\u3059\u308b"},"content":{"rendered":"<h2>\u306f\u3058\u3081\u306b<\/h2>\n<p>\u3053\u306e\u30d6\u30ed\u30b0\u306f\u3001<a href=\"https:\/\/www.raspberrypi.org\/\">Raspberry Pi<\/a>&nbsp;\u304b\u3089GridDB\u30b5\u30fc\u30d0\u30fc\u306b\u9001\u3089\u308c\u308b\u6e29\u5ea6\u30c7\u30fc\u30bf\u3092\u9001\u4fe1\u3057\u3066\u53ef\u8996\u5316\u3059\u308b\u65b9\u6cd5\u306b\u95a2\u3059\u308b\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u3059\u3002 \u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3068\u3057\u3066GridDB\u3092\u4f7f\u7528\u3057\u3001\u6b21\u306b\u30c7\u30fc\u30bf\u3092\u53ce\u96c6\u3057\u3066\u53ef\u8996\u5316\u3059\u308b\u305f\u3081\u306b&nbsp;<a href=\"https:\/\/kairosdb.github.io\/\">KairosDB&nbsp;<\/a> GridDB Connector\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002 \u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001GridDB\u3068KairosDB\u306e\u4e21\u65b9\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u3068\u3001\u6e29\u5ea6\u30c7\u30fc\u30bf\u306e\u81ea\u52d5\u9001\u4fe1\u65b9\u6cd5\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u6e29\u5ea6\u30c7\u30fc\u30bf\u306e\u4f8b\u304c\u3042\u308a\u307e\u3059\uff08\u6e29\u5ea6\u306f1\u5206\u3054\u3068\u306b\u9001\u4fe1\u3055\u308c\u307e\u3057\u305f\uff09\u3002<\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone wp-image-981 size-large\" src=\"https:\/\/griddb.net\/ja\/wp-content\/uploads\/2017\/05\/Pi-Sensor-Graph-300x66.png\" alt=\"\" width=\"1024\" height=\"224\"><\/p>\n<p>\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u6700\u521d\u306b\u3084\u308b\u3053\u3068(\u6e29\u5ea6\u30bb\u30f3\u30b5\u306e\u8cfc\u5165\u3001\u69cb\u7bc9\u3001\u5b9f\u88c5) \u306b\u3064\u3044\u3066\u306f&nbsp;<a href=\"https:\/\/pimylifeup.com\/raspberry-pi-temperature-sensor\/\">\u53c2\u7167\u30da\u30fc\u30b8\uff11<\/a> \u3068\u3001<a href=\"https:\/\/wingoodharry.wordpress.com\/2014\/12\/24\/raspberry-pi-temperature-sensor-web-server-part-1-intro-sensor-setup-and-python-script\/\">\u53c2\u7167\u30da\u30fc\u30b8\uff12 (\u30cf\u30ea\u30fc\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb) <\/a> \u3092\u53c2\u8003\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u53c2\u7167\u30da\u30fc\u30b8\uff11\u3067\u306f\u8cfc\u5165\u3059\u308b\u5fc5\u8981\u306e\u3042\u308b\u90e8\u54c1\u3084\u3001\u7269\u7406\u7684\u306b\u6e29\u5ea6\u30bb\u30f3\u30b5\u30fc\u3092\u7d44\u307f\u7acb\u3066\u308b\u65b9\u6cd5\u3092\u8aac\u660e\u3057\u3066\u304a\u308a\u3001\u30cf\u30ea\u30fc\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u3044\u307e\u3059\u3002 \u3053\u306eGridDB\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u5b9f\u884c\u3059\u308b\u524d\u306b\u3001\u30cf\u30ea\u30fc\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306e\u6700\u521d\u306b\u30da\u30fc\u30b8\u306b\u5f93\u3044\u3001Python\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f7f\u3063\u3066\u6e29\u5ea6\u30bb\u30f3\u30b5\u30fc\u306e\u8aad\u307f\u3092\u8868\u793a\u3055\u305b\u308b\u72b6\u614b\u306b\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u3053\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u306fRaspberry Pi 3\u304c\u4f7f\u308f\u308c\u307e\u3057\u305f\u304c\u3001\u4ed6\u306e\u3082\u306e\u3092\u4f7f\u3046\u3053\u3068\u3082\u3067\u304d\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-991\" src=\"https:\/\/griddb.net\/ja\/wp-content\/uploads\/2017\/05\/Raspberry-Pi-Setup-300x225-300x225.jpg\" alt=\"\" width=\"300\" height=\"225\"><\/p>\n<h2>GridDB\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/h2>\n<p>Raspberry Pi\u304c\u6e29\u5ea6\u3092\u6b63\u3057\u304f\u8aad\u307f\u53d6\u308a\u30d7\u30ea\u30f3\u30c8\u30a2\u30a6\u30c8\u3059\u308b\u305f\u3081\u306b\u306fGridDB\u30b5\u30fc\u30d0\u3092\u69cb\u7bc9\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002 CentOS 6.7\u30de\u30b7\u30f3\u3092\u8d77\u52d5\u3057\u3066\uff086.8\u4ee5\u4e0a\u3067\u3082\u53ef\uff09\u3001<a href=\"https:\/\/github.com\/griddb\/griddb_nosql\/releases\/download\/v3.0.1\/griddb_nosql-3.0.1-1.linux.x86_64.rpm\">GridDB\u30b3\u30df\u30e5\u30cb\u30c6\u30a3\u7248\u306e rpm<\/a>&nbsp;\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre>$ su\n# rpm -ivh griddb_nosql-X.X.X-linux.x86_64.rpm\nPreparing...                ########################################### [100%]\n\n------------------------------------------------------------\nInformation:\n  User gsadm and group gridstore have been registered.\n  GridDB uses new user and group.\n------------------------------------------------------------\n\n   1:griddb_nosql           ########################################### [100%]\n<\/pre>\n<p>\u30de\u30b7\u30f3\u306bGridDB\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068\u3001\u3044\u304f\u3064\u304b\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3068 &#8220;admin&#8221;\u3068\u3044\u3046\u30e6\u30fc\u30b6\u304c\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002 GridDB\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u306b\u306f\u3001 &#8220;admin&#8221;\u30e6\u30fc\u30b6\u306b\u5207\u308a\u66ff\u3048\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<ol>\n<li>\/ var \/ lib \/ gridstore \/<\/li>\n<li>\/usr\/griddb-X.X.X\/<\/li>\n<\/ol>\n<p>\u5fd8\u308c\u305a\u306b&#8221;admin&#8221;\u30e6\u30fc\u30b6\u30fc\u306b\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u8a2d\u5b9a\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre># gs_passwd admin\nPassword:\uff08Input password\uff09\nRetype password:\uff08Input password again\uff09\n\n<\/pre>\n<p>\u6b21\u306b\u3001GridDB\u304c\u9069\u5207\u306b\u52d5\u4f5c\u3057\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3059\u308b\u305f\u3081\u306b\u30011\u30ce\u30fc\u30c9\u30af\u30e9\u30b9\u30bf\u3092\u8d77\u52d5\u3057\u307e\u3057\u3087\u3046\u3002 \u307e\u305a\u3001\u3044\u304f\u3064\u304b\u306e\u30d1\u30b9\u3092\u8a2d\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre># export GS_HOME=\/var\/lib\/gridstore\n# export GS_LOG=\/var\/lib\/gridstore\/log\n<\/pre>\n<p>Oracle JDK\uff08Linux x64 RPM\u30d1\u30c3\u30b1\u30fc\u30b8\uff09\u306f\u3001&nbsp;<a href=\"http:\/\/www.oracle.com\/technetwork\/java\/javase\/downloads\/jdk8-downloads-2133151.html\">http:\/\/www.oracle.com\/technetwork\/java\/javase\/downloads\/jdk8-downloads-2133151.html<\/a>\u3000\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre># export JAVA_HOME=\/usr\/java\/default<\/pre>\n<pre># export CLASSPATH=${CLASSPATH}:\/usr\/griddb-3.0.0\/bin\/gridstore.jar\n# export no_proxy=127.0.0.1\n# service iptables stop\n<\/pre>\n<p>\u3053\u308c\u3089\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304b\u3089\u3001\u6700\u521d\u306e\u30ce\u30fc\u30c9\u3092\u8d77\u52d5\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre># cd $GS_HOME\n# nano conf\/gs_cluster.conf\n  #    \"clusterName\":\"temperature\" #\n\n<\/pre>\n<p>Ctrl + X\u3092\u62bc\u3057\u3066\u5909\u66f4\u3092\u4fdd\u5b58\u3057\u307e\u3059\u3002<br \/>\n\u3053\u308c\u3067\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u30ce\u30fc\u30c9\u3092\u8d77\u52d5\u3057\u3001\u65b0\u3057\u304f\u540d\u524d\u3092\u4ed8\u3051\u305f\u30af\u30e9\u30b9\u30bf\u306b\u53c2\u52a0\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre># su gsadm\n$ \/usr\/bin\/gs_startnode\n$ \/usr\/bin\/gs_joincluster -c your_clustername -u admin\/your_password\n<\/pre>\n<p>GridDB\u306e\u7d44\u307f\u8fbc\u307f\u30b3\u30de\u30f3\u30c9\u306e1\u3064\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u30af\u30e9\u30b9\u30bf\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u8868\u793a\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre>$ \/usr\/bin\/gs_stat<\/pre>\n<p>GridDB\u306egithub\u30da\u30fc\u30b8\u304b\u3089\u30b5\u30f3\u30d7\u30eb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u5b9f\u884c\u3057\u3066\u3001GridDB\u304c\u52d5\u4f5c\u53ef\u80fd\u3067\u3042\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3059\u308b\u3053\u3068\u3092\u304a\u52e7\u3081\u3057\u307e\u3059\u3002<br \/>\nGridDB\u304c\u52d5\u4f5c\u3059\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u305f\u3089\u3001\u6b21\u306bKairosDB\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u5b9f\u88c5\u3092\u884c\u3044\u307e\u3059\u3002 KairosDB\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u5f8c\u306f\u3001REST API\u3092\u4f7f\u7528\u3057\u3066\u30bb\u30f3\u30b5\u30c7\u30fc\u30bf\u3092GridDB\u306bPOST\u3059\u308c\u3070\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n<h2>KairosDB\u30b3\u30cd\u30af\u30bf\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/h2>\n<p>KairosDB\u3068GridDB Connector\u306e\u4e21\u65b9\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u306b\u306f\u3001root \u30e6\u30fc\u30b6\u30fc\u306b\u5207\u308a\u66ff\u3048\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/github.com\/griddb\/griddb_kairosdb\/archive\/master.zip\">KairosDB GridDB Connector<\/a>\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057, \u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066KairosDB\u3092\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002<\/p>\n<pre># cd ~\n# curl -O --location https:\/\/github.com\/kairosdb\/kairosdb\/archive\/v1.1.1.tar.gz\n# tar xfvz v1.1.1.tar.gz\n# cd kairosdb-1.1.1\n\n<\/pre>\n<p>GridDB Connector\u3092KairosDB src\u30d5\u30a9\u30eb\u30c0\u306b\u30b3\u30d4\u30fc\u3057\u307e\u3059\u3002<\/p>\n<pre># cp -r &lt;src\/main\/java\/org\/kairosdb\/datastore\/griddb folder in GridDB connector&gt; src\/main\/java\/org\/kairosdb\/datastore\/\n\n<\/pre>\n<p>\u3053\u3053\u3067\u3001KairosDB\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u3044\u304f\u3064\u304b\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u5909\u66f4\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002 \u307e\u305a\u3001ivy.xml\u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3057\u307e\u3059\u3002 \u30d5\u30a1\u30a4\u30eb\u306e\u3069\u3053\u304b\u306b\u6b21\u306e\u884c\u3092\u8cbc\u308a\u4ed8\u3051\u307e\u3059\u3002<\/p>\n<pre>&lt;!-- https:\/\/mvnrepository.com\/artifact\/org.apache.commons\/commons-pool2 --&gt;\n&lt;dependency org=\"org.apache.commons\" name=\"commons-pool2\" rev=\"2.0\"\/&gt;\n\n<\/pre>\n<p>\u6b21\u306b\u3001logback.xml\u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3057\u3001\u4ee5\u4e0b\u306e\u884c\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<pre># nano src\/main\/resources\/logback.xml<\/pre>\n<pre>&lt;logger name=\"com.toshiba.mwcloud.gs.GridStoreLogger\" level=\"INFO\"\/&gt;\n\n<\/pre>\n<p>\u6b21\u306b\u3001KairosDB\u306bGridDB\u3092\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u3068\u3057\u3066\u4f7f\u7528\u3059\u308b\u3053\u3068\u3092\u5b9a\u7fa9\u3059\u308b\u305f\u3081\u30d5\u30a1\u30a4\u30eb\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<pre># nano src\/main\/resources\/kairosdb.properties<\/pre>\n<pre>#kairosdb.service.datastore=org.kairosdb.datastore.h2.H2Module\nkairosdb.service.datastore=org.kairosdb.datastore.griddb.GriddbModule\n\n<\/pre>\n<p>\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30d0\u30c3\u30af\u30a8\u30f3\u30c9H2Module\u3092\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3057\u3066\u3001\u30b3\u30e1\u30f3\u30c8\u306e\u306a\u3044GridDB\u3092\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002 \u6b21\u306b\u3001\u30d5\u30a1\u30a4\u30eb\u306e\u4e00\u756a\u4e0b\u306b\u4ee5\u4e0b\u306e\u884c\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<pre>#===============================================================================\n #GridDB properties\n kairosdb.datastore.griddb.cluster_name=&lt;GridDB cluster name&gt;\n kairosdb.datastore.griddb.user=&lt;GridDB user name&gt;\n kairosdb.datastore.griddb.password=&lt;GridDB password&gt;\n #Define address and port for multicast method, leave it blank if using other method\n kairosdb.datastore.griddb.notification_address=239.0.0.1\n kairosdb.datastore.griddb.notification_port=31999\n #Define nodes fixed list method, leave it blank if using other method, node list is in the form&gt; 1.1.1.1:10001,1.1.1.2:10001\n kairosdb.datastore.griddb.notification_member=\n #Define url for provider method, leave it blank if using other method\n kairosdb.datastore.griddb.notification_provider_url=\n kairosdb.datastore.griddb.consistency=\n kairosdb.datastore.griddb.container_cache_size=\n kairosdb.datastore.griddb.data_affinity_pattern=\n kairosdb.datastore.griddb.failover_timeout=\n kairosdb.datastore.griddb.transaction_timeout=\n kairosdb.datastore.griddb.datapoint_ttl=0\n kairosdb.datastore.griddb.max_data_cache_size=50000\n kairosdb.datastore.griddb.max_write_buffer_size=500000\n kairosdb.datastore.griddb.number_request_concurrency=100\n kairosdb.datastore.griddb.write_delay=1000\n kairosdb.datastore.griddb.write_buffer_datapoint=8\n\n<\/pre>\n<p>\u8a18\u5165\u3059\u308b\u5fc5\u8981\u306e\u3042\u308b\u30d1\u30e9\u30e1\u30fc\u30bf\uff08\u30af\u30e9\u30b9\u30bf\u540d\u3001\u30e6\u30fc\u30b6\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\uff09\u3092\u8a18\u5165\u3057\u3001\u6b8b\u308a\u306eGridDB\u30d7\u30ed\u30d1\u30c6\u30a3\u306b\u3064\u3044\u3066\u306f<a href=\"\/griddb\/griddb_kairosdb\/blob\/master\/Configuration.md\">\u3053\u3061\u3089<\/a> \u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001\u3059\u3079\u3066\u306e\u5024\u3092\u30c7\u30d5\u30a9\u30eb\u30c8\u306b\u4fdd\u3061\u307e\u3059\u3002 \u6700\u5f8c\u306b\u3001gridstore.file\u3092lib \/\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u30b3\u30d4\u30fc\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>&nbsp;<\/p>\n<pre># cp \/usr\/share\/java\/gridstore.jar $PWD\/lib\/\n\n<\/pre>\n<p>\u3053\u308c\u3067\u3001KairosDB\u30b3\u30cd\u30af\u30bf\u3092\u5b9f\u884c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<h2>GridDB + The KairosDB \u30b3\u30cd\u30af\u30bf\u3092\u5b9f\u884c\u3059\u308b<\/h2>\n<p>\u8a2d\u5b9a\u304c\u6b63\u3057\u304f\u3067\u304d\u3066\u3044\u308c\u3070\u3001GridDB\u30af\u30e9\u30b9\u30bf\u306f\u3059\u3067\u306b\u5b9f\u884c\u3055\u308c\u3066\u3044\u308b\u306f\u305a\u3067\u3059\u3002 \u3053\u308c\u304b\u3089KairosDB\u3092\u7a3c\u50cd\u3055\u305b\u3066\u307f\u307e\u3057\u3087\u3046\u3002KairosDB\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3067\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre># java -cp tools\/tablesaw-1.2.2.jar make run<\/pre>\n<p>KairosDB\u304c\u8d77\u52d5\u3057\u305f\u3053\u3068\u3092\u793a\u3059\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u7aef\u672b\u5185\u306b\u8868\u793a\u3055\u308c\u307e\u3059\u3002\u3053\u306e\u7aef\u672b\u306fKairosDB\u3092\u5b9f\u884c\u3059\u308b\u305f\u3081\u306b\u958b\u3044\u305f\u307e\u307e\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u3092\u5f15\u304d\u7d9a\u304d\u4f7f\u7528\u3059\u308b\u306b\u306f\u65b0\u3057\u3044\u7aef\u672b\u3092\u958b\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-1001\" src=\"https:\/\/griddb.net\/ja\/wp-content\/uploads\/2017\/05\/KairosDB-VM-300x209.png\" alt=\"\" width=\"1533\" height=\"1067\"><\/p>\n<p>\u4e0a\u306e\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8\u306f\u3001KairosDB\u304c\u79c1\u306eCentOS\u4eee\u60f3\u30de\u30b7\u30f3\u3067\u6b63\u5e38\u306b\u52d5\u4f5c\u3057\u3066\u3044\u308b\u69d8\u5b50\u3067\u3059\u3002<\/p>\n<p>\u3053\u308c\u3067\u3001\u3059\u3079\u3066\u306e\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u306e\u4f5c\u696d\u304c\u5b8c\u4e86\u3057\u307e\u3057\u305f\u3002 \u6700\u5f8c\u306b\u3001\u30cf\u30ea\u30fc\u306epython\u30b9\u30af\u30ea\u30d7\u30c8\u3092REST API\u3092\u4ecb\u3057\u3066POST\u306b\u5909\u66f4\u3057\u3001\u30cf\u30ea\u30fc\u306ecron job\u3092\u4f7f\u7528\u3057\u30665\u5206\u3054\u3068\u306b\u30b5\u30fc\u30d0\u30fc\u306b\u65b0\u3057\u3044\u71b1\u8aad\u307f\u53d6\u308a\u5024\u3092POST\u3057\u307e\u3059\u3002<\/p>\n<h2>Raspberry Pi\u3092\u8a2d\u5b9a\u3059\u308b<\/h2>\n<p>Python\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4fee\u6b63\u3059\u308b\u524d\u306b\u3001\u307e\u305a\u306f<a href=\"http:\/\/docs.python-requests.org\/en\/latest\/\">requests python library<\/a>\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3001HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u4fe1\u3057\u307e\u3059\u3002Raspbian\u306e\u6700\u65b0\u30ea\u30ea\u30fc\u30b9\u3067\u306f<a href=\"https:\/\/pip.pypa.io\/\">pip<\/a>\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3001SSH\u3092\u3042\u306a\u305f\u306ePi\u306b\u623b\u3057\u3066\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre># pip install requests<\/pre>\n<p>\u6b21\u306b\u3001temperature_sensor_code.py\u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3057\u307e\u3059\u3002 KairosDB\u306fUnix Epoch\u304b\u3089\u306e\u30df\u30ea\u79d2\u5358\u4f4d\u306e\u6642\u9593\u30c7\u30fc\u30bf\u3092\u6271\u3046\u306e\u3067\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u306f\u6642\u9593\u30c7\u30fc\u30bf\u3092\u30df\u30ea\u79d2\u5358\u4f4d\u306b\u5909\u63db\u3057\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u3067HTTP POST\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre>#!\/usr\/bin\/env python\n\nimport os\n\nimport glob\n\nimport time\n\nimport requests<\/pre>\n<pre>os.system('modprobe w1-gpio')\n\nos.system('modprobe w1-therm')\n\nbase_dir = '\/sys\/bus\/w1\/devices\/'\n\ndevice_folder = glob.glob(base_dir + '28*')[0]\n\ndevice_file = device_folder + '\/w1_slave'\n\nmillis = int(round(time.time() * 1000))\n\nurl = 'http:\/\/&lt;your_CentOS_IP&gt;:8080\/api\/v1\/datapoints'\n\ndef read_temp_raw():<\/pre>\n<pre>&nbsp;&nbsp;&nbsp; f = open(device_file, 'r')\n\n&nbsp;&nbsp;&nbsp; lines = f.readlines()\n\n&nbsp;&nbsp;&nbsp; f.close()\n\n&nbsp;&nbsp;&nbsp; return lines\n\ndef read_temp():\n\n&nbsp;&nbsp;&nbsp; lines = read_temp_raw()\n\n&nbsp;&nbsp;&nbsp; while lines[0].strip()[-3:] != 'YES':\n\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; time.sleep(0.2)<\/pre>\n<pre>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lines = read_temp_raw()\n\n&nbsp;&nbsp;&nbsp; equals_pos = lines[1].find('t=')\n\n&nbsp;&nbsp;&nbsp; if equals_pos != -1:\n\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; temp_string = lines[1][equals_pos+2:]\n\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; temp_c = float(temp_string) \/ 1000.0\n\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; temp_f = temp_c * 9.0 \/ 5.0 + 32.0\n\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; payload = {'name':'temperature', 'timestamp':millis, 'value':temp_f, 'tags':{'sensorNo':'1'}}\n\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return requests.post(url, json = payload)<\/pre>\n<pre>while True:\n\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; print(read_temp())\n\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; break\n<\/pre>\n<p>CentOS\u30de\u30b7\u30f3\u306eIP\u30a2\u30c9\u30ec\u30b9\u3068\u4e00\u81f4\u3059\u308b\u3088\u3046\u306burl\u5909\u6570\u3092\u5909\u66f4\u3057\u3066\u304f\u3060\u3055\u3044\u3002 \u6b8b\u308a\u306eURL\u306f\u3001KairosDB\u304c\u30c7\u30fc\u30bf\u8981\u6c42\u3092\u53d7\u3051\u5165\u308c\u308b\u5834\u6240\u3067\u3059\u3002 \u30da\u30a4\u30ed\u30fc\u30c9\u306b\u95a2\u3057\u3066\u306f\u3001\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u5909\u66f4\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 \u305f\u3068\u3048\u3070\u3001\u6c17\u6e29\u3092\u83ef\u6c0f\u304b\u3089\u6442\u6c0f\u306b\u5909\u66f4\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 KairosDB\u306f\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u306b\u5c11\u306a\u304f\u3068\u30821\u3064\u306e\u300c\u30bf\u30b0\u300d\u3092\u5fc5\u8981\u3068\u3057\u307e\u3059\u304c\u3001\u4f55\u3067\u3082\u69cb\u3044\u307e\u305b\u3093\u3002<\/p>\n<p>\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u6700\u521d\u306e\u884c\u306f\u3001\u3053\u306e\u30b3\u30fc\u30c9\u304cPython\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u3042\u308b\u3053\u3068\u3092Pi\u306b\u4f1d\u3048\u307e\u3059\u3002 \u5b9f\u884c\u53ef\u80fd\u306b\u3059\u308b\u305f\u3081\u306b\u3044\u304f\u3064\u304b\u306e\u6a29\u9650\u3092\u5909\u66f4\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre># chmod +x temperature_sensor_code.py<\/pre>\n<p>\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u5b9f\u969b\u306b\u5b9f\u884c\u53ef\u80fd\u3067\u3042\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre># .\/temperature_sensor_code.py\n(Response [204])\n<\/pre>\n<p>204\u306eHTTP\u30ec\u30b9\u30dd\u30f3\u30b9\u304c\u826f\u597d\u3067\u3042\u308c\u3070\u3001POST\u304c\u6210\u529f\u3057\u305f\u3053\u3068\u3092\u610f\u5473\u3057\u307e\u3059\u3002 \u30d6\u30e9\u30a6\u30b6\u3092\u958b\u304d\u3001\u6b21\u306e\u30ea\u30f3\u30afhttp\uff1a&lt;your_CentOS_IP&gt;\uff1a8080\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u3001\u30c7\u30fc\u30bf\u304c\u30b5\u30fc\u30d0\u30fc\u306b\u6b63\u3057\u304f\u9001\u4fe1\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\uff08\u4ee5\u4e0b\u306e\u4f8b\u3067\u306ftemperature\uff09\u3092\u5165\u529b\u3059\u308b\u3068\u7d50\u679c\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1011\" src=\"https:\/\/griddb.net\/ja\/wp-content\/uploads\/2017\/05\/1-Data-Point-259x300.png\" alt=\"\" width=\"581\" height=\"673\"><\/p>\n<h2>\u81ea\u52d5POST\u3092\u30b9\u30b1\u30b8\u30e5\u30fc\u30eb\u3059\u308b<\/h2>\n<p>\u6b21\u306b\u3001&nbsp;<a href=\"https:\/\/wingoodharry.wordpress.com\/2015\/05\/18\/raspberry-pi-temperature-sensor-web-server-part-3-scheduling-temperature-readings-and-php-script\/\">Harry\u2019s Tutorial part 3<\/a>&nbsp;\u306b\u3042\u308b\u3001UNIX\u306e\u7d44\u307f\u8fbc\u307f\u30bf\u30b9\u30af\u30b9\u30b1\u30b8\u30e5\u30fc\u30e9\uff1acron\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<pre># crontab -e<\/pre>\n<p>\u30d5\u30a1\u30a4\u30eb\u306e\u4e00\u756a\u4e0b\u306b\u4ee5\u4e0b\u306e\u884c\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<pre>*\/5 * * * * \/home\/pi\/tempLog\/temperature_sensor_code.py<\/pre>\n<p>\u4eca\u56de\u3054\u7d39\u4ecb\u3057\u305f\u4f8b\u3067\u306f\u30015\u5206\u3054\u3068\u306bPython\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3059\u308b\u3088\u3046\u8a2d\u5b9a\u3057\u307e\u3057\u305f\u304c\u3001\u30bf\u30b9\u30af\u3092\u5b9f\u884c\u3059\u308b\u30bf\u30a4\u30df\u30f3\u30b0\u306f\u3001\u81ea\u7531\u306b\u30b9\u30b1\u30b8\u30e5\u30fc\u30eb\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u3067\u5b8c\u4e86\u3067\u3059\u3002GridDB\u30b5\u30fc\u30d0\u306b\u6700\u65b0\u306e\u6e29\u5ea6\u30c7\u30fc\u30bf\u304c\u4fdd\u5b58\u3055\u308c\u307e\u3057\u305f\u3002\u30c7\u30fc\u30bf\u3092\u5f15\u7528\u3057\u3066\u7d50\u679c\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u8868\u306b\u3057\u3066\u3082\u3088\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u306f\u3058\u3081\u306b \u3053\u306e\u30d6\u30ed\u30b0\u306f\u3001Raspberry Pi&nbsp;\u304b\u3089GridDB\u30b5\u30fc\u30d0\u30fc\u306b\u9001\u3089\u308c\u308b\u6e29\u5ea6\u30c7\u30fc\u30bf\u3092\u9001\u4fe1\u3057\u3066\u53ef\u8996\u5316\u3059\u308b\u65b9\u6cd5\u306b\u95a2\u3059\u308b\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u3059\u3002 \u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3068\u3057\u3066GridDB\u3092\u4f7f\u7528\u3057\u3001\u6b21\u306b\u30c7\u30fc\u30bf [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":48997,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1005],"tags":[],"class_list":["post-50655","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-1005"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Raspberry Pi\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\uff1aKairosDB\u30b3\u30cd\u30af\u30bf\u3092\u4ecb\u3057\u3066GridDB\u306b\u6e29\u5ea6\u30c7\u30fc\u30bf\u3092\u9001\u4fe1\u3059\u308b | GridDB: Open Source Time Series Database for IoT<\/title>\n<meta name=\"description\" content=\"\u306f\u3058\u3081\u306b \u3053\u306e\u30d6\u30ed\u30b0\u306f\u3001Raspberry Pi&nbsp;\u304b\u3089GridDB\u30b5\u30fc\u30d0\u30fc\u306b\u9001\u3089\u308c\u308b\u6e29\u5ea6\u30c7\u30fc\u30bf\u3092\u9001\u4fe1\u3057\u3066\u53ef\u8996\u5316\u3059\u308b\u65b9\u6cd5\u306b\u95a2\u3059\u308b\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u3059\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/griddb.net\/ja\/\u672a\u5206\u985e\/raspberry-pi-tutorial-sending-thermal-data-to-griddb-via-the-kairosdb-connector\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Raspberry Pi\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\uff1aKairosDB\u30b3\u30cd\u30af\u30bf\u3092\u4ecb\u3057\u3066GridDB\u306b\u6e29\u5ea6\u30c7\u30fc\u30bf\u3092\u9001\u4fe1\u3059\u308b | GridDB: Open Source Time Series Database for IoT\" \/>\n<meta property=\"og:description\" content=\"\u306f\u3058\u3081\u306b \u3053\u306e\u30d6\u30ed\u30b0\u306f\u3001Raspberry Pi&nbsp;\u304b\u3089GridDB\u30b5\u30fc\u30d0\u30fc\u306b\u9001\u3089\u308c\u308b\u6e29\u5ea6\u30c7\u30fc\u30bf\u3092\u9001\u4fe1\u3057\u3066\u53ef\u8996\u5316\u3059\u308b\u65b9\u6cd5\u306b\u95a2\u3059\u308b\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/griddb.net\/ja\/\u672a\u5206\u985e\/raspberry-pi-tutorial-sending-thermal-data-to-griddb-via-the-kairosdb-connector\/\" \/>\n<meta property=\"og:site_name\" content=\"GridDB: Open Source Time Series Database for IoT\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/griddbcommunity\/\" \/>\n<meta property=\"article:published_time\" content=\"2017-04-18T07:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-11-14T15:53:24+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.griddb.net\/wp-content\/uploads\/2017\/04\/blog_title_09.png\" \/>\n\t<meta property=\"og:image:width\" content=\"870\" \/>\n\t<meta property=\"og:image:height\" content=\"490\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Israel\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@GridDBCommunity\" \/>\n<meta name=\"twitter:site\" content=\"@GridDBCommunity\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"Israel\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"4\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/raspberry-pi-tutorial-sending-thermal-data-to-griddb-via-the-kairosdb-connector\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/raspberry-pi-tutorial-sending-thermal-data-to-griddb-via-the-kairosdb-connector\/\"},\"author\":{\"name\":\"Israel\",\"@id\":\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/#\/schema\/person\/c8a430e7156a9e10af73b1fbb46c2740\"},\"headline\":\"Raspberry Pi\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\uff1aKairosDB\u30b3\u30cd\u30af\u30bf\u3092\u4ecb\u3057\u3066GridDB\u306b\u6e29\u5ea6\u30c7\u30fc\u30bf\u3092\u9001\u4fe1\u3059\u308b\",\"datePublished\":\"2017-04-18T07:00:00+00:00\",\"dateModified\":\"2025-11-14T15:53:24+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/raspberry-pi-tutorial-sending-thermal-data-to-griddb-via-the-kairosdb-connector\/\"},\"wordCount\":167,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/#organization\"},\"image\":{\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/raspberry-pi-tutorial-sending-thermal-data-to-griddb-via-the-kairosdb-connector\/#primaryimage\"},\"thumbnailUrl\":\"\/wp-content\/uploads\/2017\/04\/blog_title_09.png\",\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/raspberry-pi-tutorial-sending-thermal-data-to-griddb-via-the-kairosdb-connector\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/raspberry-pi-tutorial-sending-thermal-data-to-griddb-via-the-kairosdb-connector\/\",\"url\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/raspberry-pi-tutorial-sending-thermal-data-to-griddb-via-the-kairosdb-connector\/\",\"name\":\"Raspberry Pi\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\uff1aKairosDB\u30b3\u30cd\u30af\u30bf\u3092\u4ecb\u3057\u3066GridDB\u306b\u6e29\u5ea6\u30c7\u30fc\u30bf\u3092\u9001\u4fe1\u3059\u308b | GridDB: Open Source Time Series Database for IoT\",\"isPartOf\":{\"@id\":\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/raspberry-pi-tutorial-sending-thermal-data-to-griddb-via-the-kairosdb-connector\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/raspberry-pi-tutorial-sending-thermal-data-to-griddb-via-the-kairosdb-connector\/#primaryimage\"},\"thumbnailUrl\":\"\/wp-content\/uploads\/2017\/04\/blog_title_09.png\",\"datePublished\":\"2017-04-18T07:00:00+00:00\",\"dateModified\":\"2025-11-14T15:53:24+00:00\",\"description\":\"\u306f\u3058\u3081\u306b \u3053\u306e\u30d6\u30ed\u30b0\u306f\u3001Raspberry Pi&nbsp;\u304b\u3089GridDB\u30b5\u30fc\u30d0\u30fc\u306b\u9001\u3089\u308c\u308b\u6e29\u5ea6\u30c7\u30fc\u30bf\u3092\u9001\u4fe1\u3057\u3066\u53ef\u8996\u5316\u3059\u308b\u65b9\u6cd5\u306b\u95a2\u3059\u308b\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u3059\u3002\",\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/raspberry-pi-tutorial-sending-thermal-data-to-griddb-via-the-kairosdb-connector\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/raspberry-pi-tutorial-sending-thermal-data-to-griddb-via-the-kairosdb-connector\/#primaryimage\",\"url\":\"\/wp-content\/uploads\/2017\/04\/blog_title_09.png\",\"contentUrl\":\"\/wp-content\/uploads\/2017\/04\/blog_title_09.png\",\"width\":870,\"height\":490},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/#website\",\"url\":\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/\",\"name\":\"GridDB: Open Source Time Series Database for IoT\",\"description\":\"GridDB is an open source time-series database with the performance of NoSQL and convenience of SQL\",\"publisher\":{\"@id\":\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/#organization\",\"name\":\"Fixstars\",\"url\":\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/griddb.net\/wp-content\/uploads\/2019\/04\/fixstars_logo_web_tagline.png\",\"contentUrl\":\"https:\/\/griddb.net\/wp-content\/uploads\/2019\/04\/fixstars_logo_web_tagline.png\",\"width\":200,\"height\":83,\"caption\":\"Fixstars\"},\"image\":{\"@id\":\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/griddbcommunity\/\",\"https:\/\/x.com\/GridDBCommunity\",\"https:\/\/www.linkedin.com\/company\/griddb-by-toshiba\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/#\/schema\/person\/c8a430e7156a9e10af73b1fbb46c2740\",\"name\":\"Israel\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/4df8cfc155402a2928d11f80b0220037b8bd26c4f1b19c4598d826e0306e6307?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/4df8cfc155402a2928d11f80b0220037b8bd26c4f1b19c4598d826e0306e6307?s=96&d=mm&r=g\",\"caption\":\"Israel\"},\"url\":\"https:\/\/www.griddb.net\/ja\/author\/israel\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Raspberry Pi\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\uff1aKairosDB\u30b3\u30cd\u30af\u30bf\u3092\u4ecb\u3057\u3066GridDB\u306b\u6e29\u5ea6\u30c7\u30fc\u30bf\u3092\u9001\u4fe1\u3059\u308b | GridDB: Open Source Time Series Database for IoT","description":"\u306f\u3058\u3081\u306b \u3053\u306e\u30d6\u30ed\u30b0\u306f\u3001Raspberry Pi&nbsp;\u304b\u3089GridDB\u30b5\u30fc\u30d0\u30fc\u306b\u9001\u3089\u308c\u308b\u6e29\u5ea6\u30c7\u30fc\u30bf\u3092\u9001\u4fe1\u3057\u3066\u53ef\u8996\u5316\u3059\u308b\u65b9\u6cd5\u306b\u95a2\u3059\u308b\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u3059\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/griddb.net\/ja\/\u672a\u5206\u985e\/raspberry-pi-tutorial-sending-thermal-data-to-griddb-via-the-kairosdb-connector\/","og_locale":"ja_JP","og_type":"article","og_title":"Raspberry Pi\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\uff1aKairosDB\u30b3\u30cd\u30af\u30bf\u3092\u4ecb\u3057\u3066GridDB\u306b\u6e29\u5ea6\u30c7\u30fc\u30bf\u3092\u9001\u4fe1\u3059\u308b | GridDB: Open Source Time Series Database for IoT","og_description":"\u306f\u3058\u3081\u306b \u3053\u306e\u30d6\u30ed\u30b0\u306f\u3001Raspberry Pi&nbsp;\u304b\u3089GridDB\u30b5\u30fc\u30d0\u30fc\u306b\u9001\u3089\u308c\u308b\u6e29\u5ea6\u30c7\u30fc\u30bf\u3092\u9001\u4fe1\u3057\u3066\u53ef\u8996\u5316\u3059\u308b\u65b9\u6cd5\u306b\u95a2\u3059\u308b\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u3059\u3002","og_url":"https:\/\/griddb.net\/ja\/\u672a\u5206\u985e\/raspberry-pi-tutorial-sending-thermal-data-to-griddb-via-the-kairosdb-connector\/","og_site_name":"GridDB: Open Source Time Series Database for IoT","article_publisher":"https:\/\/www.facebook.com\/griddbcommunity\/","article_published_time":"2017-04-18T07:00:00+00:00","article_modified_time":"2025-11-14T15:53:24+00:00","og_image":[{"width":870,"height":490,"url":"https:\/\/www.griddb.net\/wp-content\/uploads\/2017\/04\/blog_title_09.png","type":"image\/png"}],"author":"Israel","twitter_card":"summary_large_image","twitter_creator":"@GridDBCommunity","twitter_site":"@GridDBCommunity","twitter_misc":{"\u57f7\u7b46\u8005":"Israel","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"4\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/raspberry-pi-tutorial-sending-thermal-data-to-griddb-via-the-kairosdb-connector\/#article","isPartOf":{"@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/raspberry-pi-tutorial-sending-thermal-data-to-griddb-via-the-kairosdb-connector\/"},"author":{"name":"Israel","@id":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/#\/schema\/person\/c8a430e7156a9e10af73b1fbb46c2740"},"headline":"Raspberry Pi\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\uff1aKairosDB\u30b3\u30cd\u30af\u30bf\u3092\u4ecb\u3057\u3066GridDB\u306b\u6e29\u5ea6\u30c7\u30fc\u30bf\u3092\u9001\u4fe1\u3059\u308b","datePublished":"2017-04-18T07:00:00+00:00","dateModified":"2025-11-14T15:53:24+00:00","mainEntityOfPage":{"@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/raspberry-pi-tutorial-sending-thermal-data-to-griddb-via-the-kairosdb-connector\/"},"wordCount":167,"commentCount":0,"publisher":{"@id":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/#organization"},"image":{"@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/raspberry-pi-tutorial-sending-thermal-data-to-griddb-via-the-kairosdb-connector\/#primaryimage"},"thumbnailUrl":"\/wp-content\/uploads\/2017\/04\/blog_title_09.png","inLanguage":"ja","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/raspberry-pi-tutorial-sending-thermal-data-to-griddb-via-the-kairosdb-connector\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/raspberry-pi-tutorial-sending-thermal-data-to-griddb-via-the-kairosdb-connector\/","url":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/raspberry-pi-tutorial-sending-thermal-data-to-griddb-via-the-kairosdb-connector\/","name":"Raspberry Pi\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\uff1aKairosDB\u30b3\u30cd\u30af\u30bf\u3092\u4ecb\u3057\u3066GridDB\u306b\u6e29\u5ea6\u30c7\u30fc\u30bf\u3092\u9001\u4fe1\u3059\u308b | GridDB: Open Source Time Series Database for IoT","isPartOf":{"@id":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/raspberry-pi-tutorial-sending-thermal-data-to-griddb-via-the-kairosdb-connector\/#primaryimage"},"image":{"@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/raspberry-pi-tutorial-sending-thermal-data-to-griddb-via-the-kairosdb-connector\/#primaryimage"},"thumbnailUrl":"\/wp-content\/uploads\/2017\/04\/blog_title_09.png","datePublished":"2017-04-18T07:00:00+00:00","dateModified":"2025-11-14T15:53:24+00:00","description":"\u306f\u3058\u3081\u306b \u3053\u306e\u30d6\u30ed\u30b0\u306f\u3001Raspberry Pi&nbsp;\u304b\u3089GridDB\u30b5\u30fc\u30d0\u30fc\u306b\u9001\u3089\u308c\u308b\u6e29\u5ea6\u30c7\u30fc\u30bf\u3092\u9001\u4fe1\u3057\u3066\u53ef\u8996\u5316\u3059\u308b\u65b9\u6cd5\u306b\u95a2\u3059\u308b\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u3059\u3002","inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/raspberry-pi-tutorial-sending-thermal-data-to-griddb-via-the-kairosdb-connector\/"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/raspberry-pi-tutorial-sending-thermal-data-to-griddb-via-the-kairosdb-connector\/#primaryimage","url":"\/wp-content\/uploads\/2017\/04\/blog_title_09.png","contentUrl":"\/wp-content\/uploads\/2017\/04\/blog_title_09.png","width":870,"height":490},{"@type":"WebSite","@id":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/#website","url":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/","name":"GridDB: Open Source Time Series Database for IoT","description":"GridDB is an open source time-series database with the performance of NoSQL and convenience of SQL","publisher":{"@id":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Organization","@id":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/#organization","name":"Fixstars","url":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/","logo":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/#\/schema\/logo\/image\/","url":"https:\/\/griddb.net\/wp-content\/uploads\/2019\/04\/fixstars_logo_web_tagline.png","contentUrl":"https:\/\/griddb.net\/wp-content\/uploads\/2019\/04\/fixstars_logo_web_tagline.png","width":200,"height":83,"caption":"Fixstars"},"image":{"@id":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/griddbcommunity\/","https:\/\/x.com\/GridDBCommunity","https:\/\/www.linkedin.com\/company\/griddb-by-toshiba"]},{"@type":"Person","@id":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/#\/schema\/person\/c8a430e7156a9e10af73b1fbb46c2740","name":"Israel","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/4df8cfc155402a2928d11f80b0220037b8bd26c4f1b19c4598d826e0306e6307?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4df8cfc155402a2928d11f80b0220037b8bd26c4f1b19c4598d826e0306e6307?s=96&d=mm&r=g","caption":"Israel"},"url":"https:\/\/www.griddb.net\/ja\/author\/israel\/"}]}},"_links":{"self":[{"href":"https:\/\/www.griddb.net\/ja\/wp-json\/wp\/v2\/posts\/50655","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.griddb.net\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.griddb.net\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.griddb.net\/ja\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.griddb.net\/ja\/wp-json\/wp\/v2\/comments?post=50655"}],"version-history":[{"count":1,"href":"https:\/\/www.griddb.net\/ja\/wp-json\/wp\/v2\/posts\/50655\/revisions"}],"predecessor-version":[{"id":51499,"href":"https:\/\/www.griddb.net\/ja\/wp-json\/wp\/v2\/posts\/50655\/revisions\/51499"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.griddb.net\/ja\/wp-json\/wp\/v2\/media\/48997"}],"wp:attachment":[{"href":"https:\/\/www.griddb.net\/ja\/wp-json\/wp\/v2\/media?parent=50655"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.griddb.net\/ja\/wp-json\/wp\/v2\/categories?post=50655"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.griddb.net\/ja\/wp-json\/wp\/v2\/tags?post=50655"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}