{"id":336818,"date":"2022-08-09T21:00:07","date_gmt":"2022-08-09T21:00:07","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=336818"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=336818","title":{"rendered":"<span>\u041d\u0435\u043e\u0431\u044b\u0447\u043d\u044b\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u044b \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430 \u0432\u0435\u0449\u0435\u0439. \u041f\u0451\u0441-\u043e\u0445\u0440\u0430\u043d\u043d\u0438\u043a \u043d\u0430 Raspberry Pi \u0438 \u0443\u043c\u043d\u0430\u044f \u0432\u0438\u0434\u0435\u043e\u043d\u044f\u043d\u044f<\/span>"},"content":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-1\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/webt\/cb\/3y\/uo\/cb3yuocsscwo6iusiqkaadyntmu.jpeg\" data-src=\"https:\/\/habrastorage.org\/webt\/cb\/3y\/uo\/cb3yuocsscwo6iusiqkaadyntmu.jpeg\" data-blurred=\"true\"\/><\/p>\n<p>  \u0423\u043c\u043d\u044b\u0439 \u0434\u043e\u043c \u0434\u0435\u043b\u0430\u0435\u0442 \u0436\u0438\u0437\u043d\u044c \u043a\u043e\u043c\u0444\u043e\u0440\u0442\u043d\u0435\u0435 \u0438 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u0435\u0435. \u0411\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u044c \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u0431\u044b\u0432\u0430\u0435\u0442 \u043b\u0438\u0448\u043d\u0435\u0439. \u041e\u0434\u043d\u0430 \u0438\u0437 \u0437\u0430\u0434\u0430\u0447 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430 \u0432\u0435\u0449\u0435\u0439 \u2014 \u0437\u0430\u0449\u0438\u0442\u0430 \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430 \u0438 \u0435\u0433\u043e \u0436\u0438\u043b\u0438\u0449\u0430, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u044b \u0441\u0442\u0430\u0432\u0438\u043c \u043a\u0430\u043c\u0435\u0440\u044b \u0432\u0438\u0434\u0435\u043e\u043d\u0430\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u044f \u0441 \u0434\u0430\u0442\u0447\u0438\u043a\u0430\u043c\u0438 \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044f \u0438 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f\u043c\u0438 \u0447\u0435\u0440\u0435\u0437 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442. \u0412 \u043b\u044e\u0431\u043e\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u043c\u043e\u0436\u043d\u043e \u0434\u043e\u0441\u0442\u0430\u0442\u044c \u0442\u0435\u043b\u0435\u0444\u043e\u043d \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u0447\u0442\u043e \u0432 \u0434\u043e\u043c \u043d\u0435 \u043f\u0440\u043e\u0431\u0440\u0430\u043b\u0438\u0441\u044c \u0435\u043d\u043e\u0442\u044b.<br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h2>\u041f\u0451\u0441-\u043e\u0445\u0440\u0430\u043d\u043d\u0438\u043a \u043d\u0430 Raspberry Pi<\/h2>\n<p>  \u041a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e, \u043d\u0435 \u0432\u0441\u0435 \u0436\u0438\u0432\u043e\u0442\u043d\u044b\u0435 \u0431\u043e\u044f\u0442\u0441\u044f \u0432\u0438\u0434\u0435\u043e\u043a\u0430\u043c\u0435\u0440. \u0417\u0434\u0435\u0441\u044c \u043d\u0430 \u043f\u043e\u043c\u043e\u0449\u044c \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442 \u00ab\u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u0430\u044f \u0441\u043e\u0431\u0430\u043a\u0430\u00bb \u0441 \u043a\u043e\u043b\u043e\u043d\u043a\u0430\u043c\u0438.<\/p>\n<p>  \u0412\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u0430\u044f \u0441\u043e\u0431\u0430\u043a\u0430 <a href=\"https:\/\/git.tannercollin.com\/tanner\/woof\">Woof<\/a> \u2014 \u044d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u0435\u043d\u044c\u043a\u0438\u0439 <a href=\"https:\/\/git.tannercollin.com\/tanner\/woof\">\u0441\u043a\u0440\u0438\u043f\u0442 \u043d\u0430 Python<\/a>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442 \u0430\u0443\u0434\u0438\u043e\u0437\u0430\u043f\u0438\u0441\u044c \u0441\u043e\u0431\u0430\u0447\u044c\u0435\u0433\u043e \u043b\u0430\u044f \u0447\u0435\u0440\u0435\u0437 \u0434\u0438\u043d\u0430\u043c\u0438\u043a\u0438, \u0447\u0442\u043e\u0431\u044b \u043e\u0442\u043f\u0443\u0433\u043d\u0443\u0442\u044c \u0431\u0430\u0440\u0441\u0443\u043a\u043e\u0432, \u0435\u043d\u043e\u0442\u043e\u0432 \u0438\u043b\u0438 \u043b\u044e\u0434\u0435\u0439, \u0435\u0441\u043b\u0438 \u0442\u0435 \u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u043b\u0438\u0441\u044c \u043a \u0434\u043e\u043c\u0443.<\/p>\n<p>  \u041f\u0430\u0440\u0430 \u043a\u043e\u043b\u043e\u043d\u043e\u043a \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0430 Raspberry Pi. \u041e\u0434\u043d\u0430 \u043a\u043e\u043b\u043e\u043d\u043a\u0430 \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0430 \u043d\u0430 \u0432\u0445\u043e\u0434\u043d\u0443\u044e \u0434\u0432\u0435\u0440\u044c, \u0430 \u0432\u0442\u043e\u0440\u0430\u044f \u2014 \u043d\u0430 \u0437\u0430\u0434\u043d\u044e\u044e, \u043e\u0442\u043a\u0443\u0434\u0430 \u0442\u043e\u0436\u0435 \u043c\u043e\u0436\u0435\u0442 \u0438\u0441\u0445\u043e\u0434\u0438\u0442\u044c \u0443\u0433\u0440\u043e\u0437\u0430. \u0413\u0440\u043e\u043c\u043a\u043e\u0441\u0442\u044c \u043b\u0430\u044f \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438 \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u043c\u0435\u0436\u0434\u0443 \u0434\u0438\u043d\u0430\u043c\u0438\u043a\u0430\u043c\u0438, \u0441\u043b\u043e\u0432\u043d\u043e \u0441\u043e\u0431\u0430\u043a\u0430 \u0431\u0435\u0433\u0430\u0435\u0442 \u043f\u043e \u0434\u043e\u043c\u0443 \u043e\u0442 \u043e\u0434\u043d\u043e\u0439 \u0434\u0432\u0435\u0440\u0438 \u043a\u043e \u0432\u0442\u043e\u0440\u043e\u0439 \u0438 \u0437\u0430\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043b\u0430\u0435\u043c.<\/p>\n<p>  \u0410\u0432\u0442\u043e\u0440 \u0438\u0437\u043e\u0431\u0440\u0435\u0442\u0435\u043d\u0438\u044f \u0422\u0430\u043d\u043d\u0435\u0440 \u041a\u043e\u043b\u043b\u0438\u043d (Tanner Collin) <a href=\"https:\/\/t0.vc\/7\/\">\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b<\/a> \u0432 \u0434\u043e\u043c\u0435 \u0442\u0430\u043a\u0443\u044e \u00ab\u0441\u043e\u0431\u0430\u043a\u0443\u00bb \u043f\u0435\u0440\u0435\u0434 \u043e\u0442\u044a\u0435\u0437\u0434\u043e\u043c \u0432 \u043e\u0442\u043f\u0443\u0441\u043a. \u0412\u043e\u0442 \u043e\u0434\u043d\u0430 \u0438\u0437 \u043a\u043e\u043b\u043e\u043d\u043e\u043a:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/webt\/ue\/ha\/eo\/uehaeoox5rzdjtddeidc1mqzeb4.jpeg\" data-src=\"https:\/\/habrastorage.org\/webt\/ue\/ha\/eo\/uehaeoox5rzdjtddeidc1mqzeb4.jpeg\" data-blurred=\"true\"\/><\/p>\n<p>  \u0422\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u0430\u044f \u0441\u043e\u0431\u0430\u043a\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<\/p>\n<ol>\n<li>\u041a\u0430\u043c\u0435\u0440\u044b \u043d\u0430\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u044f \u0442\u0440\u0430\u043d\u0441\u043b\u0438\u0440\u0443\u044e\u0442 RTSP-\u043f\u043e\u0442\u043e\u043a \u0432 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 Blue Iris NVR, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043a\u0440\u0443\u0442\u0438\u0442\u0441\u044f \u043d\u0430 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0439 \u043a\u043e\u0440\u043e\u0431\u043e\u0447\u043a\u0435 \u043f\u043e\u0434 Windows.  <\/li>\n<li>\u041a\u043e\u0433\u0434\u0430 Blue Iris \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u0432\u0430\u0435\u0442 \u043e\u0431\u044a\u0435\u043a\u0442 \u0432 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u043e\u0439 \u043e\u0431\u043b\u0430\u0441\u0442\u0438, \u0442\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 MQTT-\u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0432 \u043a\u0430\u043d\u0430\u043b <code>iot\/cameras <\/code> \u0431\u0440\u043e\u043a\u0435\u0440\u0430 Mosquitto, \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043d\u043e\u0433\u043e \u043d\u0430 \u043c\u0435\u0434\u0438\u0430\u0441\u0435\u0440\u0432\u0435\u0440\u0435.  <\/li>\n<li>\u041d\u0430 Raspberry Pi \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441\u043a\u0440\u0438\u043f\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u043e\u0441\u043b\u0443\u0448\u0438\u0432\u0430\u0435\u0442 <code>iot\/cameras <\/code> \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043c\u043e\u0434\u0443\u043b\u044f <code>asyncio-mqtt<\/code>. \u041e\u043d \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 JSON-\u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0432\u0438\u0434\u0430 <code>{\"serial\": \"SE-N-ZoneB\"}<\/code> \u0438 \u0434\u0435\u043a\u043e\u0434\u0438\u0440\u0443\u0435\u0442 \u0435\u0433\u043e. \u0415\u0441\u043b\u0438 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043a\u0430\u043c\u0435\u0440\u044b \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u043c\u0443 \u0432 \u0441\u043a\u0440\u0438\u043f\u0442\u0435, \u0442\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 \u0430\u0443\u0434\u0438\u043e\u0444\u0430\u0439\u043b \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Pygame.<\/li>\n<\/ol>\n<p>  \u041a\u043e\u0434 \u0441\u043a\u0440\u0438\u043f\u0442\u0430:<\/p>\n<pre><code class=\"python\">import os, sys import logging logging.basicConfig(stream=sys.stdout, format='[%(asctime)s] %(levelname)s %(module)s\/%(funcName)s - %(message)s', level=logging.DEBUG if os.environ.get('DEBUG') else logging.INFO)  import time import json  import asyncio from asyncio_mqtt import Client import pygame  import secrets  COOLDOWN = time.time()  CAMERAS = { 'NE-W-ZoneB': { 'name': 'Front Door', 'sound': 'barkLR.ogg', }, 'SE-N-ZoneB': { 'name': 'Side Door', 'sound': 'barkRL.ogg', }, 'B-E-ZoneB': { 'name': 'Back Door', 'sound': 'barkLR.ogg', }, }  async def play_sound(filename): pygame.mixer.music.load(filename) pygame.mixer.music.play()  logging.info('Playing sound %s', filename)  while pygame.mixer.music.get_busy(): #pygame.time.Clock().tick(10) await asyncio.sleep(0.1)   async def barkbark(sound): global COOLDOWN if time.time() - COOLDOWN &lt; 15.0: logging.info('Cooldown skipping.') return COOLDOWN = time.time()  await asyncio.sleep(0.1)  await play_sound(sound)  logging.info('Done barking.')  async def process_mqtt(message): text = message.payload.decode() topic = message.topic logging.info('MQTT topic: %s, message: %s', topic, text)  if not topic.startswith('iot\/cameras'): logging.info('Invalid topic, returning') return  try: data = json.loads(text) except json.JSONDecodeError: logging.info('Invalid json, returning') return  serial = str(data.get('serial', ''))  if serial not in CAMERAS: logging.info('Invalid serial, returning') return  camera = CAMERAS[serial]  logging.info('Barking %s...', camera['name'])  await barkbark(camera['sound'])   async def fetch_mqtt(): await asyncio.sleep(3) async with Client('192.168.0.100') as client: async with client.filtered_messages('iot\/cameras') as messages: await client.subscribe('#') async for message in messages: loop = asyncio.get_event_loop() loop.create_task(process_mqtt(message))   if __name__ == '__main__': logging.info('') logging.info('==========================') logging.info('Booting up...')  pygame.init() pygame.mixer.pre_init(buffer=4096) pygame.mixer.init(buffer=4096)  loop = asyncio.get_event_loop() loop.run_until_complete(fetch_mqtt())<\/code><\/pre>\n<p>  \u041b\u043e\u0436\u043d\u044b\u0435 \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043d\u0438\u044f (\u043d\u0430 \u0441\u0432\u0435\u0442 \u0430\u0432\u0442\u043e\u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0445 \u0444\u0430\u0440 \u0438\u043b\u0438 \u043c\u0435\u043b\u043a\u0438\u0445 \u0436\u0438\u0432\u043e\u0442\u043d\u044b\u0445) \u043d\u0435 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043e\u043f\u0430\u0441\u043d\u044b. \u0421\u043a\u043e\u0440\u0435\u0435 \u043d\u0430\u043e\u0431\u043e\u0440\u043e\u0442, \u043e\u043d\u0438 \u0434\u0435\u043b\u0430\u044e\u0442 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u0443\u044e \u0441\u043e\u0431\u0430\u043a\u0443 \u0431\u043e\u043b\u0435\u0435 \u0440\u0435\u0430\u043b\u0438\u0441\u0442\u0438\u0447\u043d\u043e\u0439, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0443 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u0445 \u0441\u043e\u0431\u0430\u043a \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u044f\u0442 \u0442\u0430\u043a\u0438\u0435 \u0436\u0435 \u00ab\u043b\u043e\u0436\u043d\u044b\u0435 \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043d\u0438\u044f\u00bb.<\/p>\n<p>  \u0412 \u0431\u0443\u0434\u0443\u0449\u0435\u043c \u0430\u0432\u0442\u043e\u0440 \u043f\u043b\u0430\u043d\u0438\u0440\u0443\u0435\u0442 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0442\u0440\u0438\u0433\u0433\u0435\u0440 \u043d\u0430 \u0441\u0442\u0443\u043f\u0435\u043d\u044c\u043a\u0430\u0445 \u043f\u0435\u0440\u0435\u0434 \u0434\u043e\u043c\u043e\u043c, \u0447\u0442\u043e\u0431\u044b \u043f\u0451\u0441 \u043d\u0430\u0447\u0438\u043d\u0430\u043b \u043b\u0430\u044f\u0442\u044c \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e \u043d\u0430 \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0434\u043e\u0448\u0451\u043b \u043a \u0434\u0432\u0435\u0440\u0438. \u0420\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0432\u043d\u0443\u0442\u0440\u0438 \u0434\u043e\u043c\u0430 <a href=\"https:\/\/aliexpress.ru\/item\/32931402076.html\">\u0440\u0430\u0434\u0430\u0440\u043d\u043e\u0433\u043e \u0434\u0430\u0442\u0447\u0438\u043a\u0430 HFS-DC06<\/a>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u0447\u0435\u0440\u0435\u0437 \u0432\u043d\u0435\u0448\u043d\u044e\u044e \u0441\u0442\u0435\u043d\u0443.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/webt\/oy\/gr\/ub\/oygrubhggyj0uiptusenkjysh5o.jpeg\" data-src=\"https:\/\/habrastorage.org\/webt\/oy\/gr\/ub\/oygrubhggyj0uiptusenkjysh5o.jpeg\" data-blurred=\"true\"\/><\/p>\n<p>  <a href=\"https:\/\/news.t0.vc\/TRMA\">\u0418\u0437\u0432\u0435\u0441\u0442\u043d\u043e<\/a>, \u0447\u0442\u043e \u043b\u0430\u0439 \u0441\u043e\u0431\u0430\u043a \u0438 \u043a\u0430\u043c\u0435\u0440\u044b \u0432\u0438\u0434\u0435\u043e\u043d\u0430\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u044f \u2014 \u0433\u043b\u0430\u0432\u043d\u044b\u0435 \u043e\u0442\u043f\u0443\u0433\u0438\u0432\u0430\u044e\u0449\u0438\u0435 \u0444\u0430\u043a\u0442\u043e\u0440\u044b \u0434\u043b\u044f \u0432\u0437\u043b\u043e\u043c\u0449\u0438\u043a\u043e\u0432. \u0414\u0430\u0436\u0435 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u0430\u044f \u0441\u043e\u0431\u0430\u043a\u0430 \u0438\u0437 \u043a\u043e\u043b\u043e\u043d\u043e\u043a \u2014 \u044d\u0442\u043e \u043b\u0443\u0447\u0448\u0435, \u0447\u0435\u043c \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435 \u0441\u043e\u0431\u0430\u043a\u0438. \u041a \u0430\u0432\u0442\u043e\u0440\u0443 \u044d\u0442\u043e\u0433\u043e \u0438\u0437\u043e\u0431\u0440\u0435\u0442\u0435\u043d\u0438\u044f \u0443\u0436\u0435 \u0437\u0430\u0445\u043e\u0434\u0438\u043b \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u0433\u0440\u0430\u0431\u0438\u0442\u0435\u043b\u044c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0434\u0451\u0440\u0433\u0430\u043b \u0440\u0443\u0447\u043a\u0443 \u0434\u0432\u0435\u0440\u0438 \u0433\u0430\u0440\u0430\u0436\u0430. \u0414\u0432\u0435\u0440\u044c \u0431\u044b\u043b\u0430 \u0437\u0430\u043a\u0440\u044b\u0442\u0430, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043e\u043d \u0437\u0430\u043b\u0435\u0437 \u0432 \u0433\u0430\u0440\u0430\u0436 \u0441\u043e\u0441\u0435\u0434\u0430.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/webt\/ak\/pu\/d3\/akpud3f3icnf-7cbnffvevm9nmu.jpeg\" data-src=\"https:\/\/habrastorage.org\/webt\/ak\/pu\/d3\/akpud3f3icnf-7cbnffvevm9nmu.jpeg\" data-blurred=\"true\"\/><\/p>\n<p>  \u0412 \u043b\u044e\u0431\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435, \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u044c \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u043f\u043e\u043c\u0435\u0448\u0430\u0435\u0442.<\/p>\n<h2>\u0423\u043c\u043d\u0430\u044f \u0440\u0430\u0434\u0438\u043e\u043d\u044f\u043d\u044f<\/h2>\n<p>  \u0415\u0449\u0451 \u043e\u0434\u0438\u043d \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430 \u0432\u0435\u0449\u0435\u0439 \u2014 \u0443\u043c\u043d\u0430\u044f \u0440\u0430\u0434\u0438\u043e\u043d\u044f\u043d\u044f <a href=\"https:\/\/www.youtube.com\/watch?v=Lda1Sq8HRY4\">The Hungry Baby Alarm<\/a> \u0441 \u0441\u0438\u0441\u0442\u0435\u043c\u043e\u0439 \u0438\u0441\u043a\u0443\u0441\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u043b\u043b\u0435\u043a\u0442\u0430. \u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043c\u0430\u0448\u0438\u043d\u043d\u043e\u0433\u043e \u0437\u0440\u0435\u043d\u0438\u044f \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0438\u0440\u0443\u0435\u0442 \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044f \u043c\u043b\u0430\u0434\u0435\u043d\u0446\u0430 \u0432 \u043a\u043e\u043b\u044f\u0441\u043a\u0435, \u043e\u0446\u0435\u043d\u0438\u0432\u0430\u044f \u0441\u0442\u0435\u043f\u0435\u043d\u044c \u0435\u0433\u043e \u0433\u043e\u043b\u043e\u0434\u0430 (\u0438 \u043f\u0440\u0438\u0431\u043b\u0438\u0436\u0435\u043d\u0438\u0435 \u043f\u043b\u0430\u0447\u0430).<\/p>\n<p>  \u0422\u043e \u0435\u0441\u0442\u044c \u044d\u0442\u0430 \u0440\u0430\u0434\u0438\u043e\u043d\u044f\u043d\u044f \u043f\u043e\u0434\u0430\u0441\u0442 \u0441\u0438\u0433\u043d\u0430\u043b \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u0440\u0435\u0431\u0451\u043d\u043e\u043a \u0433\u043e\u043b\u043e\u0434\u0435\u043d \u0438 \u043f\u043b\u0430\u0447\u0435\u0442, \u0435\u0449\u0451 <b>\u0434\u043e<\/b> \u043d\u0430\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u044f \u044d\u0442\u0438\u0445 \u0441\u043e\u0431\u044b\u0442\u0438\u0439.<\/p>\n<div class=\"oembed\">\n<div class=\"tm-iframe_temp\" data-src=\"https:\/\/embedd.srv.habr.com\/iframe\/62e3d7309c344d33ecf97730\" data-style=\"\" id=\"62e3d7309c344d33ecf97730\" width=\"\"><\/div>\n<\/div>\n<p>  \u041f\u043e \u0432\u0438\u0434\u0435\u043e\u0437\u0430\u043f\u0438\u0441\u0438 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043d\u044f\u0442\u044c, \u043a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441\u0438\u0441\u0442\u0435\u043c\u0430. \u041a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e, \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u041a\u0430\u043b\u0435\u0431 \u041e\u043b\u0441\u043e\u043d (Caleb Olson) \u043d\u0435 \u0432\u044b\u043b\u043e\u0436\u0438\u043b \u043a\u043e\u0434, \u0430 \u0442\u043e\u043b\u044c\u043a\u043e <a href=\"https:\/\/habrastorage.org\/webt\/bn\/s_\/2y\/bns_2yrq56deouwadarepv46y40.png\">\u043f\u043e\u043a\u0430\u0437\u0430\u043b \u0435\u0433\u043e \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u044b<\/a> \u0438 \u0443\u043f\u043e\u043c\u044f\u043d\u0443\u043b \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0434\u0443\u043b\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0434\u043b\u044f \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u044f \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0439 \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0438 (\u043a\u0430\u043a <a href=\"https:\/\/google.github.io\/mediapipe\/solutions\/face_mesh.html\">MediaPipe Face Mesh<\/a>).<\/p>\n<p>  \u0421\u0435\u0439\u0447\u0430\u0441 \u0430\u0432\u0442\u043e\u0440 \u043f\u043e\u0434\u0430\u043b \u0437\u0430\u044f\u0432\u043a\u0443 \u043d\u0430 \u043f\u0430\u0442\u0435\u043d\u0442. \u041d\u043e \u043d\u0438\u043a\u0442\u043e \u043d\u0435 \u043c\u0435\u0448\u0430\u0435\u0442 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0442\u0430\u043a\u0443\u044e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u0438 \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u0442\u044c \u0432 \u043e\u0442\u043a\u0440\u044b\u0442\u043e\u043c \u0434\u043e\u0441\u0442\u0443\u043f\u0435, \u0447\u0442\u043e\u0431\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0435\u0451 \u0441 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u043e\u0439 \u0432\u0438\u0434\u0435\u043e\u043a\u0430\u043c\u0435\u0440\u043e\u0439. \u0414\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u043e\u043b\u0435\u0437\u043d\u0430\u044f \u0443\u0442\u0438\u043b\u0438\u0442\u0430 \u0432 \u0434\u043e\u043c\u0430\u0448\u043d\u0435\u043c \u0445\u043e\u0437\u044f\u0439\u0441\u0442\u0432\u0435.<\/p>\n<hr\/>\n<p>  <a href=\"https:\/\/shop.globalsign.com\/ru-ru\/code-signing\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/webt\/fi\/gb\/ow\/figbowsn-6humamdjvnqy08yqj4.jpeg\" data-src=\"https:\/\/habrastorage.org\/webt\/fi\/gb\/ow\/figbowsn-6humamdjvnqy08yqj4.jpeg\" data-blurred=\"true\"\/><\/a><\/div>\n<\/div>\n<\/div>\n<div class=\"v-portal\" style=\"display:none;\"><\/div>\n<\/div>\n<p> <!----> <!----><br \/> \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\/company\/globalsign\/blog\/681722\/\"> https:\/\/habr.com\/ru\/company\/globalsign\/blog\/681722\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-1\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/webt\/cb\/3y\/uo\/cb3yuocsscwo6iusiqkaadyntmu.jpeg\" data-src=\"https:\/\/habrastorage.org\/webt\/cb\/3y\/uo\/cb3yuocsscwo6iusiqkaadyntmu.jpeg\" data-blurred=\"true\"\/><\/p>\n<p>  \u0423\u043c\u043d\u044b\u0439 \u0434\u043e\u043c \u0434\u0435\u043b\u0430\u0435\u0442 \u0436\u0438\u0437\u043d\u044c \u043a\u043e\u043c\u0444\u043e\u0440\u0442\u043d\u0435\u0435 \u0438 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u0435\u0435. \u0411\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u044c \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u0431\u044b\u0432\u0430\u0435\u0442 \u043b\u0438\u0448\u043d\u0435\u0439. \u041e\u0434\u043d\u0430 \u0438\u0437 \u0437\u0430\u0434\u0430\u0447 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430 \u0432\u0435\u0449\u0435\u0439 \u2014 \u0437\u0430\u0449\u0438\u0442\u0430 \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430 \u0438 \u0435\u0433\u043e \u0436\u0438\u043b\u0438\u0449\u0430, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u044b \u0441\u0442\u0430\u0432\u0438\u043c \u043a\u0430\u043c\u0435\u0440\u044b \u0432\u0438\u0434\u0435\u043e\u043d\u0430\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u044f \u0441 \u0434\u0430\u0442\u0447\u0438\u043a\u0430\u043c\u0438 \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044f \u0438 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f\u043c\u0438 \u0447\u0435\u0440\u0435\u0437 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442. \u0412 \u043b\u044e\u0431\u043e\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u043c\u043e\u0436\u043d\u043e \u0434\u043e\u0441\u0442\u0430\u0442\u044c \u0442\u0435\u043b\u0435\u0444\u043e\u043d \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u0447\u0442\u043e \u0432 \u0434\u043e\u043c \u043d\u0435 \u043f\u0440\u043e\u0431\u0440\u0430\u043b\u0438\u0441\u044c \u0435\u043d\u043e\u0442\u044b.  <\/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-336818","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/336818","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=336818"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/336818\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=336818"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=336818"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=336818"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}