{"id":301743,"date":"2020-04-13T09:00:12","date_gmt":"2020-04-13T09:00:12","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=301743"},"modified":"-0001-11-30T00:00:00","modified_gmt":"2020-04-13T09:00:12","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=301743","title":{"rendered":"\u0414\u0435\u043b\u0430\u0435\u043c \u0443\u043c\u043d\u044b\u0439 \u0434\u043e\u043c \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 ASP.NET Core \u0438 Arduino"},"content":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/496920\/\">\n<p>\u0412\u043e \u0432\u0440\u0435\u043c\u044f \u043a\u0430\u0440\u0430\u043d\u0442\u0438\u043d\u0430 \u043f\u043e\u044f\u0432\u0438\u043b\u043e\u0441\u044c \u043c\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0437\u0430\u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u043f\u043e\u0442\u0440\u0430\u0442\u0438\u0442\u044c \u0441 \u043f\u043e\u043b\u044c\u0437\u043e\u0439 \u0438 \u0437\u0430\u043a\u0440\u0435\u043f\u0438\u0442\u044c \u0441\u0432\u043e\u0438 \u0437\u043d\u0430\u043d\u0438\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0435 \u0438\u0437 \u0440\u0430\u0437\u043d\u044b\u0445 \u0441\u0444\u0435\u0440, \u0438\u0437 \u044d\u0442\u043e\u0433\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0441\u044f \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043f\u0440\u043e\u0435\u043a\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441 \u043b\u0451\u0433\u043a\u043e\u0441\u0442\u044c\u044e \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c \u043b\u044e\u0431\u043e\u0439 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a.<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/um\/fr\/nm\/umfrnmkjvnq8fulmpfowff6rpyk.jpeg\" alt=\"image\"\/><\/p>\n<p><a name=\"habracut\"><\/a>  <\/p>\n<p>\u042f \u0441\u0442\u0443\u0434\u0435\u043d\u0442, \u0436\u0438\u0432\u0443 \u0432 \u043e\u0431\u0449\u0435\u0436\u0438\u0442\u0438\u0438. \u0412 \u043a\u043e\u043c\u043d\u0430\u0442\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0441 \u043c\u0438\u043a\u0440\u043e-\u043a\u043b\u0438\u043c\u0430\u0442\u043e\u043c: \u0442\u043e \u0436\u0430\u0440\u043a\u043e, \u0442\u043e \u0445\u043e\u043b\u043e\u0434\u043d\u043e, \u0442\u043e \u0432\u043e\u0437\u0434\u0443\u0445\u0430 \u043d\u0435 \u0445\u0432\u0430\u0442\u0430\u0435\u0442, \u0430 \u0434\u043b\u044f \u043a\u043e\u043c\u0444\u043e\u0440\u0442\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b \u0438 \u0443\u0447\u0451\u0431\u044b \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0436\u0438\u0442\u044c \u0432 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u0445 \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u0445. <\/p>\n<p>  <\/p>\n<p>\u0418\u0442\u0430\u043a, \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u043c.<\/p>\n<p>  <\/p>\n<h2 id=\"neobhodimyy-minimum\">\u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0439 \u043c\u0438\u043d\u0438\u043c\u0443\u043c<\/h2>\n<p>  <\/p>\n<p>\u0412 \u0443\u0433\u043b\u0443 \u0437\u0430\u0432\u0430\u043b\u044f\u043b\u0441\u044f \u0441\u0442\u0430\u0440\u044b\u0439, \u043d\u043e \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043c\u043e\u0449\u043d\u044b\u0439 \u0432\u0435\u043d\u0442\u0438\u043b\u044f\u0442\u043e\u0440.<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/o9\/_g\/fs\/o9_gfsimhqzoyykonnsbknmld5a.jpeg\" alt=\"image\"\/><\/p>\n<p>  <\/p>\n<p>\u0422\u0430\u043a\u0436\u0435 \u0435\u0441\u0442\u044c Arduino Uno, \u043e\u0441\u0442\u0430\u0432\u0448\u0430\u044f\u0441\u044f \u0441\u043e \u0448\u043a\u043e\u043b\u044c\u043d\u044b\u0445 \u0432\u0440\u0435\u043c\u0435\u043d. <\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/pi\/1_\/t9\/pi1_t9fver8upz-du4jhtdnlhoc.jpeg\" alt=\"image\"\/><\/p>\n<p>  <\/p>\n<p>\u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043a\u0443\u043f\u0438\u043b \u0434\u0430\u0442\u0447\u0438\u043a \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b \u0438 \u0432\u043b\u0430\u0436\u043d\u043e\u0441\u0442\u0438, \u0440\u0435\u043b\u0435-\u043c\u043e\u0434\u0443\u043b\u0438. \u0414\u043b\u044f \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043f\u0440\u0438\u043d\u044f\u0442\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0430\u0440\u0435\u043d\u0434\u043e\u0432\u0430\u0442\u044c VPS \u043d\u0430 Centos 7. <\/p>\n<p>  <\/p>\n<h2 id=\"razrabotka\">\u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430<\/h2>\n<p>  <\/p>\n<p>\u041f\u0438\u0448\u0435\u043c \u0441\u043a\u0435\u0442\u0447 \u0434\u043b\u044f Arduino. \u041e\u043d \u0443\u043c\u0435\u0435\u0442 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0441 \u0434\u0430\u0442\u0447\u0438\u043a\u0430 \u0438 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u0441 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430. <\/p>\n<p>  <\/p>\n<pre><code class=\"cpp\">  #include &lt;Adafruit_GFX.h&gt;   #include &lt;Adafruit_PCD8544.h&gt;   #include &quot;DHT.h&quot;   #define DHTPIN 2 \/\/ \u043d\u043e\u043c\u0435\u0440 \u043f\u0438\u043d\u0430, \u043a \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u043f\u043e\u0434\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d \u0434\u0430\u0442\u0447\u0438\u043a   int fanPin = 3;   byte incomingByte;   DHT dht(DHTPIN, DHT22);    void setup() {     pinMode(fanPin, OUTPUT);     Serial.begin(9600);     dht.begin();   }    void loop() {     \/\/ \u0417\u0430\u0434\u0435\u0440\u0436\u043a\u0430 2 \u0441\u0435\u043a\u0443\u043d\u0434\u044b \u043c\u0435\u0436\u0434\u0443 \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f\u043c\u0438     delay(2000);     \/\/\u0421\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u043c \u0432\u043b\u0430\u0436\u043d\u043e\u0441\u0442\u044c     float h = dht.readHumidity();     \/\/ \u0421\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u043c \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0443     float t = dht.readTemperature();     \/\/ \u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0443\u0434\u0430\u0447\u043d\u043e \u043f\u0440\u043e\u0448\u043b\u043e \u043b\u0438 \u0441\u0447\u0438\u0442\u044b\u0432\u0430\u043d\u0438\u0435.     if (isnan(h) || isnan(t)) {       Serial.println(&quot;\u041d\u0435 \u0443\u0434\u0430\u0435\u0442\u0441\u044f \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u0438\u044f&quot;);       return;     }       Serial.print(&quot; &quot;);     Serial.print( h );     Serial.print(&quot; &quot;);     Serial.print(t);     Serial.print(&quot; \\n&quot;);      if (Serial.available() &gt; 0) {       incomingByte = Serial.read();        if(incomingByte == '0'){         digitalWrite(fanPin, HIGH);       }       else if (incomingByte == '1'){         digitalWrite(fanPin, LOW);        }         Serial.print(&quot;I received: &quot;);         Serial.println(incomingByte, DEC);     }   }<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043f\u0438\u0448\u0435\u043c \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0443\u044e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u043d\u0430 ASP.Net \u0421ore \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u0441 Arduino \u0438 \u043f\u0438\u0448\u0435\u0442 \u0438\u0445 \u0432 \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445. \u0410 \u0442\u0430\u043a\u0436\u0435 \u0447\u0438\u0442\u0430\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u0437 \u0411\u0414, \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \/ \u043e\u0442\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0440\u0435\u043b\u0435-\u043c\u043e\u0434\u0443\u043b\u0438 \u0447\u0435\u0440\u0435\u0437 Arduino.<\/p>\n<p>  <\/p>\n<pre><code class=\"cs\">        public void Program()         { weatherContext db = new weatherContext();             var serialPort = new SerialPort(&quot;COM3&quot;)             {                 BaudRate = 9600,                 Parity = Parity.None,                 StopBits = StopBits.One,                 DataBits = 8,                 Handshake = Handshake.None             };             serialPort.Open();             var reg = new Regex(@&quot;[0-9]{2}\\.[0-9]{2}\\s[0-9]{2}\\.[0-9]{2}&quot;);              List&lt;DeviceDTO&gt; deviceDTOs = new List&lt;DeviceDTO&gt;();             var userDevices = db.UserDevices.Where(d =&gt; d.UserId == 0);             foreach (var userDevice in userDevices)             {                 var device = db.Devices.Where(d =&gt; d.Id == userDevice.DeviceId).FirstOrDefault();                 if (device != null)                 {                     DeviceDTO deviceDTO = new DeviceDTO()                     {                         Id = device.Id,                         Status = device.Status,                         Name = device.Name                     };                     deviceDTOs.Add(deviceDTO);                 }             }             while (true)             {                 DeviceActivator(serialPort, deviceDTOs);                 string message = serialPort.ReadExisting();                 Console.WriteLine(&quot;message is: &quot; + message);                 var match = reg.Match(message);                 IFormatProvider formatter = new NumberFormatInfo { NumberDecimalSeparator = &quot;.&quot; };                 if (match.Success)                 {                     string a = message.Substring(0, 5);                     double humidity = double.Parse(a, formatter);                     double temperature = double.Parse(message.Substring(6, 5), formatter);                      List&lt;MeteringWriteDTO&gt; meterings = new List&lt;MeteringWriteDTO&gt;();                     var meteringTemperature = new MeteringWriteDTO()                     {                         Id = meteringCount + 1,                         Date = DateTime.UtcNow,                         Value = temperature,                         SensorId = 0,                     };                     meterings.Add(meteringTemperature);                     var meteringHumidity = new MeteringWriteDTO()                     {                         Id = meteringCount + 1,                         Date = DateTime.UtcNow,                         Value = humidity,                         SensorId = 1,                     };                     meterings.Add(meteringHumidity);                     SetSecondMetering(meterings);                     Console.WriteLine(message + DateTime.UtcNow + '\\n');                     System.Threading.Thread.Sleep(1000);                 }                 if (DateTime.UtcNow.Second == 0)                 {                     SetMinuteMetering();                 }                 if (DateTime.UtcNow.Minute == 0 &amp;&amp; DateTime.UtcNow.Second == 0)                 {                     SetHourMetering();                 }                 if (DateTime.UtcNow.Hour == 0 &amp;&amp; DateTime.UtcNow.Minute == 0 &amp;&amp; DateTime.UtcNow.Second == 0)                 {                     AddDay();                 }             }         }<\/code><\/pre>\n<p>  <\/p>\n<p>\u041d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u043b\u0430\u0441\u044c \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0430\u044f \u0431\u0430\u0437\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0430 PostgreSQL.<\/p>\n<p>  <\/p>\n<p>\u0422\u0430\u0431\u043b\u0438\u0446\u0430, \u043a\u0443\u0434\u0430 \u043f\u0438\u0448\u0443\u0442\u0441\u044f \u0434\u0430\u043d\u043d\u044b\u0435 \u0441 \u0434\u0430\u0442\u0447\u0438\u043a\u043e\u0432 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a:<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/bj\/ka\/bv\/bjkabvvlmbzvhdotzsbvrtbnj88.png\" alt=\"image\"\/><\/p>\n<p>  <\/p>\n<p>\u0422\u0430\u043a\u0436\u0435 \u0435\u0441\u0442\u044c \u0442\u0430\u0431\u043b\u0438\u0446\u0430, \u0445\u0440\u0430\u043d\u044f\u0449\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e\u0431 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u0445:<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/r0\/ya\/f3\/r0yaf3nplbr1ewwo5rlocljzqji.png\" alt=\"image\"\/><\/p>\n<p>  <\/p>\n<p>\u0418 \u0441 \u044d\u0442\u043e\u0433\u043e \u043c\u043e\u043c\u0435\u043d\u0442\u0430 \u043d\u0430\u0447\u0430\u043b\u043e\u0441\u044c \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043a\u043b\u0438\u0435\u043d\u0442-\u0441\u0435\u0440\u0432\u0435\u0440\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043d\u0430 ASP.NET Core, \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u043f\u0440\u0435\u0434\u0441\u0442\u043e\u044f\u043b\u043e \u043f\u043e\u043f\u0430\u0441\u0442\u044c \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440. \u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u0441\u0435\u0439\u0447\u0430\u0441 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a:<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/en\/ll\/mn\/enllmn058sawfnyagnzw2vajj9g.png\" alt=\"image\"\/><\/p>\n<p>  <\/p>\n<p>\u041a\u0430\u043a \u0432\u0438\u0434\u0438\u043c, \u0432\u0441\u0451 \u043a\u0440\u0430\u0442\u043a\u043e \u0438 \u0451\u043c\u043a\u043e. \u041c\u043e\u0436\u043d\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0441\u0442\u0430\u0442\u0443\u0441 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u0434\u0430\u0442\u0447\u0438\u043a\u043e\u0432 \u0437\u0430 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u0439 \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043e\u043a \u0432\u0440\u0435\u043c\u0435\u043d\u0438.<\/p>\n<p>  <\/p>\n<h2 id=\"itogi\">\u0418\u0442\u043e\u0433\u0438<\/h2>\n<p>  <\/p>\n<p>\u0422\u0435\u0441\u0442\u0438\u0440\u0443\u0435\u043c, \u0447\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c:<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/ya\/wc\/ga\/yawcgay8gafew8_2rinn7n838pg.gif\" alt=\"image\"\/><\/p>\n<p>  <\/p>\n<p>\u0412\u0441\u0451 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442! \u0412\u0435\u043d\u0442\u0438\u043b\u044f\u0442\u043e\u0440 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u0438 \u0432\u044b\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u0447\u0442\u0438 \u0431\u0435\u0437 \u0437\u0430\u0434\u0435\u0440\u0436\u0435\u043a.<\/p>\n<p>  <\/p>\n<p>\u041f\u043b\u0430\u043d\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0433\u0440\u0430\u0444\u0438\u043a\u0438 \u0441 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u0438\u044f\u043c\u0438 \u0434\u0430\u0442\u0447\u0438\u043a\u043e\u0432, \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438, \u0447\u0442\u043e\u0431\u044b \u0434\u0440\u0443\u0433\u0438\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u043c\u043e\u0433\u043b\u0438 \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044c \u044d\u0442\u0443 \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0443 \u0441\u0435\u0431\u044f \u0434\u043e\u043c\u0430. \u041c\u043e\u0436\u043d\u043e \u043b\u0435\u0433\u043a\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f, \u043f\u0440\u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u0431\u0443\u0434\u0443\u0442 \u0432\u043a\u043b\u044e\u0447\u0430\u0442\u044c\u0441\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438. \u0422\u0430\u043a\u0436\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0434\u0430\u0442\u0447\u0438\u043a\u043e\u0432 \u0438 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0442\u044c.<\/p>\n<p>  <\/p>\n<p>\u0415\u0441\u043b\u0438 \u0437\u0430\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u043b \u043f\u0440\u043e\u0435\u043a\u0442, \u0442\u043e \u043c\u043e\u0433\u0443 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u0441\u0442\u0430\u0442\u044c\u0438 \u043f\u043e \u043a\u0430\u0436\u0434\u043e\u043c\u0443 \u0448\u0430\u0433\u0443 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438.<\/p>\n<\/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=\"https:\/\/habr.com\/ru\/post\/496920\/\"> https:\/\/habr.com\/ru\/post\/496920\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/496920\/\">\n<p>\u0412\u043e \u0432\u0440\u0435\u043c\u044f \u043a\u0430\u0440\u0430\u043d\u0442\u0438\u043d\u0430 \u043f\u043e\u044f\u0432\u0438\u043b\u043e\u0441\u044c \u043c\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0437\u0430\u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u043f\u043e\u0442\u0440\u0430\u0442\u0438\u0442\u044c \u0441 \u043f\u043e\u043b\u044c\u0437\u043e\u0439 \u0438 \u0437\u0430\u043a\u0440\u0435\u043f\u0438\u0442\u044c \u0441\u0432\u043e\u0438 \u0437\u043d\u0430\u043d\u0438\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0435 \u0438\u0437 \u0440\u0430\u0437\u043d\u044b\u0445 \u0441\u0444\u0435\u0440, \u0438\u0437 \u044d\u0442\u043e\u0433\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0441\u044f \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043f\u0440\u043e\u0435\u043a\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441 \u043b\u0451\u0433\u043a\u043e\u0441\u0442\u044c\u044e \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c \u043b\u044e\u0431\u043e\u0439 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a.<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/um\/fr\/nm\/umfrnmkjvnq8fulmpfowff6rpyk.jpeg\" alt=\"image\"\/><\/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-301743","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/301743","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=301743"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/301743\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=301743"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=301743"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=301743"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}