{"id":254528,"date":"2015-04-05T15:21:02","date_gmt":"2015-04-05T11:21:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=254528"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=254528","title":{"rendered":"MPCMeter \u2014 \u0438\u043d\u0434\u0438\u043a\u0430\u0446\u0438\u044f \u043f\u0440\u043e\u0433\u0440\u0435\u0441\u0441\u0430 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u0432\u0438\u0434\u0435\u043e. Arduino + JavaScript"},"content":{"rendered":"<br \/>\n<h4><b>\u0412\u043c\u0435\u0441\u0442\u043e \u0432\u0432\u0435\u0434\u0435\u043d\u0438\u044f<\/b><\/h4>\n<p>  \u0421\u043f\u0430\u0441\u0438\u0431\u043e \u043c\u043e\u0435\u043c\u0443 \u0430\u043d\u043e\u043d\u0438\u043c\u043d\u043e\u043c\u0443 \u0445\u0430\u0431\u0440\u0430\u0434\u0435\u0434\u0443\u043c\u043e\u0440\u043e\u0437\u0443 \u0437\u0430 <a href=\"http:\/\/habrahabr.ru\/post\/249843\/#comment_8278907\">\u043f\u043e\u0434\u0430\u0440\u043e\u0447\u0435\u043a<\/a> (<i>pro mini<\/i>). \u0414\u043e\u043b\u0433\u043e \u043a\u043e\u043b\u0435\u0431\u0430\u043b\u0441\u044f, \u0447\u0442\u043e \u0441 \u043d\u0435\u0439 \u0434\u0435\u043b\u0430\u0442\u044c. \u041c\u0430\u0445\u043d\u0443\u043b \u0440\u0443\u043a\u043e\u0439 \u0438 \u0437\u0430\u043a\u0430\u0437\u0430\u043b \u0432 \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043a\u0438\u0442\u0430\u0439\u0441\u043a\u0443\u044e \u043f\u043e\u0441\u044b\u043b\u043e\u0447\u043a\u0443\u2026<br \/>  \u0421\u043f\u0443\u0441\u0442\u044f \u043c\u0435\u0441\u044f\u0446\u043e\u043a \u043d\u0430\u0441\u0442\u0430\u043b\u043e \u0438 \u043c\u043e\u0451 \u0432\u0440\u0435\u043c\u044f \u201c\u043f\u043e\u043c\u0438\u0433\u0430\u0442\u044c \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434\u043e\u043c\u201d ;).  <\/p>\n<h4><b>\u0418\u0434\u0435\u044f<\/b><\/h4>\n<p>  \u041f\u043e\u043a\u0430 \u0435\u0445\u0430\u043b\u0430 \u043f\u043e\u0441\u044b\u043b\u043a\u0430, \u0434\u0443\u043c\u0430\u043b \u0447\u0442\u043e \u0431\u044b \u0442\u0430\u043a\u043e\u0433\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c. \u0412 \u0438\u0442\u043e\u0433\u0435 \u043f\u0440\u0438\u043d\u044f\u0442\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0447\u0442\u043e-\u043d\u0438\u0431\u0443\u0434\u044c \u0447\u0443\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435, \u0447\u0435\u043c \u043f\u043e\u043c\u0438\u0433\u0430\u0442\u044c \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434\u043e\u043c.<br \/>  \u0418\u0434\u0435\u044f \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u2014 \u043e\u0442\u043e\u0431\u0440\u0430\u0437\u0438\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0435\u0441\u0441 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u0432\u0438\u0434\u0435\u043e, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043a\u0430\u043a\u043e\u0439-\u043d\u0438\u0431\u0443\u0434\u044c \u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440.<br \/>  <img decoding=\"async\" src=\"\/\/habrastorage.org\/files\/7e6\/2f5\/257\/7e62f52570214eb5b2582ae3d681845f.png\"\/>  <\/p>\n<h4><b>\u0417\u0430\u0434\u0430\u0447\u0430<\/b><\/h4>\n<p>  <\/p>\n<ol>\n<li>\u0432\u044b\u0442\u0430\u0449\u0438\u0442\u044c \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0443 \u043f\u043e \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043d\u043e\u043c\u0443 \u0444\u0438\u043b\u044c\u043c\u0443;<\/li>\n<li>\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u0432 arduino \u0434\u0430\u043d\u043d\u044b\u0435;<\/li>\n<li>\u043e\u0442\u043e\u0431\u0440\u0430\u0437\u0438\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0435\u0441\u0441 \u043d\u0430 \u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440\u0435.<\/li>\n<\/ol>\n<p>  <\/p>\n<h4><b>\u0414\u043b\u044f \u043d\u0435\u0442\u0435\u0440\u043f\u0435\u043b\u0438\u0432\u044b\u0445 \u0441\u0440\u0430\u0437\u0443 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442<\/b><\/h4>\n<p>  <iframe loading=\"lazy\" width=\"560\" height=\"349\" src=\"\/\/www.youtube.com\/embed\/MEXRMDirKek?wmode=opaque\" frameborder=\"0\" allowfullscreen><\/iframe><br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h4><b>\u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f<\/b><\/h4>\n<p>  <\/p>\n<h5><b>1. MPC<\/b><\/h5>\n<p>  \u0421\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u0431\u044f \u043f\u043e\u043c\u043d\u044e, \u043d\u0430 \u041f\u041a \u0443 \u043c\u0435\u043d\u044f \u0432\u0441\u0435\u0433\u0434\u0430 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d <a href=\"https:\/\/mpc-hc.org\/\">Media PLayer Classic<\/a>. \u041e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f MPC \u0443\u043c\u0435\u0435\u0442 \u043e\u0442\u0434\u0430\u0432\u0430\u0442\u044c \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0443 \u043f\u043e, \u0441\u043a\u0430\u0436\u0435\u043c \u0442\u0430\u043a, \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u0441\u0435\u0441\u0441\u0438\u0438 \u0432 \u0432\u0438\u0434\u0435 html-\u0441\u0442\u0440\u0430\u043d\u0438\u0447\u043a\u0438 \u0441\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435\u043c:  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">HTML<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"html\">&lt;!DOCTYPE html&gt; &lt;html lang=&quot;en&quot;&gt;     &lt;head&gt;         &lt;meta charset=&quot;utf-8&quot;&gt;         &lt;title&gt;MPC-HC WebServer - Variables&lt;\/title&gt;         &lt;link rel=&quot;stylesheet&quot; href=&quot;default.css&quot;&gt;         &lt;link rel=&quot;icon&quot; href=&quot;favicon.ico&quot;&gt;     &lt;\/head&gt;     &lt;body&gt;         &lt;!--[if lt IE 8]&gt;             &lt;div class=&quot;browser-warning&quot;&gt;&lt;strong&gt;Warning!&lt;\/strong&gt; You are using an &lt;strong&gt;outdated&lt;\/strong&gt; browser. Please &lt;a href=&quot;http:\/\/browsehappy.com\/&quot;&gt;upgrade your browser&lt;\/a&gt; to improve your experience.&lt;\/div&gt;         &lt;![endif]--&gt;         &lt;p id=&quot;filepatharg&quot;&gt;D:%5cFILMS%5cIts.Always.Sunny.in.Philadelphia.S10E10.720p.WEB.rus.LostFilm.TV.mp4&lt;\/p&gt;         &lt;p id=&quot;filepath&quot;&gt;D:\\FILMS\\Its.Always.Sunny.in.Philadelphia.S10E10.720p.WEB.rus.LostFilm.TV.mp4&lt;\/p&gt;         &lt;p id=&quot;filedirarg&quot;&gt;D:%5cFILMS&lt;\/p&gt;         &lt;p id=&quot;filedir&quot;&gt;D:\\FILMS&lt;\/p&gt;         &lt;p id=&quot;state&quot;&gt;1&lt;\/p&gt;         &lt;p id=&quot;statestring&quot;&gt;\u041f\u0430\u0443\u0437\u0430&lt;\/p&gt;         &lt;p id=&quot;position&quot;&gt;1069384&lt;\/p&gt;         &lt;p id=&quot;positionstring&quot;&gt;00:17:49&lt;\/p&gt;         &lt;p id=&quot;duration&quot;&gt;1255210&lt;\/p&gt;         &lt;p id=&quot;durationstring&quot;&gt;00:20:55&lt;\/p&gt;         &lt;p id=&quot;volumelevel&quot;&gt;75&lt;\/p&gt;         &lt;p id=&quot;muted&quot;&gt;0&lt;\/p&gt;         &lt;p id=&quot;playbackrate&quot;&gt;1&lt;\/p&gt;         &lt;p id=&quot;reloadtime&quot;&gt;0&lt;\/p&gt;     &lt;\/body&gt; &lt;\/html&gt; <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0427\u0442\u043e \u0431\u044b \u0434\u043e\u0431\u0438\u0442\u044c\u0441\u044f \u043e\u0442 \u043d\u0435\u0433\u043e \u0442\u0430\u043a\u043e\u0433\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u0430, \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0433\u0430\u043b\u043e\u0447\u043a\u0443 &quot;<b>\u0421\u043b\u0443\u0448\u0430\u0442\u044c \u043f\u043e\u0440\u0442<\/b>&quot; \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438<\/b><\/p>\n<div class=\"spoiler_text\"><img decoding=\"async\" src=\"\/\/habrastorage.org\/files\/240\/7fc\/cae\/2407fccae9134125bb35900dc6689c09.png\"\/>  <\/div>\n<\/div>\n<p>  \u0412\u0441\u0451 \u0441\u0430\u043c\u043e\u0435 \u0432\u0430\u0436\u043d\u043e\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442\u0441\u044f \u0432 \u0442\u0435\u0433\u0430\u0445   <\/p>\n<pre><code class=\"html\">&lt;p id=&quot;\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440&quot;&gt;\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435&lt;\/p&gt;<\/code><\/pre>\n<p>  \u041e\u0441\u0442\u0430\u0451\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c \u0438\u0445 \u0438 \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u043d\u0443\u0436\u043d\u043e\u0435.  <\/p>\n<h5><b>2. NodeJS<\/b><\/h5>\n<p>  \u0420\u0430\u0437\u0431\u0438\u0440\u0430\u0442\u044c \u0441\u0442\u0440\u0430\u043d\u0438\u0447\u043a\u0443 \u0431\u0443\u0434\u0435\u043c \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 NodeJS. \u041a\u0441\u0442\u0430\u0442\u0438, \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430 \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443 <a href=\"http:\/\/localhost\">localhost<\/a>:13580\/variables.html (\u043f\u043e\u0440\u0442 \u0438\u0437 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a).<br \/>  \u0412\u0441\u044e \u043b\u043e\u0433\u0438\u043a\u0443 \u043c\u043e\u0436\u043d\u043e \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u044c \u043d\u0430 3 \u0431\u043b\u043e\u043a\u0430:  <\/p>\n<ul>\n<li>\u043c\u043e\u0434\u0443\u043b\u044c \u0440\u0430\u0431\u043e\u0442\u044b \u0441 MPC web-\u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c;<\/li>\n<li>\u043c\u043e\u0434\u0443\u043b\u044c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0434\u0430\u043d\u043d\u044b\u0445;<\/li>\n<li>\u043c\u043e\u0434\u0443\u043b\u044c \u0440\u0430\u0431\u043e\u0442\u044b \u0441 arduino.<\/li>\n<\/ul>\n<p>  \u0414\u0430\u043b\u0435\u0435 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u043c\u043e\u043c\u0435\u043d\u0442\u044b. \u0412\u0435\u0441\u044c \u043f\u0440\u043e\u0435\u043a\u0442 \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 \u043a\u043e\u0434\u043e\u043c \u043c\u043e\u0436\u043d\u043e \u0433\u043b\u044f\u043d\u0443\u0442\u044c \u043d\u0430 <img decoding=\"async\" src=\"https:\/\/camo.githubusercontent.com\/806d7474538d8e9f0b951ffea14cf9352985bc40\/687474703a2f2f63646e312e69636f6e66696e6465722e636f6d2f646174612f69636f6e732f4b6579616d6f6f6e2d49636f4d6f6f6e2d2d6c696d697465642f31362f6769746875622d6361742e706e67\" alt=\"image\"\/><a href=\"https:\/\/github.com\/andreevich\/MPCMeter\">github<\/a>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041d\u0435\u043c\u043d\u043e\u0433\u043e js<\/b><\/p>\n<div class=\"spoiler_text\">\u041f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u0440\u043e\u0434\u043d\u043e\u0433\u043e http.get \u0438 \u043e\u0431\u0435\u0449\u0430\u043d\u0438\u0439 \u043e\u0431\u0440\u0430\u0449\u0430\u044e\u0441\u044c \u043a \u043d\u0430\u0448\u0435\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435  <\/p>\n<pre><code class=\"javascript\">main.prototype.get = function(){ \tvar that = this \treturn new Promise(function(done){ \t\thttp.get(that.mpc_uri, function(res) { \t\t  res.on('data', function (chunk) { \t\t\tthat.mpc_obj.parse(chunk) \t\t\tdone(that.mpc_obj.get()); \t\t  }); \t\t}).on('error', function(e) { \t\t\tdone(e.message); \t\t}); \t}) } <\/code><\/pre>\n<p>  \u041c\u0435\u0442\u043e\u0434\u043e\u043c parse \u043e\u0431\u044a\u0435\u043a\u0442\u0430 mpc_obj \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u044e \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435  <\/p>\n<pre><code class=\"javascript\">MPC_obj.prototype.parse = function(data){ \tvar obj = {} \tdata.toString().split('\\n').forEach(function(line){ \t\t\/\/ \u043e\u0442\u0431\u0438\u0440\u0430\u0435\u043c \u043f\u0430\u0440\u0430\u0433\u0440\u0430\u0444\u044b, \u0442\u0430\u043a \u043a\u0430\u043a \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u043d\u0438\u0445 \t\tif (match=\/\\&lt;p\/.test(line)){ \t\t\tvar name2 = line.match(\/id\\=\\&quot;(\\w+)\\&quot;\/)[1] \t\t\tif (!obj.hasOwnProperty(name2)) \t\t\t\t obj[name2]=line.substring(line.indexOf('&gt;')+1,line.lastIndexOf('&lt;')) \t\t} \t}) \tthis.settings=obj; } <\/code><\/pre>\n<p>  \u041d\u0430 \u0432\u044b\u0445\u043e\u0434\u0435 \u0438\u043c\u0435\u0435\u043c \u0432\u043e\u0442 \u0442\u0430\u043a\u043e\u0439 \u043e\u0431\u044a\u0435\u043a\u0442  <\/p>\n<pre><code class=\"javascript\">{ filepatharg: 'D:%5cmbrr555.avi',   filepath: 'D:\\\\mbrr555.avi',   filedirarg: 'D:%5c',   filedir: 'D:\\\\',   state: '1',   statestring: '\u041f\u0430\u0443\u0437\u0430',   position: '1023',   positionstring: '00:00:01',   duration: '114906',   durationstring: '00:01:54',   volumelevel: '77',   muted: '0',   playbackrate: '1',   reloadtime: '0' } <\/code><\/pre>\n<p>  \u041f\u043e\u0434\u0433\u043e\u0442\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u0434\u043b\u044f arduino  <\/p>\n<pre><code class=\"javascript\">\/\/ \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043f\u0440\u043e\u0433\u0440\u0435\u0441\u0441 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u043d\u043e\u0433\u043e MPC_obj.prototype.getProgress = function(){ \treturn (this.settings[&quot;position&quot;]\/this.settings[&quot;duration&quot;]).toFixed(5) } \/\/ \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043f\u0440\u043e\u0433\u0440\u0435\u0441\u0441 \u0434\u043b\u044f \u0428\u0418\u041c (PWM) \t1,0 -&gt; 255 MPC_obj.prototype.PWM = function(){ \treturn (this.getProgress()*255).toFixed(0) } <\/code><\/pre>\n<p>  \u041e\u0431\u0449\u0435\u043d\u0438\u0435 \u0441 arduino \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043f\u0443\u0442\u0451\u043c \u043e\u0431\u043c\u0435\u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u043d\u0430 com-\u043f\u043e\u0440\u0442\u0443. \u0414\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 com \u0432\u044b\u0431\u0440\u0430\u043b \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 <img decoding=\"async\" src=\"https:\/\/camo.githubusercontent.com\/806d7474538d8e9f0b951ffea14cf9352985bc40\/687474703a2f2f63646e312e69636f6e66696e6465722e636f6d2f646174612f69636f6e732f4b6579616d6f6f6e2d49636f4d6f6f6e2d2d6c696d697465642f31362f6769746875622d6361742e706e67\" alt=\"image\"\/><a href=\"https:\/\/github.com\/voodootikigod\/node-serialport\">node-serialport <\/a><br \/>  \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u0441\u044f \u0441 \u0435\u0451 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a \u043f\u043e\u0440\u0442\u0443 com5 \u0438 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c   <\/p>\n<pre><code class=\"javascript\">var SerialPort = require('serialport').SerialPort; var serialPort = new SerialPort(&quot;COM5&quot;, {   baudrate: 57600 }, false); <\/code><\/pre>\n<p>  \u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u043f\u043e\u0440\u0442 \u0438 \u043f\u043e\u0441\u044b\u043b\u0430\u0435\u043c \u0432 \u043e\u0442\u0432\u0435\u0442 arduino \u043d\u0430\u0448 \u043f\u0440\u043e\u0433\u0440\u0435\u0441\u0441 \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437, \u043a\u043e\u0433\u0434\u0430 \u043e\u043d\u0430 \u043f\u043e\u043f\u0440\u043e\u0441\u0438\u0442  <\/p>\n<pre><code class=\"javascript\">serialPort.open(function (error) { \tif ( error ) { \t\tconsole.log('failed to open: '+error);    } else { \tconsole.log('open'); \t\/\/\u043f\u043e\u043b\u0443\u0447\u0438\u043b \u0434\u0430\u043d\u043d\u044b\u0435 \u043e\u0442 arduino \tserialPort.on('data', function(data) { \t\tmain.init(function(a){ \t\t\t\/\/\u043f\u043e\u0441\u043b\u0430\u043b \u0432 \u043e\u0442\u0432\u0435\u0442 \u043f\u0440\u043e\u0433\u0440\u0435\u0441\u0441 \u0444\u0438\u043b\u044c\u043c\u0430 \t\t\tserialPort.write(a); \t\t}); \t }); \t} }); <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <\/p>\n<h5><b>3. Arduino<\/b><\/h5>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0436\u0435\u043b\u0435\u0437\u043e. \u0414\u0430\u043d\u043d\u044b\u0435 \u0434\u043b\u044f arduino \u043c\u044b \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u043b\u0438, \u0442\u0435\u043f\u0435\u0440\u044c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043c\u0441\u044f \u0441 \u0442\u043e\u0439 \u0441\u0430\u043c\u043e\u0439 \u0438\u043d\u0434\u0438\u043a\u0430\u0446\u0438\u0435\u0439. \u0414\u043b\u044f \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0433\u0440\u0435\u0441\u0441\u0430 \u044f \u0432\u044b\u0431\u0440\u0430\u043b \u0432\u043e\u0442 \u0442\u0430\u043a\u043e\u0439 \u043e\u0447\u0435\u043d\u044c \u0434\u0435\u0448\u0451\u0432\u044b\u0439 \u043c\u043e\u0434\u0443\u043b\u044c \u0432\u043e\u043b\u044c\u0442\u043c\u0435\u0442\u0440\u0430 \u0438 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0435\u0433\u043e \u00ab\u043f\u043e\u0434\u043a\u0440\u0430\u0441\u0438\u043b\u00bb<br \/>  <img decoding=\"async\" src=\"\/\/habrastorage.org\/files\/cb2\/c87\/17c\/cb2c8717c58341609195f17c40cfcff4.png\"\/>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0427\u0443\u0442\u044c \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0439<\/b><\/p>\n<div class=\"spoiler_text\">\u041e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f, \u043a\u0440\u044b\u0448\u043a\u0430 \u0434\u0435\u0440\u0436\u0430\u043b\u0430\u0441\u044c \u043d\u0430\u2026 \u043b\u0438\u043f\u043a\u043e\u0439 \u043b\u0435\u043d\u0442\u0435 \u0438 \u043b\u0435\u0433\u043a\u043e \u0441\u043d\u0438\u043c\u0430\u043b\u0430\u0441\u044c<br \/>  <img decoding=\"async\" src=\"\/\/habrastorage.org\/files\/b1b\/57c\/836\/b1b57c836b1f4384b3fdcba585328ede.png\"\/><br \/>  \u041d\u0443 \u0430 \u0434\u0430\u043b\u0435\u0435 \u0440\u0430\u0437\u043c\u0435\u0440\u044b \u0438 \u043f\u0430\u0440\u0430 \u043d\u043e\u0432\u044b\u0445 \u043f\u0430\u043d\u0435\u043b\u0435\u043a<br \/>  <img decoding=\"async\" src=\"\/\/habrastorage.org\/files\/7ad\/b29\/f46\/7adb29f46d4d477a95f95dff0886a9ac.png\"\/>  <\/div>\n<\/div>\n<p>  \u0412 arduino \u043c\u044b \u043f\u043e\u0441\u044b\u043b\u0430\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u043e \u043f\u0440\u043e\u0433\u0440\u0435\u0441\u0441\u0435 \u0444\u0438\u043b\u044c\u043c\u0430 \u0438 \u043f\u0440\u043e\u043f\u043e\u0440\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u043c \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u0435 \u043d\u0430 \u043e\u0434\u043d\u043e\u0439 \u0438\u0437 \u043d\u043e\u0433 \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430. \u041f\u0440\u0438\u043d\u0446\u0438\u043f\u0438\u0430\u043b\u044c\u043d\u0430\u044f \u0441\u0445\u0435\u043c\u0430 (\u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434\u0430 \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0431\u044b \u0438\u043c \u043f\u043e\u043c\u0438\u0433\u0430\u0442\u044c \u0432 \u043a\u043e\u043d\u0446\u0435 \u0441\u0435\u0430\u043d\u0441\u0430 ;))<br \/>  <img decoding=\"async\" src=\"\/\/habrastorage.org\/files\/496\/a1f\/5e2\/496a1f5e255a4f8abfa0ab81c8099eac.png\"\/><br \/>  \u0422\u0435\u043f\u0435\u0440\u044c \u0437\u0430\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u0443\u0435\u043c \u043d\u0430\u0448 \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440.<br \/>  \u0412 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e inByte \u0431\u0443\u0434\u0435\u043c \u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435, \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0435 \u043f\u043e com-\u043f\u043e\u0440\u0442\u0443. \u0412\u0435\u0448\u0430\u0435\u043c \u043d\u0430 3\u0439 \u043f\u0438\u043d \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434, \u0430 \u043d\u0430 9\u0439 \u2014 \u0432\u043e\u043b\u044c\u0442\u043c\u0435\u0442\u0440. \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0442\u043e\u0447\u043d\u043e \u0442\u0430\u043a\u0443\u044e \u0436\u0435 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u043a\u0430\u043a \u0438 \u0440\u0430\u043d\u044c\u0448\u0435. loop \u2014 \u043d\u0430\u0448 \u0431\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u044b\u0439 \u0446\u0438\u043a\u043b. \u041a\u0430\u0436\u0434\u044b\u0435 100\u043c\u0441 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u043f\u043e\u0440\u0442 \u0430\u0431\u0441\u0442\u0440\u0430\u043a\u0442\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 Serial.print(&#8216;A&#8217;). \u0416\u0434\u0451\u043c \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u043e\u0442\u0432\u0435\u0442\u0430 Serial.available() &gt; 0. \u0415\u0441\u043b\u0438 \u043d\u0430 \u041f\u041a \u0437\u0430\u043f\u0443\u0449\u0435\u043d MPC \u0438 nodeJS-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043f\u0440\u043e\u0433\u0440\u0435\u0441\u0441, \u0442\u043e \u0447\u0443\u0442\u044c \u043f\u043e\u0434\u0441\u0432\u0435\u0442\u0438\u043c \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434 \u043d\u0430 3\u043c \u043f\u0438\u043d\u0435 analogWrite(3, 5) \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0434\u0438\u043c \u043d\u0430 9\u0439 \u043f\u0438\u043d \u0432\u043e\u043b\u044c\u0442\u043c\u0435\u0442\u0440\u0430 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0433\u0440\u0435\u0441\u0441\u0430 analogWrite(9, inByte). \u0424\u0443\u043d\u043a\u0446\u0438\u044f analogWrite \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043e\u0442 0 \u0434\u043e 255, \u0447\u0442\u043e \u0432 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u043e\u0442 0\u0412 \u0434\u043e 5\u0412. \u0422\u0443\u0442 \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u043f\u0440\u043e <a href=\"http:\/\/arduino.ru\/Tutorial\/PWM\">\u0428\u0418\u041c (PWM) <\/a> \u2014 \u044d\u0442\u043e \u0432\u0441\u0451 \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u0435\u043c\u0443.<br \/>  \u041a\u043e\u0433\u0434\u0430 \u043c\u044b \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u043b\u0438 \u043f\u043e\u043b\u043e\u0432\u0438\u043d\u0443 \u0444\u0438\u043b\u044c\u043c\u0430, \u0432 \u044d\u0442\u043e\u0442 \u043c\u043e\u043c\u0435\u043d\u0442 \u043d\u0430 9\u0439 \u043f\u0438\u043d \u0431\u0443\u0434\u0435\u0442 \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u043e 255\/2 = analogWrite(9, 127), \u0447\u0442\u043e \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 2,5\u0412 \u043d\u0430 \u0432\u043e\u043b\u044c\u0442\u043c\u0435\u0442\u0440\u0435. \u041a\u0430\u043a \u0442\u043e\u043b\u044c\u043a\u043e \u0444\u0438\u043b\u044c\u043c \u0437\u0430\u043a\u043e\u043d\u0447\u0435\u043d \u2014 \u0431\u043e\u0434\u0440\u0435\u043d\u044c\u043a\u043e \u043c\u0438\u0433\u0430\u0435\u043c \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434\u043e\u043c \ud83d\ude09  <\/p>\n<pre><code class=\"cpp\">int inByte = 0;   void setup()  {   pinMode(9, OUTPUT);   pinMode(3, OUTPUT);   analogWrite(3, 0);   analogWrite(9, 0);   Serial.begin(57600); }  void loop()  {   Serial.print('A');   delay(100);     if (Serial.available() &gt; 0) {     analogWrite(3, 5);     inByte = Serial.parseInt();     analogWrite(9, inByte);     if (inByte==255)     analogWrite(3, 255);   } } <\/code><\/pre>\n<p>  \u0412\u043e\u0442 \u0442\u0430\u043a \u044d\u0442\u043e \u0432\u0441\u0451 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0432 \u0436\u0438\u0432\u0443\u044e \u043d\u0430 \u043c\u0430\u043a\u0435\u0442\u043a\u0435<br \/>  <img decoding=\"async\" src=\"\/\/habrastorage.org\/files\/fa4\/b77\/813\/fa4b778139cf456c8002e68dbb2c8a27.png\"\/><br \/>  \u0434\u0430 \u0435\u0449\u0451 \u0438 \u043d\u0430 \u0432\u0438\u0434\u0435\u043e \ud83d\ude09<br \/>  <iframe loading=\"lazy\" width=\"560\" height=\"349\" src=\"\/\/www.youtube.com\/embed\/MEXRMDirKek?wmode=opaque\" frameborder=\"0\" allowfullscreen><\/iframe><br \/>  \u041a\u0441\u0442\u0430\u0442\u0438 \u0432 \u044d\u0442\u043e\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d \u043a\u0430\u043a \u0440\u0430\u0437 <a href=\"http:\/\/habrahabr.ru\/post\/249843\/#comment_8278907\">\u043f\u043e\u0434\u0430\u0440\u043e\u0447\u0435\u043a<\/a> \u043e\u0442 \u0442\u043e\u0433\u043e \u0441\u0430\u043c\u043e\u0433\u043e \u0445\u0430\u0431\u0440\u0430\u0434\u0435\u0434\u0430\u043c\u043e\u0440\u043e\u0437\u0430.<br \/>  PS. <br \/>  \u0420\u044f\u0434\u043e\u043c \u043b\u0435\u0436\u0438\u0442 Attiny13, \u043a\u0430\u043a \u0432\u0440\u0435\u043c\u044f \u0431\u0443\u0434\u0435\u0442 \u2014 \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u044e \u043f\u0435\u0440\u0435\u043d\u0435\u0441\u0442\u0438 \u0432\u0441\u0451 \u043d\u0430 \u043d\u0435\u0451.<br \/>  \u0421\u0441\u044b\u043b\u043a\u0438:  <\/p>\n<ul>\n<li><a href=\"http:\/\/habrahabr.ru\/post\/249843\/#comment_8278907\">\u043f\u043e\u0434\u0430\u0440\u043e\u0447\u0435\u043a \u043e\u0442 \u0445\u0430\u0431\u0440\u0430\u0434\u0435\u0434\u0430\u043c\u043e\u0440\u043e\u0437\u0430<\/a>;<\/li>\n<li><a href=\"https:\/\/mpc-hc.org\/\">Media PLayer Classic<\/a>;<\/li>\n<li><a href=\"https:\/\/github.com\/andreevich\/MPCMeter\">\u0412\u0435\u0441\u044c \u043f\u0440\u043e\u0435\u043a\u0442 \u043d\u0430 github<\/a>;<\/li>\n<li><a href=\"https:\/\/github.com\/voodootikigod\/node-serialport\">\u043c\u043e\u0434\u0443\u043b\u044c \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 com-\u043f\u043e\u0440\u0442\u043e\u043c node-serialport<\/a>;<\/li>\n<li><a href=\"http:\/\/arduino.ru\/Tutorial\/PWM\">\u043f\u0440\u043e \u0428\u0418\u041c (PWM) <\/a>;<\/li>\n<li><a href=\"https:\/\/nodejs.org\">\u0441\u0432\u0435\u0436\u0435\u043d\u044c\u043a\u0438\u0439 NodeJS<\/a>;<\/li>\n<li><a href=\"http:\/\/arduino.cc\/en\/Main\/Software\">Arduino IDE<\/a>.<\/li>\n<\/ul>\n<p>  \u0415\u0441\u043b\u0438 \u0433\u0434\u0435-\u0442\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u043f\u043e\u043b\u043d\u0443\u044e \u0435\u0440\u0443\u043d\u0434\u0443 \u0438\u043b\u0438 \u043e\u0448\u0438\u0431\u0441\u044f \u2014 \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0439\u0442\u0435, \u043f\u043e\u0434\u043f\u0440\u0430\u0432\u043b\u044e ;). \u0421\u043f\u0430\u0441\u0438\u0431\u043e \u0437\u0430 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435.     \t<\/p>\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:\/\/habrahabr.ru\/post\/254911\/\"> http:\/\/habrahabr.ru\/post\/254911\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<br \/>\n<h4><b>\u0412\u043c\u0435\u0441\u0442\u043e \u0432\u0432\u0435\u0434\u0435\u043d\u0438\u044f<\/b><\/h4>\n<p>  \u0421\u043f\u0430\u0441\u0438\u0431\u043e \u043c\u043e\u0435\u043c\u0443 \u0430\u043d\u043e\u043d\u0438\u043c\u043d\u043e\u043c\u0443 \u0445\u0430\u0431\u0440\u0430\u0434\u0435\u0434\u0443\u043c\u043e\u0440\u043e\u0437\u0443 \u0437\u0430 <a href=\"http:\/\/habrahabr.ru\/post\/249843\/#comment_8278907\">\u043f\u043e\u0434\u0430\u0440\u043e\u0447\u0435\u043a<\/a> (<i>pro mini<\/i>). \u0414\u043e\u043b\u0433\u043e \u043a\u043e\u043b\u0435\u0431\u0430\u043b\u0441\u044f, \u0447\u0442\u043e \u0441 \u043d\u0435\u0439 \u0434\u0435\u043b\u0430\u0442\u044c. \u041c\u0430\u0445\u043d\u0443\u043b \u0440\u0443\u043a\u043e\u0439 \u0438 \u0437\u0430\u043a\u0430\u0437\u0430\u043b \u0432 \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043a\u0438\u0442\u0430\u0439\u0441\u043a\u0443\u044e \u043f\u043e\u0441\u044b\u043b\u043e\u0447\u043a\u0443\u2026<br \/>  \u0421\u043f\u0443\u0441\u0442\u044f \u043c\u0435\u0441\u044f\u0446\u043e\u043a \u043d\u0430\u0441\u0442\u0430\u043b\u043e \u0438 \u043c\u043e\u0451 \u0432\u0440\u0435\u043c\u044f \u201c\u043f\u043e\u043c\u0438\u0433\u0430\u0442\u044c \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434\u043e\u043c\u201d ;).  <\/p>\n<h4><b>\u0418\u0434\u0435\u044f<\/b><\/h4>\n<p>  \u041f\u043e\u043a\u0430 \u0435\u0445\u0430\u043b\u0430 \u043f\u043e\u0441\u044b\u043b\u043a\u0430, \u0434\u0443\u043c\u0430\u043b \u0447\u0442\u043e \u0431\u044b \u0442\u0430\u043a\u043e\u0433\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c. \u0412 \u0438\u0442\u043e\u0433\u0435 \u043f\u0440\u0438\u043d\u044f\u0442\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0447\u0442\u043e-\u043d\u0438\u0431\u0443\u0434\u044c \u0447\u0443\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435, \u0447\u0435\u043c \u043f\u043e\u043c\u0438\u0433\u0430\u0442\u044c \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434\u043e\u043c.<br \/>  \u0418\u0434\u0435\u044f \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u2014 \u043e\u0442\u043e\u0431\u0440\u0430\u0437\u0438\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0435\u0441\u0441 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u0432\u0438\u0434\u0435\u043e, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043a\u0430\u043a\u043e\u0439-\u043d\u0438\u0431\u0443\u0434\u044c \u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440.<br \/>  <img decoding=\"async\" src=\"\/\/habrastorage.org\/files\/7e6\/2f5\/257\/7e62f52570214eb5b2582ae3d681845f.png\"\/>  <\/p>\n<h4><b>\u0417\u0430\u0434\u0430\u0447\u0430<\/b><\/h4>\n<p>  <\/p>\n<ol>\n<li>\u0432\u044b\u0442\u0430\u0449\u0438\u0442\u044c \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0443 \u043f\u043e \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043d\u043e\u043c\u0443 \u0444\u0438\u043b\u044c\u043c\u0443;<\/li>\n<li>\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u0432 arduino \u0434\u0430\u043d\u043d\u044b\u0435;<\/li>\n<li>\u043e\u0442\u043e\u0431\u0440\u0430\u0437\u0438\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0435\u0441\u0441 \u043d\u0430 \u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440\u0435.<\/li>\n<\/ol>\n<p>  <\/p>\n<h4><b>\u0414\u043b\u044f \u043d\u0435\u0442\u0435\u0440\u043f\u0435\u043b\u0438\u0432\u044b\u0445 \u0441\u0440\u0430\u0437\u0443 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442<\/b><\/h4>\n<p>  <iframe loading=\"lazy\" width=\"560\" height=\"349\" src=\"\/\/www.youtube.com\/embed\/MEXRMDirKek?wmode=opaque\" frameborder=\"0\" allowfullscreen><\/iframe>  <\/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-254528","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/254528","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=254528"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/254528\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=254528"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=254528"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=254528"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}