{"id":337324,"date":"2022-08-20T21:00:21","date_gmt":"2022-08-20T21:00:21","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=337324"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=337324","title":{"rendered":"<span>\u0412\u043e \u0447\u0442\u043e \u043e\u0431\u0435\u0440\u043d\u0443\u043b\u0430\u0441\u044c \u043f\u0435\u0440\u0435\u0441\u044b\u043b\u043a\u0430 MQTT-\u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 \u0432 Telegram?<\/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-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u041f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u0435\u0441\u043a\u0438 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442 \u0436\u0435\u043b\u0430\u043d\u0438\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f, \u0438\u043c\u0435\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044c \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a, \u0444\u0438\u043b\u044c\u0442\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u043f\u043e \u0442\u0435\u043c\u0430\u043c, \u0438 \u043f\u0438\u0441\u0430\u0442\u044c \u043a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u043c\u0435\u043d\u044c\u0448\u0435 \u043a\u043e\u0434\u0430. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u0440\u0438\u0441\u044b\u043b\u0430\u0442\u044c \u0441\u0435\u0431\u0435 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443\/\u0446\u0438\u0442\u0430\u0442\u0443\/\u0441\u043b\u043e\u0432\u043e \u0434\u043d\u044f \u0438\u043b\u0438 \u0434\u0435\u043b\u044c\u0442\u0443 \u043f\u043e \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f\u043c \u043e\u0440\u0434\u0435\u0440\u043e\u0432 \u043d\u0430 \u0431\u0438\u0440\u0436\u0435. \u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0441\u044f \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 &#8212; <a href=\"https:\/\/t.me\/Mqtt2TelegramBot\" rel=\"noopener noreferrer nofollow\">\u0431\u043e\u0442<\/a> \u0438 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0435 \u0410\u041f\u0418 \u0434\u043b\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 \u0432 Telegram. \u041f\u0440\u043e\u0448\u0443 \u043f\u043e\u0434 \u043a\u0430\u0442.<\/p>\n<h4>\u0410\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430<\/h4>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/287\/af2\/773\/287af27737ca6da7d89e9115117c711e.png\" width=\"446\" height=\"231\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/287\/af2\/773\/287af27737ca6da7d89e9115117c711e.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0421\u0435\u0440\u0432\u0438\u0441 \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432:<\/p>\n<ul>\n<li>\n<p>MQTT-\u0431\u0440\u043e\u043a\u0435\u0440\u0430<\/p>\n<\/li>\n<li>\n<p>REST API, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0435\u0433\u043e \u043e\u0431\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u0442 \u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f<\/p>\n<\/li>\n<li>\n<p>Telegram-\u0431\u043e\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d \u043d\u0430 MQTT \u0438 \u043f\u0435\u0440\u0435\u0441\u044b\u043b\u0430\u0435\u0442 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f<\/p>\n<\/li>\n<li>\n<p>MongoDB \u0434\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0438 \u043f\u043e\u0434\u043f\u0438\u0441\u043e\u043a<\/p>\n<\/li>\n<\/ul>\n<h4>\u041a\u0430\u043a \u044d\u0442\u0438\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f?<\/h4>\n<p>\u041e\u0442\u043f\u0440\u0430\u0432\u043a\u0430 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u043e\u0432\u0430\u043d\u0430 \u0432\u043e\u043a\u0440\u0443\u0433 \u0442\u043e\u043f\u0438\u043a\u043e\u0432, \u0447\u0435\u0440\u0435\u0437 <a href=\"https:\/\/t.me\/Mqtt2TelegramBot\" rel=\"noopener noreferrer nofollow\">\u0431\u043e\u0442\u0430<\/a> \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u0442\u044c\u0441\u044f\/\u043e\u0442\u043f\u0438\u0441\u0430\u0442\u044c\u0441\u044f. \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0435 \u0438\u043c\u044f \u0442\u043e\u043f\u0438\u043a\u0430 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0442\u0430\u043a:  <code>&lt;telegramId>\/&lt;topic><\/code>, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043a\u0430\u0436\u0434\u044b\u0439 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u0441\u0432\u043e\u0435 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u043e \u0438\u043c\u0435\u043d \u0438 API-\u043a\u043b\u044e\u0447.<br \/> \u0414\u043b\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439, \u043d\u0443\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<\/p>\n<ul>\n<li>\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c <a href=\"https:\/\/t.me\/Mqtt2TelegramBot\" rel=\"noopener noreferrer nofollow\">Mqtt2TelegramBot<\/a><\/p>\n<\/li>\n<li>\n<p>\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 <code>\/start<\/code>, \u0431\u043e\u0442 \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0435\u0442, \u043a\u0430\u043a \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0432 \u0443\u0436\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 \u0442\u043e\u043f\u0438\u043a (\u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0438\u0445 \u043d\u0435\u0442)<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u0434\u043f\u0438\u0441\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u0442\u043e\u043f\u0438\u043a: <code>\/sub &lt;my-topic><\/code>, \u0431\u043e\u0442 \u0441\u0440\u0430\u0437\u0443 \u043f\u043e\u043a\u0430\u0436\u0435\u0442 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u0434\u043b\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e HTTPie (\/\/url) \u0438 \u043b\u043e\u0433\u0438\u043d\/\u043f\u0430\u0440\u043e\u043b\u044c \u0434\u043b\u044f Basic Auth <\/p>\n<p>\u041e \u0432\u0441\u0435\u0445 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044f\u0445 \u0431\u043e\u0442 \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0435\u0442 \u0441\u0430\u043c \u043f\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u0435 <code>\/commands<\/code>.<\/p>\n<\/li>\n<\/ul>\n<h4>\u041f\u0440\u0438\u043c\u0435\u0440\u044b \u043a\u043e\u0434\u0430<\/h4>\n<details class=\"spoiler\">\n<summary>cURL<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"bash\">curl -v -X POST -u \"${LOGIN}:${PASSWORD}\" \\ https:\/\/mqtt2telegram.projects.royz.cc\/api\/v1.0\/send \\ -H \"Content-Type: application\/json\" \\ -d \"{\\\"topic\\\": \\\"${TOPIC}\\\", \\\"payload\\\": \\\"${MESSAGE}\\\"}\"<\/code><\/pre>\n<p>\u0433\u0434\u0435, <code>LOGIN<\/code> &#8212; telegramId\/chatId, <code>PASSWORD<\/code> &#8212; \u0432\u044b\u0434\u0430\u0441\u0442 \u0431\u043e\u0442, \u043b\u0438\u0431\u043e \u043f\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u0435 <code>\/creds<\/code> ,<code>TOPIC<\/code> &#8212; \u0442\u043e\u043f\u0438\u043a, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u044b \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043b\u0438\u0441\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 <code>\/sub &lt;topic><\/code> , <code>MESSAGE<\/code> &#8212; \u0442\u0435\u043a\u0441\u0442 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f (\u0441 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u043e\u0439 Markdown)<\/p>\n<\/div>\n<\/details>\n<details class=\"spoiler\">\n<summary>Python<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"python\">import requests  url = \"https:\/\/mqtt2telegram.projects.royz.cc\/api\/v1.0\/send\"  login = \"1234567\" password = \"aaBBccEEdd\"  topic = \"YOUR_TOPIC\"  json = {     \"topic\": topic,     \"payload\": \"YOUR_MESSAGE\" }  requests.post(url, auth=(login, password), json=json)<\/code><\/pre>\n<\/p>\n<\/div>\n<\/details>\n<details class=\"spoiler\">\n<summary>JavaScript<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"javascript\">import got from \"got\"  async function sendMessage(login, password, topic, message) {   const url = 'https:\/\/mqtt2telegram.projects.royz.cc\/api\/v1.0\/send'   const hash = btoa(`${login}:${password}`)   const options = {     headers: {       authorization: `Basic ${hash}`     }    }   const json = {     topic,      payload: message   }   return got.post(url, {...options, json}) }<\/code><\/pre>\n<\/p>\n<\/div>\n<\/details>\n<h4>\u041c\u043e\u0438 \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f<\/h4>\n<ul>\n<li>\n<p>\u043a\u0430\u0436\u0434\u044b\u0439 \u0434\u0435\u043d\u044c \u044f \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u044e \u0441\u0435\u0431\u0435 <a href=\"https:\/\/github.com\/zjor\/automation\/blob\/master\/send_qotd.py\" rel=\"noopener noreferrer nofollow\">\u0446\u0438\u0442\u0430\u0442\u0443<\/a> \u0434\u043d\u044f \u0438 <a href=\"https:\/\/github.com\/zjor\/automation\/blob\/master\/send_potd.py\" rel=\"noopener noreferrer nofollow\">\u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443<\/a> \u0434\u043d\u044f \u0438\u0437 \u0412\u0438\u043a\u0438\u043f\u0435\u0434\u0438\u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e scheduled job \u0432 github actions<\/p>\n<\/li>\n<li>\n<p>\u043a\u0430\u0436\u0434\u044b\u0435 5 \u043c\u0438\u043d\u0443\u0442 <a href=\"https:\/\/github.com\/zjor\/automation\/blob\/master\/binance_notifier\/src\/check_binance_orders.py\" rel=\"noopener noreferrer nofollow\">\u044d\u0442\u043e\u0442 \u0441\u043a\u0440\u0438\u043f\u0442<\/a> \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u0442 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043e\u0440\u0434\u0435\u0440\u043e\u0432 \u043d\u0430 Binance, \u0435\u0441\u043b\u0438 \u0447\u0442\u043e-\u0442\u043e \u0441\u043e\u0437\u0434\u0430\u043b\u043e\u0441\u044c\/\u043f\u0440\u043e\u0434\u0430\u043b\u043e\u0441\u044c, \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0435<\/p>\n<\/li>\n<li>\n<p>\u0443 \u043c\u0435\u043d\u044f \u0435\u0441\u0442\u044c <a href=\"https:\/\/github.com\/zjor\/arduino\/tree\/master\/iot-toggle\" rel=\"noopener noreferrer nofollow\">IoT-\u043a\u043d\u043e\u043f\u043a\u0430<\/a>, \u0430\u043d\u0442\u0438-\u043f\u0440\u043e\u043a\u0440\u0430\u0441\u0442\u0438\u043d\u0430\u0442\u043e\u0440, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 busy\/idle \u0440\u0435\u0436\u0438\u043c \u0432 <a href=\"http:\/\/toggl.com\" rel=\"noopener noreferrer nofollow\">toggl.com<\/a>, \u044d\u0442\u043e \u043d\u0435 \u0438\u043c\u0435\u0435\u0442 \u043d\u0438\u0447\u0435\u0433\u043e \u043e\u0431\u0449\u0435\u0433\u043e \u0441 \u043f\u0435\u0440\u0435\u0441\u044b\u043b\u043a\u043e\u0439 \u0442\u0435\u043b\u0435\u0433\u0440\u0430\u043c, \u043f\u0440\u043e\u0441\u0442\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043b MQTT \u043d\u0430 \u0442\u043e\u0439 \u0436\u0435 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0435, \u0438 \u043a\u0430\u043a \u043f\u043e\u0431\u043e\u0447\u043d\u044b\u0439 \u044d\u0444\u0444\u0435\u043a\u0442 \u043c\u043e\u0433\u0443 \u044d\u0442\u0438\u043c \u0436\u0435 \u0431\u043e\u0442\u043e\u043c \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u0442\u043e\u043f\u0438\u043a \u043e\u0431 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f\u0445 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u043a\u043d\u043e\u043f\u043a\u0438<\/p>\n<\/li>\n<li>\n<p>(\u043f\u043e\u043a\u0430 \u0438\u0434\u0435\u044f) \u0442.\u043a. \u0432 MQTT \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0441\u0440\u0430\u0437\u0443 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443, \u043c\u043e\u0436\u043d\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0441 \u043a\u0430\u043c\u0435\u0440\u044b \u043f\u043e \u0440\u0430\u0441\u043f\u0438\u0441\u0430\u043d\u0438\u044e \u0438\u043b\u0438 \u043f\u0440\u0438 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u0438\u0438 \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044f<\/p>\n<\/li>\n<\/ul>\n<h4>Stack<\/h4>\n<ul>\n<li>\n<p>\u0421\u0435\u0440\u0432\u0435\u0440 \u043d\u0430 <a href=\"https:\/\/javalin.io\/\" rel=\"noopener noreferrer nofollow\">Javalin<\/a> (\u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0441\u044b\u0440\u043e\u0439 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a, \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043f\u0440\u043e\u0441\u0438\u0442\u044c \u0434\u043e\u0434\u0435\u043b\u044b\u0432\u0430\u0442\u044c \u0444\u0438\u0447\u0438), <a href=\"https:\/\/github.com\/rubenlagus\/TelegramBots\" rel=\"noopener noreferrer nofollow\">TelegramBots<\/a><\/p>\n<\/li>\n<li>\n<p>MQTTv5: <a href=\"https:\/\/www.hivemq.com\/\" rel=\"noopener noreferrer nofollow\">HiveMQ<\/a> \u0432 \u043e\u0431\u043b\u0430\u043a\u0435, \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e\u0433\u043e \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0430 \u0445\u0432\u0430\u0442\u0430\u0435\u0442<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/cloud.mongodb.com\/\" rel=\"noopener noreferrer nofollow\">MongoDB<\/a> \u0432 \u043e\u0431\u043b\u0430\u043a\u0435 \u0434\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0438 \u0442\u043e\u043f\u0438\u043a\u043e\u0432 <\/p>\n<\/li>\n<li>\n<p>CI\/CD: github actions (\u0434\u0435\u043f\u043b\u043e\u0439 \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e helm \u0432 k8s \u043f\u043e\u0434 \u0443\u0440\u043f\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c <a href=\"https:\/\/rancher.com\/\" rel=\"noopener noreferrer nofollow\">Rancher<\/a>)<\/p>\n<\/li>\n<\/ul>\n<p><a href=\"https:\/\/github.com\/zjor\/mqtt2telegram\" rel=\"noopener noreferrer nofollow\">\u041a\u043e\u0434 \u043f\u0440\u043e\u0435\u043a\u0442\u0430<\/a> \u0438 <a href=\"https:\/\/zjor.github.io\/mqtt2telegram\/\" rel=\"noopener noreferrer nofollow\">\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f<\/a>.<\/p>\n<p>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0439\u0442\u0435\u0441\u044c \u0438 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0439\u0442\u0435 \u043e \u0432\u0430\u0448\u0438\u0445 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u0445 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0438\u043b\u0438 \u0438\u0434\u0435\u044f\u0445 \u043d\u043e\u0432\u044b\u0445 \u0444\u0438\u0447.<\/p>\n<p>\u0421\u043f\u0430\u0441\u0438\u0431\u043e \u0437\u0430 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435!<\/p>\n<\/p>\n<\/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\/post\/683698\/\"> https:\/\/habr.com\/ru\/post\/683698\/<\/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-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u041f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u0435\u0441\u043a\u0438 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442 \u0436\u0435\u043b\u0430\u043d\u0438\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f, \u0438\u043c\u0435\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044c \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a, \u0444\u0438\u043b\u044c\u0442\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u043f\u043e \u0442\u0435\u043c\u0430\u043c, \u0438 \u043f\u0438\u0441\u0430\u0442\u044c \u043a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u043c\u0435\u043d\u044c\u0448\u0435 \u043a\u043e\u0434\u0430. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u0440\u0438\u0441\u044b\u043b\u0430\u0442\u044c \u0441\u0435\u0431\u0435 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443\/\u0446\u0438\u0442\u0430\u0442\u0443\/\u0441\u043b\u043e\u0432\u043e \u0434\u043d\u044f \u0438\u043b\u0438 \u0434\u0435\u043b\u044c\u0442\u0443 \u043f\u043e \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f\u043c \u043e\u0440\u0434\u0435\u0440\u043e\u0432 \u043d\u0430 \u0431\u0438\u0440\u0436\u0435. \u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0441\u044f \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 &#8212; <a href=\"https:\/\/t.me\/Mqtt2TelegramBot\" rel=\"noopener noreferrer nofollow\">\u0431\u043e\u0442<\/a> \u0438 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0435 \u0410\u041f\u0418 \u0434\u043b\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 \u0432 Telegram. \u041f\u0440\u043e\u0448\u0443 \u043f\u043e\u0434 \u043a\u0430\u0442.<\/p>\n<h4>\u0410\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430<\/h4>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<p>\u0421\u0435\u0440\u0432\u0438\u0441 \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432:<\/p>\n<ul>\n<li>\n<p>MQTT-\u0431\u0440\u043e\u043a\u0435\u0440\u0430<\/p>\n<\/li>\n<li>\n<p>REST API, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0435\u0433\u043e \u043e\u0431\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u0442 \u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f<\/p>\n<\/li>\n<li>\n<p>Telegram-\u0431\u043e\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d \u043d\u0430 MQTT \u0438 \u043f\u0435\u0440\u0435\u0441\u044b\u043b\u0430\u0435\u0442 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f<\/p>\n<\/li>\n<li>\n<p>MongoDB \u0434\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0438 \u043f\u043e\u0434\u043f\u0438\u0441\u043e\u043a<\/p>\n<\/li>\n<\/ul>\n<h4>\u041a\u0430\u043a \u044d\u0442\u0438\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f?<\/h4>\n<p>\u041e\u0442\u043f\u0440\u0430\u0432\u043a\u0430 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u043e\u0432\u0430\u043d\u0430 \u0432\u043e\u043a\u0440\u0443\u0433 \u0442\u043e\u043f\u0438\u043a\u043e\u0432, \u0447\u0435\u0440\u0435\u0437 <a href=\"https:\/\/t.me\/Mqtt2TelegramBot\" rel=\"noopener noreferrer nofollow\">\u0431\u043e\u0442\u0430<\/a> \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u0442\u044c\u0441\u044f\/\u043e\u0442\u043f\u0438\u0441\u0430\u0442\u044c\u0441\u044f. \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0435 \u0438\u043c\u044f \u0442\u043e\u043f\u0438\u043a\u0430 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0442\u0430\u043a:  <code>&lt;telegramId>\/&lt;topic><\/code>, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043a\u0430\u0436\u0434\u044b\u0439 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u0441\u0432\u043e\u0435 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u043e \u0438\u043c\u0435\u043d \u0438 API-\u043a\u043b\u044e\u0447.<br \/> \u0414\u043b\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439, \u043d\u0443\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<\/p>\n<ul>\n<li>\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c <a href=\"https:\/\/t.me\/Mqtt2TelegramBot\" rel=\"noopener noreferrer nofollow\">Mqtt2TelegramBot<\/a><\/p>\n<\/li>\n<li>\n<p>\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 <code>\/start<\/code>, \u0431\u043e\u0442 \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0435\u0442, \u043a\u0430\u043a \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0432 \u0443\u0436\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 \u0442\u043e\u043f\u0438\u043a (\u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0438\u0445 \u043d\u0435\u0442)<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u0434\u043f\u0438\u0441\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u0442\u043e\u043f\u0438\u043a: <code>\/sub &lt;my-topic><\/code>, \u0431\u043e\u0442 \u0441\u0440\u0430\u0437\u0443 \u043f\u043e\u043a\u0430\u0436\u0435\u0442 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u0434\u043b\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e HTTPie (\/\/url) \u0438 \u043b\u043e\u0433\u0438\u043d\/\u043f\u0430\u0440\u043e\u043b\u044c \u0434\u043b\u044f Basic Auth <\/p>\n<p>\u041e \u0432\u0441\u0435\u0445 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044f\u0445 \u0431\u043e\u0442 \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0435\u0442 \u0441\u0430\u043c \u043f\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u0435 <code>\/commands<\/code>.<\/p>\n<\/li>\n<\/ul>\n<h4>\u041f\u0440\u0438\u043c\u0435\u0440\u044b \u043a\u043e\u0434\u0430<\/h4>\n<details class=\"spoiler\">\n<summary>cURL<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"bash\">curl -v -X POST -u \"${LOGIN}:${PASSWORD}\" \\ https:\/\/mqtt2telegram.projects.royz.cc\/api\/v1.0\/send \\ -H \"Content-Type: application\/json\" \\ -d \"{\\\"topic\\\": \\\"${TOPIC}\\\", \\\"payload\\\": \\\"${MESSAGE}\\\"}\"<\/code><\/pre>\n<p>\u0433\u0434\u0435, <code>LOGIN<\/code> &#8212; telegramId\/chatId, <code>PASSWORD<\/code> &#8212; \u0432\u044b\u0434\u0430\u0441\u0442 \u0431\u043e\u0442, \u043b\u0438\u0431\u043e \u043f\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u0435 <code>\/creds<\/code> ,<code>TOPIC<\/code> &#8212; \u0442\u043e\u043f\u0438\u043a, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u044b \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043b\u0438\u0441\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 <code>\/sub &lt;topic><\/code> , <code>MESSAGE<\/code> &#8212; \u0442\u0435\u043a\u0441\u0442 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f (\u0441 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u043e\u0439 Markdown)<\/p>\n<\/div>\n<\/details>\n<details class=\"spoiler\">\n<summary>Python<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"python\">import requests  url = \"https:\/\/mqtt2telegram.projects.royz.cc\/api\/v1.0\/send\"  login = \"1234567\" password = \"aaBBccEEdd\"  topic = \"YOUR_TOPIC\"  json = {     \"topic\": topic,     \"payload\": \"YOUR_MESSAGE\" }  requests.post(url, auth=(login, password), json=json)<\/code><\/pre>\n<\/p>\n<\/div>\n<\/details>\n<details class=\"spoiler\">\n<summary>JavaScript<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"javascript\">import got from \"got\"  async function sendMessage(login, password, topic, message) {   const url = 'https:\/\/mqtt2telegram.projects.royz.cc\/api\/v1.0\/send'   const hash = btoa(`${login}:${password}`)   const options = {     headers: {       authorization: `Basic ${hash}`     }    }   const json = {     topic,      payload: message   }   return got.post(url, {...options, json}) }<\/code><\/pre>\n<\/p>\n<\/div>\n<\/details>\n<h4>\u041c\u043e\u0438 \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f<\/h4>\n<ul>\n<li>\n<p>\u043a\u0430\u0436\u0434\u044b\u0439 \u0434\u0435\u043d\u044c \u044f \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u044e \u0441\u0435\u0431\u0435 <a href=\"https:\/\/github.com\/zjor\/automation\/blob\/master\/send_qotd.py\" rel=\"noopener noreferrer nofollow\">\u0446\u0438\u0442\u0430\u0442\u0443<\/a> \u0434\u043d\u044f \u0438 <a href=\"https:\/\/github.com\/zjor\/automation\/blob\/master\/send_potd.py\" rel=\"noopener noreferrer nofollow\">\u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443<\/a> \u0434\u043d\u044f \u0438\u0437 \u0412\u0438\u043a\u0438\u043f\u0435\u0434\u0438\u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e scheduled job \u0432 github actions<\/p>\n<\/li>\n<li>\n<p>\u043a\u0430\u0436\u0434\u044b\u0435 5 \u043c\u0438\u043d\u0443\u0442 <a href=\"https:\/\/github.com\/zjor\/automation\/blob\/master\/binance_notifier\/src\/check_binance_orders.py\" rel=\"noopener noreferrer nofollow\">\u044d\u0442\u043e\u0442 \u0441\u043a\u0440\u0438\u043f\u0442<\/a> \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u0442 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043e\u0440\u0434\u0435\u0440\u043e\u0432 \u043d\u0430 Binance, \u0435\u0441\u043b\u0438 \u0447\u0442\u043e-\u0442\u043e \u0441\u043e\u0437\u0434\u0430\u043b\u043e\u0441\u044c\/\u043f\u0440\u043e\u0434\u0430\u043b\u043e\u0441\u044c, \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0435<\/p>\n<\/li>\n<li>\n<p>\u0443 \u043c\u0435\u043d\u044f \u0435\u0441\u0442\u044c <a href=\"https:\/\/github.com\/zjor\/arduino\/tree\/master\/iot-toggle\" rel=\"noopener noreferrer nofollow\">IoT-\u043a\u043d\u043e\u043f\u043a\u0430<\/a>, \u0430\u043d\u0442\u0438-\u043f\u0440\u043e\u043a\u0440\u0430\u0441\u0442\u0438\u043d\u0430\u0442\u043e\u0440, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 busy\/idle \u0440\u0435\u0436\u0438\u043c \u0432 <a href=\"http:\/\/toggl.com\" rel=\"noopener noreferrer nofollow\">toggl.com<\/a>, \u044d\u0442\u043e \u043d\u0435 \u0438\u043c\u0435\u0435\u0442 \u043d\u0438\u0447\u0435\u0433\u043e \u043e\u0431\u0449\u0435\u0433\u043e \u0441 \u043f\u0435\u0440\u0435\u0441\u044b\u043b\u043a\u043e\u0439 \u0442\u0435\u043b\u0435\u0433\u0440\u0430\u043c, \u043f\u0440\u043e\u0441\u0442\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043b MQTT \u043d\u0430 \u0442\u043e\u0439 \u0436\u0435 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0435, \u0438 \u043a\u0430\u043a \u043f\u043e\u0431\u043e\u0447\u043d\u044b\u0439 \u044d\u0444\u0444\u0435\u043a\u0442 \u043c\u043e\u0433\u0443 \u044d\u0442\u0438\u043c \u0436\u0435 \u0431\u043e\u0442\u043e\u043c \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u0442\u043e\u043f\u0438\u043a \u043e\u0431 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f\u0445 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u043a\u043d\u043e\u043f\u043a\u0438<\/p>\n<\/li>\n<li>\n<p>(\u043f\u043e\u043a\u0430 \u0438\u0434\u0435\u044f) \u0442.\u043a. \u0432 MQTT \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0441\u0440\u0430\u0437\u0443 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443, \u043c\u043e\u0436\u043d\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0441 \u043a\u0430\u043c\u0435\u0440\u044b \u043f\u043e \u0440\u0430\u0441\u043f\u0438\u0441\u0430\u043d\u0438\u044e \u0438\u043b\u0438 \u043f\u0440\u0438 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u0438\u0438 \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044f<\/p>\n<\/li>\n<\/ul>\n<h4>Stack<\/h4>\n<ul>\n<li>\n<p>\u0421\u0435\u0440\u0432\u0435\u0440 \u043d\u0430 <a href=\"https:\/\/javalin.io\/\" rel=\"noopener noreferrer nofollow\">Javalin<\/a> (\u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0441\u044b\u0440\u043e\u0439 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a, \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043f\u0440\u043e\u0441\u0438\u0442\u044c \u0434\u043e\u0434\u0435\u043b\u044b\u0432\u0430\u0442\u044c \u0444\u0438\u0447\u0438), <a href=\"https:\/\/github.com\/rubenlagus\/TelegramBots\" rel=\"noopener noreferrer nofollow\">TelegramBots<\/a><\/p>\n<\/li>\n<li>\n<p>MQTTv5: <a href=\"https:\/\/www.hivemq.com\/\" rel=\"noopener noreferrer nofollow\">HiveMQ<\/a> \u0432 \u043e\u0431\u043b\u0430\u043a\u0435, \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e\u0433\u043e \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0430 \u0445\u0432\u0430\u0442\u0430\u0435\u0442<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/cloud.mongodb.com\/\" rel=\"noopener noreferrer nofollow\">MongoDB<\/a> \u0432 \u043e\u0431\u043b\u0430\u043a\u0435 \u0434\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0438 \u0442\u043e\u043f\u0438\u043a\u043e\u0432 <\/p>\n<\/li>\n<li>\n<p>CI\/CD: github actions (\u0434\u0435\u043f\u043b\u043e\u0439 \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e helm \u0432 k8s \u043f\u043e\u0434 \u0443\u0440\u043f\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c <a href=\"https:\/\/rancher.com\/\" rel=\"noopener noreferrer nofollow\">Rancher<\/a>)<\/p>\n<\/li>\n<\/ul>\n<p><a href=\"https:\/\/github.com\/zjor\/mqtt2telegram\" rel=\"noopener noreferrer nofollow\">\u041a\u043e\u0434 \u043f\u0440\u043e\u0435\u043a\u0442\u0430<\/a> \u0438 <a href=\"https:\/\/zjor.github.io\/mqtt2telegram\/\" rel=\"noopener noreferrer nofollow\">\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f<\/a>.<\/p>\n<p>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0439\u0442\u0435\u0441\u044c \u0438 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0439\u0442\u0435 \u043e \u0432\u0430\u0448\u0438\u0445 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u0445 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0438\u043b\u0438 \u0438\u0434\u0435\u044f\u0445 \u043d\u043e\u0432\u044b\u0445 \u0444\u0438\u0447.<\/p>\n<p>\u0421\u043f\u0430\u0441\u0438\u0431\u043e \u0437\u0430 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435!<\/p>\n<\/p>\n<\/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\/post\/683698\/\"> https:\/\/habr.com\/ru\/post\/683698\/<\/a><br \/><\/br><\/br><\/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-337324","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/337324","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=337324"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/337324\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=337324"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=337324"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=337324"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}