{"id":2906,"date":"2020-05-10T09:59:01","date_gmt":"2020-05-10T00:59:01","guid":{"rendered":"http:\/\/taki-lab.site\/bocci\/?p=2906"},"modified":"2020-05-10T09:59:04","modified_gmt":"2020-05-10T00:59:04","slug":"%e3%80%90%e3%83%a9%e3%82%ba%e3%83%91%e3%82%a4%e3%80%91%e3%83%8d%e3%83%83%e3%83%88%e3%83%af%e3%83%bc%e3%82%af%e3%81%a7%e3%82%bb%e3%83%b3%e3%82%b5%e3%83%bc%e3%83%87%e3%83%bc%e3%82%bf%e3%82%92%e9%80%81","status":"publish","type":"post","link":"https:\/\/taki-lab.site\/bocci\/?p=2906","title":{"rendered":"\u3010\u30e9\u30ba\u30d1\u30a4\u3011\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3067\u30bb\u30f3\u30b5\u30fc\u30c7\u30fc\u30bf\u3092\u9001\u4fe1\u3059\u308b\u3002"},"content":{"rendered":"\n<p>\u524d\u56de\u307e\u3067\u306e\u72b6\u6cc1\u306f\u3053\u3061\u3089\u3002<\/p>\n\n\n\n<figure class=\"wp-block-embed-wordpress wp-block-embed is-type-wp-embed is-provider-\u81ea\u5206\u3001\u307c\u3063\u3061\u3067\u3059\u304c\u4f55\u304b\uff1f\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"U9WqcDNptm\"><a href=\"https:\/\/taki-lab.site\/bocci\/?p=2896\">\u3010\u30e9\u30ba\u30d1\u30a4\u3011\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3067\u30c7\u30fc\u30bf\u3092\u9001\u4fe1\u3059\u308b\u3002<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;\u3010\u30e9\u30ba\u30d1\u30a4\u3011\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3067\u30c7\u30fc\u30bf\u3092\u9001\u4fe1\u3059\u308b\u3002&#8221; &#8212; \u81ea\u5206\u3001\u307c\u3063\u3061\u3067\u3059\u304c\u4f55\u304b\uff1f\" src=\"https:\/\/taki-lab.site\/bocci\/?p=2896&#038;embed=true#?secret=LZGBWqoJ70#?secret=U9WqcDNptm\" data-secret=\"U9WqcDNptm\" width=\"474\" height=\"267\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>\u4eca\u56de\u306f\u5b9f\u969b\u306b\u30bb\u30f3\u30b5\u30fc\u306e\u60c5\u5831\u3092Windows\u5074\u306b\u9001\u4fe1\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30e9\u30ba\u30d1\u30a4\u5074\u306ePython\u30bd\u30fc\u30b9\u3092\u3053\u306e\u3088\u3046\u306b\u4f5c\u6210\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import json\nimport urllib.request\nimport time\nfrom sense_hat import SenseHat\n\nsense = SenseHat()\n\nurl = 'http:\/\/192.168.1.3:8000'\nheaders = {\n    'Content-Type': 'application\/json',\n}\n\nwhile True:\n    temp = int(sense.get_temperature())\n    hum = int(sense.get_humidity())\n    press = int(sense.get_pressure())\n    data = {\n        'temperature': temp,\n        'humidity': hum,\n        'pressure': press,\n    }\n    req = urllib.request.Request(url, json.dumps(data).encode(), headers)\n    with urllib.request.urlopen(req) as res:\n        body = res.read()\n    time.sleep(1)\n<\/code><\/pre>\n\n\n\n<p>\u30bb\u30f3\u30b5\u30fc\u304b\u3089\u6e29\u5ea6\u3001\u6e7f\u5ea6\u3001\u6c17\u5727\u306e\u6e2c\u5b9a\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3057\u3001\u3053\u306e\u30c7\u30fc\u30bf\u3092Json\u5f62\u5f0f\u306b\u3057\u3066\u9001\u4fe1\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u306e\u51e6\u7406\u30921\u79d2\u5468\u671f\u3067\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u6700\u8fd1\u306eWebAPI\u306f\u9001\u53d7\u4fe1\u3059\u308b\u30c7\u30fc\u30bf\u306e\u91cf\u304c\u5897\u3048\u3066\u304d\u3066\u3044\u308b\u306e\u3067\u3001\u3069\u306e\u3088\u3046\u306a\u30c7\u30fc\u30bf\u5f62\u5f0f\u3082\u4e00\u884c\u306e\u6587\u5b57\u5217\u3067\u8868\u73fe\u3067\u304d\u308bJson\u3092\u4f7f\u7528\u3059\u308b\u306e\u304c\u4eca\u306e\u4e00\u822c\u7684\u3067\u3059\u3002<\/p>\n\n\n\n<p>Windows\u5074\uff08\u30b5\u30fc\u30d0\u5074\uff09\u306e\u51fa\u529b\u306f\u3053\u3046\u306a\u308a\u307e\u3057\u305f\u3002\uff08\u53d7\u4fe1\u5074\u306e\u30b3\u30fc\u30c9\u306f\u524d\u56de\u304b\u3089\u5909\u66f4\u3057\u3066\u3044\u307e\u305b\u3093\u3002\uff09<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"456\" height=\"330\" data-attachment-id=\"2907\" data-permalink=\"https:\/\/taki-lab.site\/bocci\/?attachment_id=2907\" data-orig-file=\"https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2020\/05\/39f39e098ef0038af6d1a2b8d092a64d.jpg?fit=456%2C330&amp;ssl=1\" data-orig-size=\"456,330\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"39f39e098ef0038af6d1a2b8d092a64d\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2020\/05\/39f39e098ef0038af6d1a2b8d092a64d.jpg?fit=456%2C330&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2020\/05\/39f39e098ef0038af6d1a2b8d092a64d.jpg?resize=456%2C330&#038;ssl=1\" alt=\"\" class=\"wp-image-2907\" srcset=\"https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2020\/05\/39f39e098ef0038af6d1a2b8d092a64d.jpg?w=456&amp;ssl=1 456w, https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2020\/05\/39f39e098ef0038af6d1a2b8d092a64d.jpg?resize=300%2C217&amp;ssl=1 300w\" sizes=\"auto, (max-width: 456px) 100vw, 456px\" \/><\/figure>\n\n\n\n<p>\u6e29\u5ea6\u3068\u6e7f\u5ea6\u306f\u3001\u30e9\u30ba\u30d1\u30a4\u672c\u4f53\u304b\u3089\u306e\u71b1\u306e\u5f71\u97ff\u3092\u53d7\u3051\u3066\u3044\u308b\u306e\u3067\u3001\u5b9f\u969b\u306e\u90e8\u5c4b\u306e\u4e2d\u306e\u6570\u5024\u3068\u306f\u7570\u306a\u308a\u307e\u3059\u304c\u3001\u307e\u3041\u3001\u826f\u3044\u611f\u3058\u3067\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"\/\/blog.with2.net\/link\/?2023426:1010\" target=\"_blank\" rel=\"noreferrer noopener\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2019\/12\/03a6eee54039f74ded0b8f7548b1868f.png?w=474\" alt=\"\" title=\"\u30d1\u30bd\u30b3\u30f3\u30e9\u30f3\u30ad\u30f3\u30b0\"\/><\/a><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u56de\u307e\u3067\u306e\u72b6\u6cc1\u306f\u3053\u3061\u3089\u3002 \u4eca\u56de\u306f\u5b9f\u969b\u306b\u30bb\u30f3\u30b5\u30fc\u306e\u60c5\u5831\u3092Windows\u5074\u306b\u9001\u4fe1\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002 \u30e9\u30ba\u30d1\u30a4\u5074\u306ePython\u30bd\u30fc\u30b9\u3092\u3053\u306e\u3088\u3046\u306b\u4f5c\u6210\u3057\u307e\u3057\u305f\u3002 \u30bb\u30f3\u30b5\u30fc\u304b\u3089\u6e29\u5ea6\u3001\u6e7f\u5ea6\u3001\u6c17\u5727\u306e\u6e2c\u5b9a\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3057\u3001\u3053\u306e\u30c7\u30fc\u30bf\u3092Js &hellip; <a href=\"https:\/\/taki-lab.site\/bocci\/?p=2906\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">\u3010\u30e9\u30ba\u30d1\u30a4\u3011\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3067\u30bb\u30f3\u30b5\u30fc\u30c7\u30fc\u30bf\u3092\u9001\u4fe1\u3059\u308b\u3002<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[187,3],"tags":[188],"class_list":["post-2906","post","type-post","status-publish","format-standard","hentry","category-raspberry-pi","category-3","tag-188"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8SDbY-KS","jetpack-related-posts":[{"id":2864,"url":"https:\/\/taki-lab.site\/bocci\/?p=2864","url_meta":{"origin":2906,"position":0},"title":"\u3010\u30e9\u30ba\u30d1\u30a4\u3011LED\u30c7\u30a3\u30b9\u30d7\u30ec\u30a4\u3067\u6e29\u5ea6\u3092\u8868\u793a\u3059\u308b","author":"taki","date":"2020\u5e745\u67087\u65e5","format":false,"excerpt":"\u3069\u3046\u305b\u306a\u3089LED\u30c7\u30a3\u30b9\u30d7\u30ec\u30a4\u3092\u5229\u7528\u3057\u305f\u3044\u306e\u3067\u3001LED\u30c7\u30a3\u30b9\u30d7\u30ec\u30a4\u3067\u6e29\u5ea6\u3092\u8868\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002 \u30a4\u30e1\u30fc\u2026","rel":"","context":"Raspberry Pi","block_context":{"text":"Raspberry Pi","link":"https:\/\/taki-lab.site\/bocci\/?cat=187"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/img.youtube.com\/vi\/dnFNEy3pepk\/0.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":2896,"url":"https:\/\/taki-lab.site\/bocci\/?p=2896","url_meta":{"origin":2906,"position":1},"title":"\u3010\u30e9\u30ba\u30d1\u30a4\u3011\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3067\u30c7\u30fc\u30bf\u3092\u9001\u4fe1\u3059\u308b\u3002","author":"taki","date":"2020\u5e745\u67089\u65e5","format":false,"excerpt":"\u3053\u3093\u306a\u611f\u3058\u3067\u3001\u30e9\u30ba\u30d1\u30a4\u306e\u30c7\u30fc\u30bf\u3092Windows PC\u3078\u9001\u4fe1\u3055\u305b\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002 \u30e9\u30ba\u30d1\u30a4\u5074\u306fPyth\u2026","rel":"","context":"Raspberry Pi","block_context":{"text":"Raspberry Pi","link":"https:\/\/taki-lab.site\/bocci\/?cat=187"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2020\/05\/5d96997f9decf98262b216d7eb16f5d3.jpg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2020\/05\/5d96997f9decf98262b216d7eb16f5d3.jpg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2020\/05\/5d96997f9decf98262b216d7eb16f5d3.jpg?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2020\/05\/5d96997f9decf98262b216d7eb16f5d3.jpg?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":2914,"url":"https:\/\/taki-lab.site\/bocci\/?p=2914","url_meta":{"origin":2906,"position":2},"title":"\u3010\u30e9\u30ba\u30d1\u30a4\u3011\u53d7\u4fe1\u3057\u305f\u30bb\u30f3\u30b5\u30fc\u30c7\u30fc\u30bf\u3092\u8868\u793a\u3059\u308b\u3002","author":"taki","date":"2020\u5e745\u670811\u65e5","format":false,"excerpt":"\u524d\u56de\u307e\u3067\u306e\u72b6\u6cc1\u306f\u3053\u3061\u3089\u3002 https:\/\/taki-lab.site\/bocci\/?p=2906 \u524d\u2026","rel":"","context":"Raspberry Pi","block_context":{"text":"Raspberry Pi","link":"https:\/\/taki-lab.site\/bocci\/?cat=187"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2020\/05\/e89fa556202c4f0f790d859f634480f2.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":2818,"url":"https:\/\/taki-lab.site\/bocci\/?p=2818","url_meta":{"origin":2906,"position":3},"title":"\u3010\u30e9\u30ba\u30d1\u30a4\u3011\u30c7\u30a3\u30b9\u30d7\u30ec\u30a4\u306b\u3044\u308d\u3044\u308d\u8868\u793a\u3055\u305b\u3066\u307f\u308b","author":"taki","date":"2020\u5e745\u67083\u65e5","format":false,"excerpt":"\u3053\u3061\u3089\u306e\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5165\u529b\u3057\u307e\u3059\u3002 https:\/\/github.com\/raspberryp\u2026","rel":"","context":"Raspberry Pi","block_context":{"text":"Raspberry Pi","link":"https:\/\/taki-lab.site\/bocci\/?cat=187"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2020\/05\/MVIMG_20200501_092912.jpg?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2020\/05\/MVIMG_20200501_092912.jpg?resize=350%2C200 1x, https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2020\/05\/MVIMG_20200501_092912.jpg?resize=525%2C300 1.5x, https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2020\/05\/MVIMG_20200501_092912.jpg?resize=700%2C400 2x, https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2020\/05\/MVIMG_20200501_092912.jpg?resize=1050%2C600 3x"},"classes":[]},{"id":4223,"url":"https:\/\/taki-lab.site\/bocci\/?p=4223","url_meta":{"origin":2906,"position":4},"title":"\u3010\u30e9\u30ba\u30d1\u30a4\u3011\u30ea\u30e2\u30fc\u30c8\u3067\u30ab\u30e1\u30e9\u306e\u30d7\u30ec\u30d3\u30e5\u30fc\u8868\u793a","author":"taki","date":"2020\u5e7410\u67081\u65e5","format":false,"excerpt":"\u3044\u3084\u3001\u4eca\u56de\u306f\u7d50\u69cb\u30cf\u30de\u3063\u305f\u3002 \u3053\u308c\u304c\u534a\u65e5\u9811\u5f35\u3063\u305f\u6210\u679c\u3060\u3002 \u307e\u305a\u306f\u30e9\u30ba\u30d1\u30a4\u5074\u3002 import base6\u2026","rel":"","context":"Raspberry Pi","block_context":{"text":"Raspberry Pi","link":"https:\/\/taki-lab.site\/bocci\/?cat=187"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2020\/10\/795a241f54d363e98d9ebe27e7b4d0df.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":2834,"url":"https:\/\/taki-lab.site\/bocci\/?p=2834","url_meta":{"origin":2906,"position":5},"title":"\u3010\u30e9\u30ba\u30d1\u30a4\u3011\u30b8\u30e3\u30a4\u30ed\u30bb\u30f3\u30b5\u30fc\u3092\u4f7f\u3063\u3066\u307f\u308b\u3000\u305d\u306e1","author":"taki","date":"2020\u5e745\u67084\u65e5","format":false,"excerpt":"\u3053\u306e\u30b5\u30f3\u30d7\u30eb\u3092\u53c2\u8003\u306b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4e0e\u3048\u3066\u307f\u307e\u3059\u3002 https:\/\/github.com\/raspber\u2026","rel":"","context":"Raspberry Pi","block_context":{"text":"Raspberry Pi","link":"https:\/\/taki-lab.site\/bocci\/?cat=187"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2020\/05\/0fb9938fe9e1031ba740867587e1b87f.jpg?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2020\/05\/0fb9938fe9e1031ba740867587e1b87f.jpg?resize=350%2C200 1x, https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2020\/05\/0fb9938fe9e1031ba740867587e1b87f.jpg?resize=525%2C300 1.5x, https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2020\/05\/0fb9938fe9e1031ba740867587e1b87f.jpg?resize=700%2C400 2x"},"classes":[]}],"jetpack_likes_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=\/wp\/v2\/posts\/2906","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2906"}],"version-history":[{"count":1,"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=\/wp\/v2\/posts\/2906\/revisions"}],"predecessor-version":[{"id":2908,"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=\/wp\/v2\/posts\/2906\/revisions\/2908"}],"wp:attachment":[{"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2906"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2906"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2906"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}