{"id":253913,"date":"2015-03-27T11:57:02","date_gmt":"2015-03-27T07:57:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=253913"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=253913","title":{"rendered":"\u0421\u043e\u0431\u0430\u043a\u0430 \u043d\u0430\u0443\u0447\u0438\u043b\u0430\u0441\u044c \u0434\u0435\u043b\u0430\u0442\u044c \u0441\u0435\u043b\u0444\u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Arduino"},"content":{"rendered":"<p>     \t<img decoding=\"async\" src=\"\/\/habrastorage.org\/files\/634\/19a\/44b\/63419a44b81546a0b87b1b2d09e908b7.jpg\"\/><\/p>\n<p>  \u0418\u043d\u0436\u0435\u043d\u0435\u0440 \u0438 \u0441\u043e\u0431\u0430\u043a\u043e\u0432\u043e\u0434 \u0413\u0440\u0435\u0433 \u0411\u043e\u0433\u0435\u0441 (Greg Baugues) \u043d\u0430\u0442\u0440\u0435\u043d\u0438\u0440\u043e\u0432\u0430\u043b \u0441\u0432\u043e\u044e \u0441\u043e\u0431\u0430\u043a\u0443 \u041a\u0430\u0438\u0440\u0443 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u043c \u0442\u0440\u044e\u043a\u0430\u043c. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043e\u043d\u0430 \u0443\u043c\u0435\u0435\u0442 \u043f\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u0435 \u00ab\u0421\u0432\u0435\u0442!\u00bb \u0432\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u0441\u0432\u0435\u0442 \u0432 \u043a\u043e\u043c\u043d\u0430\u0442\u0435, \u043d\u0430\u0441\u0442\u0443\u043f\u0430\u044f \u043d\u0430 \u0432\u044b\u043a\u043b\u044e\u0447\u0430\u0442\u0435\u043b\u044c \u043d\u0430 \u043f\u043e\u043b\u0443.<\/p>\n<p>  \u041a\u043e\u0433\u0434\u0430 \u043f\u0451\u0441 \u043e\u0441\u0432\u043e\u0438\u043b \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0441\u0432\u0435\u0442\u0430, \u0413\u0440\u0435\u0433 \u0437\u0430\u0434\u0443\u043c\u0430\u043b\u0441\u044f \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u0435\u0449\u0451 \u0441\u043e\u0431\u0430\u043a\u0430 \u043c\u043e\u0436\u0435\u0442 \u0434\u0435\u043b\u0430\u0442\u044c \u043f\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u0435, \u043d\u0430\u0436\u0438\u043c\u0430\u044f \u043a\u043d\u043e\u043f\u043a\u0443.<br \/>  <a name=\"habracut\"><\/a><br \/>  <iframe loading=\"lazy\" width=\"560\" height=\"349\" src=\"\/\/www.youtube.com\/embed\/RhxW_4UZDao?wmode=opaque\" frameborder=\"0\" allowfullscreen><\/iframe><\/p>\n<p>  \u041e\u043d \u043f\u043e\u0447\u0438\u0442\u0430\u043b <a href=\"https:\/\/www.twilio.com\/blog\/2014\/12\/12-hacks-of-christmas-day-2-training-your-dog-with-webrtc-tessel-and-twilio.html\">\u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u0438<\/a> \u0434\u0440\u0443\u0433\u0438\u0445 \u0441\u043e\u0431\u0430\u043a\u043e\u0432\u043e\u0434\u043e\u0432, \u0443 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0434\u043e\u043c\u0430\u0448\u043d\u0438\u0435 \u0436\u0438\u0432\u043e\u0442\u043d\u044b\u0435 \u043e\u0441\u0432\u043e\u0438\u043b\u0438 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430, \u0438 \u043f\u0440\u0438\u0434\u0443\u043c\u0430\u043b, \u0447\u0442\u043e \u041a\u0430\u0438\u0440\u0430 \u0432\u043f\u043e\u043b\u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u043e\u0441\u0432\u043e\u0438\u0442\u044c \u0441\u0435\u043b\u0444\u0438, \u0442\u043e \u0435\u0441\u0442\u044c \u043c\u043e\u0436\u0435\u0442 \u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0430\u043c\u0430 \u0441\u0435\u0431\u044f \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0441\u043d\u0438\u043c\u043e\u043a \u043f\u043e MMS.<\/p>\n<p>  \u0413\u0440\u0435\u0433 \u0411\u043e\u0433\u0435\u0441 <a href=\"https:\/\/www.twilio.com\/blog\/2015\/03\/how-my-dog-sends-selfies.html\">\u0441\u043a\u043e\u043d\u0441\u0442\u0440\u0443\u0438\u0440\u043e\u0432\u0430\u043b \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0441 \u0432\u0435\u0431-\u043a\u0430\u043c\u0435\u0440\u043e\u0439<\/a>, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0430\u043a\u0442\u0438\u0432\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043d\u0430\u0436\u0430\u0442\u0438\u0435\u043c \u043d\u0430 \u0431\u043e\u043b\u044c\u0448\u0443\u044e \u043a\u0440\u0430\u0441\u043d\u0443\u044e \u043a\u043d\u043e\u043f\u043a\u0443. \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043a\u043e\u0440\u043f\u0443\u0441\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0441\u0442\u0438\u043b\u044c\u043d\u0430\u044f \u043a\u043e\u0440\u043e\u0431\u043a\u0430 \u0438\u0437-\u043f\u043e\u0434 \u0441\u0438\u0433\u0430\u0440, \u0442\u0430\u043a\u0438\u0435 \u043f\u0440\u043e\u0434\u0430\u0451\u0442 \u043c\u0435\u0441\u0442\u043d\u044b\u0439 \u043c\u0430\u0433\u0430\u0437\u0438\u043d \u043f\u043e \u0434\u0432\u0430 \u0434\u043e\u043b\u043b\u0430\u0440\u0430 \u0437\u0430 \u0448\u0442\u0443\u043a\u0443.<\/p>\n<p>  <img decoding=\"async\" src=\"\/\/habrastorage.org\/files\/17a\/10e\/5fa\/17a10e5fad5344cf94c6a4b0bd94ec6f.jpg\"\/><\/p>\n<p>  \u0421\u043f\u0443\u0441\u0442\u044f \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u041a\u0430\u0438\u0440\u0430 \u043d\u0430\u0443\u0447\u0438\u043b\u0430\u0441\u044c \u0434\u0435\u043b\u0430\u0442\u044c \u0430\u0432\u0442\u043e\u043f\u043e\u0440\u0442\u0440\u0435\u0442.<\/p>\n<p>  <iframe loading=\"lazy\" width=\"560\" height=\"349\" src=\"\/\/www.youtube.com\/embed\/i1jV1dvj0zI?wmode=opaque\" frameborder=\"0\" allowfullscreen><\/iframe><\/p>\n<p>  \u0412\u043d\u0443\u0442\u0440\u0438 \u043a\u043e\u0440\u043e\u0431\u043a\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430 \u043f\u043b\u0430\u0442\u0430 Arduino Yun \u0441 \u0434\u0432\u0443\u043c\u044f \u043c\u0438\u043a\u0440\u043e\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430\u043c\u0438. \u041d\u0430 \u0432\u0442\u043e\u0440\u043e\u043c \u0437\u0430\u043f\u0443\u0449\u0435\u043d Linux-\u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432 OpenWRT, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0447\u0430\u0441\u0442\u043e \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u044e\u0442 \u0432 WiFi-\u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440\u044b. \u0412\u0441\u0435\u0433\u043e \u043d\u0430 \u0434\u0432\u0443\u0445 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430\u0445 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0434\u0432\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b, \u043e\u0431\u0449\u0438\u043c \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u043c \u043d\u0435 \u0431\u043e\u043b\u0435\u0435 60 \u0441\u0442\u0440\u043e\u043a \u043a\u043e\u0434\u0430.<\/p>\n<p>  Arduino \u043f\u0440\u043e\u0441\u0442\u043e \u043e\u0436\u0438\u0434\u0430\u0435\u0442, \u043a\u043e\u0433\u0434\u0430 \u0431\u0443\u0434\u0435\u0442 \u043d\u0430\u0436\u0430\u0442\u0430 \u043a\u043b\u0430\u0432\u0438\u0448\u0430, \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u0434\u043b\u044f \u0437\u0430\u043f\u0438\u0441\u0438 \u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438 \u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442 \u0441\u043a\u0440\u0438\u043f\u0442 Python, \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u044e \u043d\u0430 Dropbox \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c MMS.<\/p>\n<p>  \u0421\u043a\u0440\u0438\u043f\u0442 \u0442\u043e\u0436\u0435 \u043f\u0440\u043e\u0441\u0442\u043e\u0439.<\/p>\n<pre><code class=\"python\">import datetime import dropbox from twilio.rest import TwilioRestClient   dropbox_access_token = &quot;YOURDROPBOXTOKEN&quot; twilio_phone_number = &quot;YOURTWILIOPHONENUMBER&quot; twilio_account_sid = &quot;YOURTWILIOACCOUNTSID&quot; twilio_auth_token = &quot;YOURTWILIOAUTHTOKEN&quot; cellphone = 'YOURCELLPHONE'   timestamp = datetime.datetime.now().strftime(&quot;%h-%m-%S&quot;) filename = &quot;kaira-&quot; + timestamp + &quot;.jpg&quot;   f = open(&quot;\/mnt\/sda1\/pic.jpg&quot;) dropbox_client = dropbox.client.DropboxClient(dropbox_access_token) response = dropbox_client.put_file(filename, f) url = dropbox_client.media(response['path'])['url']   twilio_client = TwilioRestClient(twilio_account_sid, twilio_auth_token) twilio_client.messages.create(   to = cellphone,   from_ = twilio_phone_number,   body = &quot;Woof.&quot;,   media_url = url)<\/code><\/pre>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/geektimes.ru\/post\/247932\/\"> http:\/\/geektimes.ru\/post\/247932\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>     \t<img decoding=\"async\" src=\"\/\/habrastorage.org\/files\/634\/19a\/44b\/63419a44b81546a0b87b1b2d09e908b7.jpg\"\/><\/p>\n<p>  \u0418\u043d\u0436\u0435\u043d\u0435\u0440 \u0438 \u0441\u043e\u0431\u0430\u043a\u043e\u0432\u043e\u0434 \u0413\u0440\u0435\u0433 \u0411\u043e\u0433\u0435\u0441 (Greg Baugues) \u043d\u0430\u0442\u0440\u0435\u043d\u0438\u0440\u043e\u0432\u0430\u043b \u0441\u0432\u043e\u044e \u0441\u043e\u0431\u0430\u043a\u0443 \u041a\u0430\u0438\u0440\u0443 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u043c \u0442\u0440\u044e\u043a\u0430\u043c. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043e\u043d\u0430 \u0443\u043c\u0435\u0435\u0442 \u043f\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u0435 \u00ab\u0421\u0432\u0435\u0442!\u00bb \u0432\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u0441\u0432\u0435\u0442 \u0432 \u043a\u043e\u043c\u043d\u0430\u0442\u0435, \u043d\u0430\u0441\u0442\u0443\u043f\u0430\u044f \u043d\u0430 \u0432\u044b\u043a\u043b\u044e\u0447\u0430\u0442\u0435\u043b\u044c \u043d\u0430 \u043f\u043e\u043b\u0443.<\/p>\n<p>  \u041a\u043e\u0433\u0434\u0430 \u043f\u0451\u0441 \u043e\u0441\u0432\u043e\u0438\u043b \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0441\u0432\u0435\u0442\u0430, \u0413\u0440\u0435\u0433 \u0437\u0430\u0434\u0443\u043c\u0430\u043b\u0441\u044f \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u0435\u0449\u0451 \u0441\u043e\u0431\u0430\u043a\u0430 \u043c\u043e\u0436\u0435\u0442 \u0434\u0435\u043b\u0430\u0442\u044c \u043f\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u0435, \u043d\u0430\u0436\u0438\u043c\u0430\u044f \u043a\u043d\u043e\u043f\u043a\u0443.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-253913","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/253913","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=253913"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/253913\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=253913"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=253913"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=253913"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}