{"id":482278,"date":"2026-06-03T15:29:29","date_gmt":"2026-06-03T15:29:29","guid":{"rendered":"https:\/\/savepearlharbor.com\/?p=482278"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=482278","title":{"rendered":"\u041a\u0430\u043a \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c wi-fi \u0440\u043e\u0437\u0435\u0442\u043a\u043e\u0439 \u043e\u0442 Xiaomi \u0447\u0435\u0440\u0435\u0437 \u0443\u043c\u043d\u044b\u0435 \u0447\u0430\u0441\u044b (\u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0447\u0430\u0441\u043e\u0432 Garmin)"},"content":{"rendered":"<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0412\u0432\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435:<\/p>\n<p>\u0430) \u0418\u043c\u0435\u044e\u0442\u0441\u044f \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0441\u0442\u0430\u0440\u044b\u0435, \u043d\u043e \u0434\u043e \u0441\u0438\u0445 \u0432\u0435\u0441\u044c\u043c\u0430 \u0432\u044b\u0441\u043e\u043a\u043e\u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0447\u043d\u044b\u0435 \u0443\u043c\u043d\u044b\u0435 \u0447\u0430\u0441\u044b &#8212; Garmin Fenix 6 Pro Solar, \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0438\u0435 \u043d\u0430 \u043f\u0440\u043e\u043f\u0440\u0438\u0435\u0442\u0430\u0440\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 Garmin. <br \/>\u0431) \u0423\u043c\u043d\u044b\u0435 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u0440\u043e\u0437\u0435\u0442\u043a\u0438 \u043e\u0442 Xiaomi Smart Plug 2 Wi-Fi.<\/p>\n<p>\u041f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u0437\u0430\u0434\u0430\u0447\u0430, \u0430 \u0441\u043a\u043e\u0440\u0435\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0435 \u0434\u0438\u043a\u043e \u0437\u0443\u0434\u044f\u0449\u0435\u0435 \u0436\u0435\u043b\u0430\u043d\u0438\u0435 \u0432 \u0441\u0442\u0438\u043b\u0435 \u201c\u043a\u0443\u043b\u0438\u0431\u0438\u043d\u0441\u0442\u0432\u043e\u201d &#8212; \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0442\u0430\u043a\u0438\u043c\u0438 \u0440\u043e\u0437\u0435\u0442\u043a\u0430\u043c\u0438 (\u0445\u043e\u0442\u044f \u0431\u044b \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e \u0432\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u0438 \u0432\u044b\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u0438\u0445) \u043f\u0440\u044f\u043c\u043e \u0441 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0445 \u0447\u0430\u0441\u043e\u0432.<\/p>\n<p>\u0416\u0435\u043b\u0430\u043d\u0438\u0435 \u0435\u0441\u0442\u044c, \u043d\u0430\u0447\u0438\u043d\u0430\u044e \u0438\u0437\u0443\u0447\u0430\u0442\u044c \u0437\u0430\u0434\u0430\u0447\u0443. \u0418 \u0440\u0435\u0448\u0430\u0442\u044c \u0435\u0451, \u043a\u0430\u043a \u044d\u0442\u043e \u0443 \u043c\u0435\u043d\u044f \u043e\u0431\u044b\u0447\u043d\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442, \u043d\u0435\u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u043c \u043f\u0443\u0442\u0435\u043c.<\/p>\n<p>\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0432\u044b\u044f\u0441\u043d\u044f\u044e, \u043a\u0430\u043a \u0432\u043e\u043e\u0431\u0449\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043e \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u0440\u043e\u0437\u0435\u0442\u043a\u0430\u043c\u0438 Xiaomi? \u0423\u043c\u043d\u044b\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 Xiaomi \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 \u0444\u0438\u0440\u043c\u0435\u043d\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 Xiaomi Home, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043e\u0442\u043b\u0438\u0447\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432 OS Android. \u041f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043e\u0433\u0440\u043e\u043c\u043d\u043e\u0435 \u043f\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0443, \u0433\u0440\u043e\u043c\u043e\u0437\u0434\u043a\u043e\u0435, \u043f\u043e \u0441\u0443\u0442\u0438 &#8212; \u0446\u0435\u043b\u044b\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u0439 \u201c\u043a\u043e\u043c\u0431\u0430\u0439\u043d\u201d \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043e\u0433\u0440\u043e\u043c\u043d\u044b\u043c \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e\u043c \u0443\u043c\u043d\u044b\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 Xiaomi. \u041e\u0447\u0435\u043d\u044c \u0431\u044b\u0441\u0442\u0440\u043e \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u043f\u043e\u043d\u044f\u0442\u043d\u043e, \u0447\u0442\u043e \u043d\u0430 \u0447\u0430\u0441\u044b Garmin \u043d\u0438\u043a\u0430\u043a\u043e\u0433\u043e \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u0438\u043b\u0438 \u043a\u0430\u043a\u043e\u0433\u043e-\u043b\u0438\u0431\u043e \u043a\u043e\u043c\u043f\u0430\u043a\u0442\u043d\u043e\u0433\u043e \u0444\u043e\u0440\u043a\u0430 \u043d\u0435\u0442 \u0438 \u0431\u044b\u0442\u044c \u043d\u0435 \u043c\u043e\u0436\u0435\u0442. \u0421\u043b\u0438\u0448\u043a\u043e\u043c \u0443\u0436 \u0441\u043a\u0440\u043e\u043c\u043d\u044b\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0443 \u0447\u0430\u0441\u043e\u0432 Garmin \u043f\u0440\u0438 \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 \u0442\u0430\u043a\u0438\u043c \u043c\u043e\u043d\u0441\u0442\u0440\u0443\u043e\u0437\u043d\u044b\u043c \u0441\u043e\u0444\u0442\u043e\u043c!<\/p>\n<p>\u0418 \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u0440\u0435\u0448\u0438\u043b \u043f\u043e\u0439\u0442\u0438 \u0434\u0440\u0443\u0433\u0438\u043c \u043f\u0443\u0442\u0451\u043c:<\/p>\n<ol>\n<li>\n<p>\u0412 \u043c\u043e\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0438 \u0432\u0441\u0435 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0435 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u0440\u043e\u0437\u0435\u0442\u043a\u0438 \u0443 \u043c\u0435\u043d\u044f \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u0432 \u0434\u043e\u043c\u0430\u0448\u043d\u0435\u0439 \u0441\u0435\u0442\u0438, \u0437\u0430 NAT \u0440\u043e\u0443\u0442\u0435\u0440\u0430. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0434\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u043e\u0434\u043d\u043e\u0439 \u0442\u0430\u043a\u043e\u0439 \u0440\u043e\u0437\u0435\u0442\u043a\u0438 \u0432\u044b\u044f\u0441\u043d\u044f\u044e, \u043a\u0430\u043a\u043e\u0439 \u0443 \u043d\u0435\u0451 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439 IP-\u0430\u0434\u0440\u0435\u0441? \u041f\u0440\u043e\u0449\u0435 \u0432\u0441\u0435\u0433\u043e \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0438\u0437 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u043f\u0440\u044f\u043c\u043e \u0438\u0437 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0435\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f Xiaomi Home \u0432 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430\u0445 \u0440\u043e\u0437\u0435\u0442\u043a\u0438. \u041b\u0438\u0431\u043e \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0440\u043e\u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0432\u043e\u044e \u0434\u043e\u043c\u0430\u0448\u043d\u044e\u044e \u0441\u0435\u0442\u044c \u0438 \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0441\u0440\u0435\u0434\u0438 \u0434\u0440\u0443\u0433\u0438\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 IP \u0430\u0434\u0440\u0435\u0441 \u044d\u0442\u043e\u0439 \u0440\u043e\u0437\u0435\u0442\u043a\u0438, \u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u0443\u044f\u0441\u044c \u043d\u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 Beijing Xiaomi Mobile Software Co., Ltd. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432 \u043c\u043e\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 IP \u0430\u0434\u0440\u0435\u0441 \u0440\u043e\u0437\u0435\u0442\u043a\u0438 &#8212; 192.168.8.199. \u0418 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0440\u043e\u0437\u0435\u0442\u043a\u0430 \u043d\u0430 \u043f\u043e\u0440\u0442\u0443 54321 \u043f\u043e \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0443 UDP.<\/p>\n<\/li>\n<li>\n<p>\u0422\u0430\u043a \u043a\u0430\u043a \u0432 \u043c\u043e\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0443 \u043c\u0435\u043d\u044f \u0435\u0441\u0442\u044c \u043f\u043e\u043b\u043d\u044b\u0439 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u043c\u043e\u0435\u043c\u0443 \u0440\u043e\u0443\u0442\u0435\u0440\u0443, \u0442\u043e \u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u044e\u0441\u044c \u043a \u043d\u0435\u043c\u0443 \u043f\u043e ssh \u0438 \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u0438 \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u044e \u0444\u043e\u0440\u0432\u0430\u0440\u0434\u0438\u043d\u0433:<\/p>\n<\/li>\n<\/ol>\n<p>iptables -t nat -I POSTROUTING -p udp -d 192.168.8.199 &#8212;dport 54321 -j MASQUERADE<\/p>\n<p>\u0433\u0434\u0435 192.168.8.199 &#8212; \u0442\u0435\u043a\u0443\u0449\u0438\u0439 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u0430\u0434\u0440\u0435\u0441 \u0440\u043e\u0437\u0435\u0442\u043a\u0438.<\/p>\n<p>\u041f\u043e\u043d\u044f\u0442\u043d\u043e\u0435 \u0434\u0435\u043b\u043e, \u0447\u0442\u043e \u044d\u0442\u043e \u043b\u0438\u0448\u044c \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0439 \u0444\u043e\u0440\u0432\u0430\u0440\u0434\u0438\u043d\u0433, \u043d\u0430 \u043c\u043e\u043c\u0435\u043d\u0442\u044b \u0442\u0435\u0441\u0442\u0430, \u0438 \u043e\u043d \u201c\u0441\u043b\u0435\u0442\u0438\u0442\u201d \u043f\u043e\u0441\u043b\u0435  \u043b\u044e\u0431\u043e\u0439 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0440\u043e\u0443\u0442\u0435\u0440\u0430 \u0438\u043b\u0438 \u0435\u0433\u043e \u0432\u044b\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f\/\u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f. \u041f\u043e\u0442\u043e\u043c \u0432\u0441\u0435\u0433\u0434\u0430 \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u044b\u0439.<\/p>\n<p>\u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0432 \u0440\u043e\u0443\u0442\u0435\u0440\u0435 \u043d\u0443\u0436\u043d\u043e \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043f\u0440\u043e\u0431\u0440\u043e\u0441 UDP \u043f\u043e\u0440\u0442\u0430 54321 (\u0441\u043d\u0430\u0440\u0443\u0436\u0438 \u0432\u043d\u0443\u0442\u0440\u044c \u043d\u0430 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439 IP \u0440\u043e\u0437\u0435\u0442\u043a\u0438, \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043d\u0430 192.168.8.199).<\/p>\n<p>\u0414\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0438\u0435 \u201c\u0445\u043e\u0434\u044b\u201d \u0432 \u0440\u0435\u0448\u0435\u043d\u0438\u0438 \u0437\u0430\u0434\u0430\u0447\u0438 \u044f \u0440\u0435\u0448\u0438\u043b \u043f\u0440\u043e\u0434\u0435\u043b\u0430\u0442\u044c, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043d\u0430 \u043e\u0434\u043d\u043e\u043c \u0438\u0437 \u0441\u0432\u043e\u0438\u0445 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u044b\u0445 win-\u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432, \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0432 \u0442\u0430\u043c Node.js. \u041d\u0435 \u0441\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0439\u0442\u0435, \u043f\u043e\u0447\u0435\u043c\u0443 win-\u0441\u0435\u0440\u0432\u0435\u0440 \u0438 Node.js. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b, \u0447\u0442\u043e \u0431\u044b\u043b\u043e \u043f\u043e\u0434 \u0440\u0443\u043a\u043e\u0439 \u0438 \u0447\u0442\u043e \u0438\u043c\u0435\u0435\u0442 \u201c\u0431\u0435\u043b\u044b\u0439\u201d IP, \u0440\u0430\u0431\u043e\u0442\u0430\u044f \u043f\u043e \u0441\u0445\u0435\u043c\u0435 24\/7. \u0414\u0430 \u0438 \u043f\u043e\u0434 Node.js \u0443 \u043c\u0435\u043d\u044f \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u044b. \u0420\u0430\u0437\u0443\u043c\u0435\u0435\u0442\u0441\u044f, \u0432\u0441\u0451 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0434\u0435\u043b\u0430\u0442\u044c \u0438 \u043f\u043e\u0434 Linux.<\/p>\n<p>\u0427\u0442\u043e \u0434\u0430\u043b\u044c\u0448\u0435:<\/p>\n<ol>\n<li>\n<p>C\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043d\u0430 \u0434\u0438\u0441\u043a\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u0430\u043f\u043a\u0443 \u0441 \u0438\u043c\u0435\u043d\u0435\u043c, \u201cc:\\Xiaomi\u201d.<\/p>\n<\/li>\n<li>\n<p>\u0414\u0430\u043b\u0435\u0435, \u043d\u0430\u0445\u043e\u0434\u044f\u0441\u044c \u0432 \u044d\u0442\u043e\u0439 \u043f\u0430\u043f\u043a\u0435, \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043c (\u0432 \u043c\u043e\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435) \u043a\u043e\u043d\u0441\u043e\u043b\u044c Windows \u0438 \u0441\u043a\u043e\u043c\u0430\u043d\u0434\u0443\u0435\u043c:<\/p>\n<\/li>\n<\/ol>\n<p>npm install express npm install miio npm install miio-api<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0432 \u043b\u043e\u0433\u0435 \u043e\u0442\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043a\u043e\u043c\u0430\u043d\u0434 \u043f\u043e\u043f\u0440\u043e\u0441\u0438\u0442 \u0447\u0442\u043e-\u0442\u043e \u0434\u043e\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c, \u0442\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u043c, \u0442\u043e \u0447\u0442\u043e \u043f\u0440\u043e\u0441\u0438\u0442, \u0434\u043e\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0432 \u043d\u0443\u0436\u043d\u044b\u0435 \u043f\u0430\u043a\u0435\u0442\u044b \u0438 \u0443\u0434\u043e\u0432\u043b\u0435\u0442\u0432\u043e\u0440\u0438\u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438.<\/p>\n<p>\u0422\u0435\u043c \u0441\u0430\u043c\u044b\u043c \u043c\u044b \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u0443\u044e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0447\u0435\u0440\u0435\u0437 \u0441\u0440\u0435\u0434\u0443 Node.js, \u043f\u0443\u0442\u0435\u043c \u0432\u0435\u0431-\u0440\u0435\u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0432, \u0441\u0432\u043e\u0438\u043c\u0438 \u0440\u043e\u0437\u0435\u0442\u043a\u0430\u043c\u0438 Xiaomi. \u041f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043c\u043e\u0434\u0443\u043b\u0435\u0439 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u0443:<\/p>\n<p>npm audit fix &#8212;force<\/p>\n<p>\u0447\u0442\u043e\u0431\u044b \u0443\u0431\u0435\u0434\u0438\u0442\u044c\u0441\u044f, \u0447\u0442\u043e \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u044b\u0445 \u0438 \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0445 \u201c\u0434\u044b\u0440\u201d \u0432 \u0440\u0430\u0431\u043e\u0442\u0435 Node.js \u0441\u0435\u0439\u0447\u0430\u0441 \u043d\u0435\u0442.<\/p>\n<p>    3. \u0417\u0430\u0442\u0435\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0438 \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432 \u043f\u0430\u043f\u043a\u0443 Xiaomi \u0441\u043a\u0440\u0438\u043f\u0442 \u0441 \u0438\u043c\u0435\u043d\u0435\u043c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440,  index.js \u0438 \u0441 \u0442\u0430\u043a\u0438\u043c \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u044b\u043c (\u044f \u043e\u0441\u0442\u0430\u0432\u0438\u043b \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438 \u0432 \u043a\u043e\u0434\u0435 \u0434\u043b\u044f \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u044f, \u0447\u0442\u043e \u0438 \u043a \u0447\u0435\u043c\u0443):<\/p>\n<p>const express = require(\u2018express\u2019); const miio = require(\u2018miio-api\u2019); \/\/ \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c miio-api const app = express();<\/p>\n<p>const deviceIp = \u2018111.111.111.111\u2019; const deviceToken = \u20181855c4f24c7fb6592e348903f78e4c164\u2019;<\/p>\n<p>async function setPlugState(state) { const device = await miio.device({ address: deviceIp, token: deviceToken }); \/\/ \u041a\u043e\u043c\u0430\u043d\u0434\u0430 \u0434\u043b\u044f Smart Plug 2 (siid 2, piid 1) const res = await <a href=\"http:\/\/device.call\" rel=\"noopener noreferrer nofollow\">device.call<\/a>(\u2018set_properties\u2019, [ { did: \u2018any\u2019, siid: 2, piid: 1, value: state } ]); return res; }<\/p>\n<p>app.get(\u2018\/on\u2019, async (req, res) =&gt; { try { await setPlugState(true); res.send(\u2018\u0420\u043e\u0437\u0435\u0442\u043a\u0430 \u0412\u041a\u041b\u042e\u0427\u0415\u041d\u0410\u2019); } catch (err) { res.status(500).send(&#8216;\u041e\u0448\u0438\u0431\u043a\u0430: \u2019 + err.message); } });<\/p>\n<p>app.get(\u2018\/off\u2019, async (req, res) =&gt; { try { await setPlugState(false); res.send(\u2018\u0420\u043e\u0437\u0435\u0442\u043a\u0430 \u0412\u042b\u041a\u041b\u042e\u0427\u0415\u041d\u0410\u2019); } catch (err) { res.status(500).send(&#8216;\u041e\u0448\u0438\u0431\u043a\u0430: \u2019 + err.message); } });<\/p>\n<p>app.listen(3000, () =&gt; console.log(\u2018\u0421\u0435\u0440\u0432\u0435\u0440: <a href=\"http:\/\/localhost:3000\/on%E2%80%99\" rel=\"noopener noreferrer nofollow\">http:\/\/localhost:3000\/on\u2019<\/a>));<\/p>\n<p>\u0412 \u044d\u0442\u043e\u043c \u0441\u043a\u0440\u0438\u043f\u0442\u0435 \u043d\u0430\u0434\u043e \u043e\u0442\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u0441\u0435\u0433\u043e \u0434\u0432\u0435 \u0441\u0442\u0440\u043e\u043a\u0438:<\/p>\n<p>const deviceIp = \u2018111.111.111.111\u2019; const deviceToken = \u20181855c4f24c7fb6592e348903f78e4c164\u2019;<\/p>\n<p>\u0432 \u043f\u0435\u0440\u0432\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435 \u043d\u0430\u0434\u043e \u0432\u043f\u0438\u0441\u0430\u0442\u044c \u0432\u043d\u0435\u0448\u043d\u0438\u0439 IP \u0441\u0432\u043e\u0435\u0433\u043e \u0440\u043e\u0443\u0442\u0435\u0440\u0430 (\u0432 \u043c\u043e\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u044d\u0442\u043e \u0434\u043e\u043c\u0430\u0448\u043d\u0438\u0439 \u0440\u043e\u0443\u0442\u0435\u0440), \u043a \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0430 \u0440\u043e\u0437\u0435\u0442\u043a\u0430, \u0430 \u0432\u043e \u0432\u0442\u043e\u0440\u043e\u0439 &#8212; 32-\u0437\u043d\u0430\u0447\u043d\u044b\u0439 \u0442\u043e\u043a\u0435\u043d \u0440\u043e\u0437\u0435\u0442\u043a\u0438.<\/p>\n<p>\u041a\u0430\u043a \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0442\u0430\u043a\u043e\u0439 \u0442\u043e\u043a\u0435\u043d? \u0412\u0441\u0451 \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442\u043e! \u041f\u043e\u0433\u0443\u0433\u043b\u0438\u0442\u0435 \u043f\u043e \u0441\u043b\u043e\u0432\u0430\u043c:<\/p>\n<p>\u201cXiaomi-cloud-tokens-extractor github\u201d<\/p>\n<p>\u0418 \u0432\u044b \u0441\u0440\u0430\u0437\u0443 \u0436\u0435 \u043d\u0430\u0439\u0434\u0435\u0442\u0435 \u0438 \u0441\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0431\u0438\u043d\u0430\u0440\u043d\u0438\u043a, \u0438 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u044d\u043a\u0441\u0442\u0440\u0430\u043a\u0442\u043e\u0440\u0430 \u0442\u043e\u043a\u0435\u043d\u0430, \u0447\u0442\u043e\u0431\u044b \u0442\u043e\u0447\u043d\u043e \u0437\u043d\u0430\u0442\u044c, \u0447\u0442\u043e \u0432 \u043a\u043e\u0434\u0435 \u0432\u0441\u0451 \u0447\u0438\u0441\u0442\u043e \u0438 \u044d\u043a\u0441\u0442\u0440\u0430\u043a\u0442\u043e\u0440 \u201c\u043d\u0435 \u0443\u0432\u0435\u0434\u0435\u0442\u201d \u0412\u0430\u0448\u0438 \u0442\u043e\u043a\u0435\u043d\u044b \u0440\u043e\u0437\u0435\u0442\u043e\u043a.<\/p>\n<p>\u0414\u0430\u043b\u044c\u0448\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0435 \u0447\u0435\u0440\u0435\u0437 \u044d\u0442\u043e\u0442 \u044d\u043a\u0441\u0442\u0440\u0430\u043a\u0442\u043e\u0440 \u0442\u043e\u043a\u0435\u043d \u0441\u0432\u043e\u0435\u0439 \u0440\u043e\u0437\u0435\u0442\u043a\u0438 (-\u043e\u043a). \u041d\u0430 github-\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u044d\u043a\u0441\u0442\u0440\u0430\u043a\u0442\u043e\u0440\u0430 \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442\u043e \u0438 \u043f\u043e\u043d\u044f\u0442\u043d\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u043e, \u043a\u0430\u043a \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0431\u0443\u043a\u0432\u0430\u043b\u044c\u043d\u043e \u0432 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043a\u043b\u0438\u043a\u043e\u0432.<\/p>\n<p>4. \u041e\u0442\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0432 \u0441\u043a\u0440\u0438\u043f\u0442 \u0441 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u043c\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c\u0438 IP \u0438 \u0442\u043e\u043a\u0435\u043d\u0430, \u043d\u0430\u043c \u0442\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u0434\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043d\u0430 win-\u0441\u0435\u0440\u0432\u0435\u0440\u0435 (\u0432 \u043c\u043e\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435), \u043d\u0430 \u043b\u043e\u043a\u0430\u043b\u0445\u043e\u0441\u0442\u0435 \u043d\u0430 \u043f\u043e\u0440\u0442\u0443 3000 (\u043f\u043e\u0440\u0442 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c \u0432 \u043a\u043e\u0434\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u0430) \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0435\u0440 \u0434\u043b\u044f \u0440\u0435\u0442\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u043a \u0440\u043e\u0437\u0435\u0442\u043a\u0435.<\/p>\n<p>\u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u0438, \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043d\u043e\u0439 \u0447\u0435\u0440\u0435\u0437 \u041f\u0443\u0441\u043a-\u0412\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c-cmd, \u043a\u043e\u043c\u0430\u043d\u0434\u0443\u0435\u043c:<\/p>\n<p>ssh-keygen -t ed25519<\/p>\n<p>\u0438 \u043f\u0440\u043e\u0439\u0434\u044f \u043f\u0440\u043e\u0441\u0442\u044b\u0435 \u0434\u0438\u0430\u043b\u043e\u0433\u043e\u0432\u044b\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u044b, \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0439 \u043d\u0430\u043c \u0434\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0437\u0430\u0434\u0430\u0447\u0438 ssh-\u043a\u043b\u044e\u0447, \u043d\u0430 \u0437\u0430\u043f\u0440\u043e\u0441\u0435 \u0444\u0438\u043d\u0433\u0435\u0440\u043f\u0440\u0438\u043d\u0442\u0430 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0430\u0440\u0443 \u0440\u0430\u0437 \u043d\u0430\u0436\u0430\u0432 Enter. \u042d\u0442\u0443 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u043d\u0443\u0436\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u0438\u043d \u0440\u0430\u0437 \u0434\u043b\u044f \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043a\u043b\u044e\u0447\u0430.<\/p>\n<p>\u0417\u0430\u0442\u0435\u043c \u0432 \u0434\u0440\u0443\u0433\u043e\u0439 \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043d\u043e\u0439 \u043a\u043e\u043d\u0441\u043e\u043b\u0438 \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0441\u044f \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c\u044e \u0441\u0434\u0435\u043b\u0430\u0442\u044c ssh-\u043f\u0440\u043e\u0431\u0440\u043e\u0441 \u0441 \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u043c \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435\u043c \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0433\u043e \u0434\u043e\u043c\u0435\u043d\u0430 \u0447\u0435\u0440\u0435\u0437 \u043e\u043d\u043b\u0430\u0439\u043d-\u0441\u0435\u0440\u0432\u0438\u0441, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0447\u0435\u0440\u0435\u0437 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0438\u0441 <a href=\"http:\/\/srv.us\" rel=\"noopener noreferrer nofollow\">srv.us<\/a>:<\/p>\n<p>ssh <a href=\"http:\/\/srv.us\" rel=\"noopener noreferrer nofollow\">srv.us<\/a> -R 1:127.0.0.1:3000<\/p>\n<p>\u042d\u0442\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0442\u044c\u0441\u044f \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u043c\u0443 ssh-\u043a\u043b\u0438\u0435\u043d\u0442\u0443 \u0432\u0430\u0448\u0435\u0439 OS \u043a \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u043c\u0443 \u043e\u043d\u043b\u0430\u0439\u043d-\u0441\u0435\u0440\u0432\u0438\u0441\u0443 \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0439 \u0434\u043e\u043c\u0435\u043d \u0434\u043b\u044f \u043f\u0440\u043e\u0431\u0440\u043e\u0441\u0430 \u043a \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043d\u043e\u043c\u0443 \u043d\u0430 \u043b\u043e\u043a\u0430\u043b\u0445\u043e\u0441\u0442\u0435 \u0412\u0430\u0448\u0435\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u0442\u043e\u043c\u0443 \u0441\u0430\u043c\u043e\u043c\u0443 \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0435\u0440\u0443 \u0434\u043b\u044f \u0442\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u0438 \u0432\u0435\u0431-\u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u043a \u0440\u043e\u0437\u0435\u0442\u043a\u0435 Xiaomi, \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0435\u0439, \u0432 \u0441\u0432\u043e\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c, \u0432 \u0412\u0430\u0448\u0435\u0439 \u0434\u043e\u043c\u0430\u0448\u043d\u0435\u0439 \u0441\u0435\u0442\u0438 \u0437\u0430 NAT.<\/p>\n<p>\u041f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0439 \u0434\u043e\u043c\u0435\u043d \u0432 \u0441\u0441\u044b\u043b\u043a\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a\u043e\u0433\u043e \u0432\u0438\u0434\u0430:<\/p>\n<p><a href=\"https:\/\/esnivup33tkale57bmnamz6l7m.srv.us\/\" rel=\"noopener noreferrer nofollow\">https:\/\/esnivup33tkale57bmnamz6l7m.srv.us\/<\/a><\/p>\n<p>(\u0443 \u0412\u0430\u0441 \u0441\u0441\u044b\u043b\u043a\u0430 \u0438 \u0434\u043e\u043c\u0435\u043d \u0431\u0443\u0434\u0443\u0442 \u0434\u0440\u0443\u0433\u0438\u043c\u0438!)<\/p>\n<p>\u0418 \u0442\u0435\u043f\u0435\u0440\u044c \u0443 \u0412\u0430\u0441 \u0435\u0441\u0442\u044c \u0441\u0430\u043c\u044b\u0435 \u043e\u0431\u044b\u0447\u043d\u044b\u0435 \u0441\u0441\u044b\u043b\u043a\u0438, \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0440\u043e\u0437\u0435\u0442\u043a\u043e\u0439 Xiaomi \u0438\u0437 \u043f\u0440\u0438\u043c\u0435\u0440\u0430, \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u043e\u0433\u043e \u0432\u044b\u0448\u0435, \u0438\u0437 \u043b\u044e\u0431\u043e\u0439 \u0432\u043d\u0435\u0448\u043d\u0435\u0439 \u0441\u0435\u0442\u0438, \u043d\u0430 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0438 \u0432\u044b\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435:<\/p>\n<p><a href=\"https:\/\/esnivup33tkale57bmnamz6l7m.srv.us\/off\" rel=\"noopener noreferrer nofollow\">https:\/\/esnivup33tkale57bmnamz6l7m.srv.us\/off<\/a><\/p>\n<p>(\u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0440\u043e\u0437\u0435\u0442\u043a\u0443)<\/p>\n<p><a href=\"https:\/\/esnivup33tkale57bmnamz6l7m.srv.us\/on\" rel=\"noopener noreferrer nofollow\">https:\/\/esnivup33tkale57bmnamz6l7m.srv.us\/on<\/a><\/p>\n<p>(\u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0440\u043e\u0437\u0435\u0442\u043a\u0443)<\/p>\n<p>\u0420\u0430\u0437\u0443\u043c\u0435\u0435\u0442\u0441\u044f, \u0412\u0430\u0448\u0438 \u0441\u0441\u044b\u043b\u043a\u0438 \u0431\u0443\u0434\u0443\u0442 \u0441 \u0412\u0430\u0448\u0438\u043c \u0434\u043e\u043c\u0435\u043d\u043e\u043c, \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u043c \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u043c \u0432\u044b\u0448\u0435 \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c. \u0421 \u044d\u0442\u043e\u0433\u043e \u043c\u043e\u043c\u0435\u043d\u0442\u0430 \u0443 \u043d\u0430\u0441 \u0442\u0435\u043f\u0435\u0440\u044c \u0443\u0436\u0435 \u0435\u0441\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0440\u043e\u0437\u0435\u0442\u043a\u0430\u043c\u0438 \u043f\u0440\u043e\u0441\u0442\u044b\u043c\u0438 \u0432\u0435\u0431-\u0437\u0430\u043f\u0440\u043e\u0441\u0430\u043c\u0438, \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u043c\u0438 \u0412\u044b\u0448\u0435, \u0447\u0435\u0440\u0435\u0437 \u043b\u044e\u0431\u043e\u0439 \u0441\u043e\u0444\u0442 \u0438\u043b\u0438 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u044b.<\/p>\n<p>\u041d\u043e, \u043d\u0430\u043f\u043e\u043c\u043d\u044e, \u0447\u0442\u043e \u044f \u0445\u043e\u0442\u0435\u043b \u044d\u0442\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u0447\u0435\u0440\u0435\u0437 \u0447\u0430\u0441\u044b Garmin!<\/p>\n<p>\u0422\u0443\u0442 \u0432\u0441\u0451 \u043f\u0440\u043e\u0441\u0442\u043e. \u041a \u0441\u0447\u0430\u0441\u0442\u044c\u044e, \u0434\u043b\u044f \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0445 \u0447\u0430\u0441\u043e\u0432 \u0435\u0441\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0443\u043c\u0435\u044e\u0442 \u0434\u0435\u043b\u0430\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u0435 \u201c\u043a\u043d\u043e\u043f\u043a\u0438\u201d \u0432 \u0442\u0430\u043a\u0438\u0445 \u0447\u0430\u0441\u0430\u0445 \u0441 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u043c\u0438 \u0438\u043c\u0435\u043d\u0430\u043c\u0438 \u0438 \u0432\u0435\u0431-\u0441\u0441\u044b\u043b\u043a\u0430\u043c\u0438 \u043f\u043e\u0434 \u043d\u0438\u043c\u0438.<\/p>\n<p>\u041a\u0430\u043a \u0412\u044b \u0443\u0436\u0435 \u0434\u043e\u0433\u0430\u0434\u0430\u043b\u0438\u0441\u044c, \u043e\u0441\u0442\u0430\u043d\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0432 \u0447\u0430\u0441\u0430\u0445 \u0442\u0430\u043a\u0438\u0435 \u201c\u043a\u043d\u043e\u043f\u043a\u0438-\u0441\u0441\u044b\u043b\u043a\u0438\u201d \u043d\u0430 On \u0438 Off \u0434\u043b\u044f \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0439 \u0440\u043e\u0437\u0435\u0442\u043a\u0438, \u0430 \u0441\u0430\u043c\u0438 \u0447\u0430\u0441\u044b, \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435, \u043a\u0430\u043a \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0441\u043e \u0432\u0441\u0435\u043c\u0438 \u0443\u043c\u043d\u044b\u043c\u0438 \u0447\u0430\u0441\u0430\u043c\u0438, \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u044b \u043a \u043b\u044e\u0431\u043e\u043c\u0443 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0443 \u0447\u0435\u0440\u0435\u0437 \u0441\u043e\u043f\u0440\u044f\u0436\u0435\u043d\u043d\u044b\u0439 \u0441 \u0447\u0430\u0441\u0430\u043c\u0438 \u0442\u0435\u043b\u0435\u0444\u043e\u043d.<\/p>\n<p>\u0412 \u043c\u043e\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u044f \u043f\u0440\u043e\u0441\u0442\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b \u043d\u0430 \u0447\u0430\u0441\u044b Garmin \u0432\u0438\u0434\u0436\u0435\u0442 \u201cMyHomeControl\u201d (\u043b\u0435\u0433\u043a\u043e \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043d\u0430 \u0441\u0430\u0439\u0442\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 Garmin), \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u0434\u0432\u0435 \u201c\u043a\u043d\u043e\u043f\u043a\u0438-\u0441\u0441\u044b\u043b\u043a\u0438\u201d \u0441\u043e \u0441\u0441\u044b\u043b\u043a\u0430\u043c\u0438, \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u043c\u0438 \u0432\u044b\u0448\u0435. \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043d\u0430 \u0447\u0430\u0441\u0430\u0445 \u044d\u0442\u043e\u0442 \u0432\u0438\u0434\u0436\u0435\u0442 MyHomeControl \u0438 \u0432\u0441\u0435\u0433\u043e \u043f\u0430\u0440\u043e\u0439 \u043a\u043d\u043e\u043f\u043e\u043a-\u0441\u0441\u044b\u043b\u043e\u043a \u0432\u044b\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u0438 \u0432\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u0440\u043e\u0437\u0435\u0442\u043a\u0443 Xiaomi.<\/p>\n<p>\u041a\u043e\u043d\u0435\u0447\u043d\u043e, \u044f \u043f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u043e \u043f\u043e\u043d\u0438\u043c\u0430\u044e, \u0447\u0442\u043e \u0432\u044b\u0448\u0435 \u044f \u0441\u0434\u0435\u043b\u0430\u043b \u0432\u0441\u0451, \u043c\u044f\u0433\u043a\u043e \u0433\u043e\u0432\u043e\u0440\u044f, \u201c\u043d\u0430 \u043a\u043e\u043b\u0435\u043d\u043a\u0435\u201d, \u043f\u0440\u0438\u043c\u0438\u0442\u0438\u0432\u043d\u043e \u0438, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043d\u0435 \u0441\u043e\u0432\u0441\u0435\u043c \u043a\u043b\u0430\u0441\u0441\u043d\u043e \u0441 \u0442\u043e\u0447\u043a\u0438 \u0437\u0440\u0435\u043d\u0438\u044f \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438. \u041d\u043e \u0441\u0432\u043e\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0451\u0439 \u044f \u0445\u043e\u0442\u0435\u043b \u043e\u043f\u0438\u0441\u0430\u0442\u044c \u043b\u0438\u0448\u044c \u043c\u0435\u0442\u043e\u0434, \u0430 \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043e\u0447\u043d\u044b\u0435 \u0448\u0430\u0433\u0438 \u0412\u044b \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u043e\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u043e \u0434\u0440\u0443\u0433\u0438\u0435, \u043d\u0430 \u0412\u0430\u0448 \u0432\u043a\u0443\u0441.<\/p>\n<p>\u0421\u043f\u0430\u0441\u0438\u0431\u043e \u0437\u0430 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u043d\u0430\u0434\u0435\u044e\u0441\u044c, \u0447\u0442\u043e \u043c\u043e\u044f \u0441\u0442\u0430\u0442\u044c\u044f \u043e\u043a\u0430\u0436\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u0412\u0430\u0441 \u043f\u043e\u043b\u0435\u0437\u043d\u043e\u0439.<\/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\/articles\/1043286\/\">https:\/\/habr.com\/ru\/articles\/1043286\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0412\u0432\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435:\u0430) \u0418\u043c\u0435\u044e\u0442\u0441\u044f \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0441\u0442\u0430\u0440\u044b\u0435, \u043d\u043e \u0434\u043e \u0441\u0438\u0445 \u0432\u0435\u0441\u044c\u043c\u0430 \u0432\u044b\u0441\u043e\u043a\u043e\u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0447\u043d\u044b\u0435 \u0443\u043c\u043d\u044b\u0435 \u0447\u0430\u0441\u044b &#8212; Garmin Fenix 6 Pro Solar, \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0438\u0435 \u043d\u0430 \u043f\u0440\u043e\u043f\u0440\u0438\u0435\u0442\u0430\u0440\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 Garmin. \u0431) \u0423\u043c\u043d\u044b\u0435 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u0440\u043e\u0437\u0435\u0442\u043a\u0438 \u043e\u0442 Xiaomi Smart Plug 2 Wi-Fi.\u041f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u0437\u0430\u0434\u0430\u0447\u0430, \u0430 \u0441\u043a\u043e\u0440\u0435\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0435 \u0434\u0438\u043a\u043e \u0437\u0443\u0434\u044f\u0449\u0435\u0435 \u0436\u0435\u043b\u0430\u043d\u0438\u0435 \u0432 \u0441\u0442\u0438\u043b\u0435 \u201c\u043a\u0443\u043b\u0438\u0431\u0438\u043d\u0441\u0442\u0432\u043e\u201d &#8212; \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0442\u0430\u043a\u0438\u043c\u0438 \u0440\u043e\u0437\u0435\u0442\u043a\u0430\u043c\u0438 (\u0445\u043e\u0442\u044f \u0431\u044b \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e \u0432\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u0438 \u0432\u044b\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u0438\u0445) \u043f\u0440\u044f\u043c\u043e \u0441 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0445 \u0447\u0430\u0441\u043e\u0432.\u0416\u0435\u043b\u0430\u043d\u0438\u0435 \u0435\u0441\u0442\u044c, \u043d\u0430\u0447\u0438\u043d\u0430\u044e \u0438\u0437\u0443\u0447\u0430\u0442\u044c \u0437\u0430\u0434\u0430\u0447\u0443. \u0418 \u0440\u0435\u0448\u0430\u0442\u044c \u0435\u0451, \u043a\u0430\u043a \u044d\u0442\u043e \u0443 \u043c\u0435\u043d\u044f \u043e\u0431\u044b\u0447\u043d\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442, \u043d\u0435\u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u043c \u043f\u0443\u0442\u0435\u043c.\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0432\u044b\u044f\u0441\u043d\u044f\u044e, \u043a\u0430\u043a \u0432\u043e\u043e\u0431\u0449\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043e \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u0440\u043e\u0437\u0435\u0442\u043a\u0430\u043c\u0438 Xiaomi? \u0423\u043c\u043d\u044b\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 Xiaomi \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 \u0444\u0438\u0440\u043c\u0435\u043d\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 Xiaomi Home, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043e\u0442\u043b\u0438\u0447\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432 OS Android. \u041f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043e\u0433\u0440\u043e\u043c\u043d\u043e\u0435 \u043f\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0443, \u0433\u0440\u043e\u043c\u043e\u0437\u0434\u043a\u043e\u0435, \u043f\u043e \u0441\u0443\u0442\u0438 &#8212; \u0446\u0435\u043b\u044b\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u0439 \u201c\u043a\u043e\u043c\u0431\u0430\u0439\u043d\u201d \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043e\u0433\u0440\u043e\u043c\u043d\u044b\u043c \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e\u043c \u0443\u043c\u043d\u044b\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 Xiaomi. \u041e\u0447\u0435\u043d\u044c \u0431\u044b\u0441\u0442\u0440\u043e \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u043f\u043e\u043d\u044f\u0442\u043d\u043e, \u0447\u0442\u043e \u043d\u0430 \u0447\u0430\u0441\u044b Garmin \u043d\u0438\u043a\u0430\u043a\u043e\u0433\u043e \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u0438\u043b\u0438 \u043a\u0430\u043a\u043e\u0433\u043e-\u043b\u0438\u0431\u043e \u043a\u043e\u043c\u043f\u0430\u043a\u0442\u043d\u043e\u0433\u043e \u0444\u043e\u0440\u043a\u0430 \u043d\u0435\u0442 \u0438 \u0431\u044b\u0442\u044c \u043d\u0435 \u043c\u043e\u0436\u0435\u0442. \u0421\u043b\u0438\u0448\u043a\u043e\u043c \u0443\u0436 \u0441\u043a\u0440\u043e\u043c\u043d\u044b\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0443 \u0447\u0430\u0441\u043e\u0432 Garmin \u043f\u0440\u0438 \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 \u0442\u0430\u043a\u0438\u043c \u043c\u043e\u043d\u0441\u0442\u0440\u0443\u043e\u0437\u043d\u044b\u043c \u0441\u043e\u0444\u0442\u043e\u043c!\u0418 \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u0440\u0435\u0448\u0438\u043b \u043f\u043e\u0439\u0442\u0438 \u0434\u0440\u0443\u0433\u0438\u043c \u043f\u0443\u0442\u0451\u043c:\u0412 \u043c\u043e\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0438 \u0432\u0441\u0435 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0435 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u0440\u043e\u0437\u0435\u0442\u043a\u0438 \u0443 \u043c\u0435\u043d\u044f \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u0432 \u0434\u043e\u043c\u0430\u0448\u043d\u0435\u0439 \u0441\u0435\u0442\u0438, \u0437\u0430 NAT \u0440\u043e\u0443\u0442\u0435\u0440\u0430. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0434\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u043e\u0434\u043d\u043e\u0439 \u0442\u0430\u043a\u043e\u0439 \u0440\u043e\u0437\u0435\u0442\u043a\u0438 \u0432\u044b\u044f\u0441\u043d\u044f\u044e, \u043a\u0430\u043a\u043e\u0439 \u0443 \u043d\u0435\u0451 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439 IP-\u0430\u0434\u0440\u0435\u0441? \u041f\u0440\u043e\u0449\u0435 \u0432\u0441\u0435\u0433\u043e \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0438\u0437 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u043f\u0440\u044f\u043c\u043e \u0438\u0437 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0435\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f Xiaomi Home \u0432 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430\u0445 \u0440\u043e\u0437\u0435\u0442\u043a\u0438. \u041b\u0438\u0431\u043e \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0440\u043e\u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0432\u043e\u044e \u0434\u043e\u043c\u0430\u0448\u043d\u044e\u044e \u0441\u0435\u0442\u044c \u0438 \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0441\u0440\u0435\u0434\u0438 \u0434\u0440\u0443\u0433\u0438\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 IP \u0430\u0434\u0440\u0435\u0441 \u044d\u0442\u043e\u0439 \u0440\u043e\u0437\u0435\u0442\u043a\u0438, \u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u0443\u044f\u0441\u044c \u043d\u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 Beijing Xiaomi Mobile Software Co., Ltd. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432 \u043c\u043e\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 IP \u0430\u0434\u0440\u0435\u0441 \u0440\u043e\u0437\u0435\u0442\u043a\u0438 &#8212; 192.168.8.199. \u0418 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0440\u043e\u0437\u0435\u0442\u043a\u0430 \u043d\u0430 \u043f\u043e\u0440\u0442\u0443 54321 \u043f\u043e \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0443 UDP.\u0422\u0430\u043a \u043a\u0430\u043a \u0432 \u043c\u043e\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0443 \u043c\u0435\u043d\u044f \u0435\u0441\u0442\u044c \u043f\u043e\u043b\u043d\u044b\u0439 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u043c\u043e\u0435\u043c\u0443 \u0440\u043e\u0443\u0442\u0435\u0440\u0443, \u0442\u043e \u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u044e\u0441\u044c \u043a \u043d\u0435\u043c\u0443 \u043f\u043e ssh \u0438 \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u0438 \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u044e \u0444\u043e\u0440\u0432\u0430\u0440\u0434\u0438\u043d\u0433:iptables -t nat -I POSTROUTING -p udp -d 192.168.8.199 &#8212;dport 54321 -j MASQUERADE\u0433\u0434\u0435 192.168.8.199 &#8212; \u0442\u0435\u043a\u0443\u0449\u0438\u0439 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u0430\u0434\u0440\u0435\u0441 \u0440\u043e\u0437\u0435\u0442\u043a\u0438.\u041f\u043e\u043d\u044f\u0442\u043d\u043e\u0435 \u0434\u0435\u043b\u043e, \u0447\u0442\u043e \u044d\u0442\u043e \u043b\u0438\u0448\u044c \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0439 \u0444\u043e\u0440\u0432\u0430\u0440\u0434\u0438\u043d\u0433, \u043d\u0430 \u043c\u043e\u043c\u0435\u043d\u0442\u044b \u0442\u0435\u0441\u0442\u0430, \u0438 \u043e\u043d \u201c\u0441\u043b\u0435\u0442\u0438\u0442\u201d \u043f\u043e\u0441\u043b\u0435  \u043b\u044e\u0431\u043e\u0439 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0440\u043e\u0443\u0442\u0435\u0440\u0430 \u0438\u043b\u0438 \u0435\u0433\u043e \u0432\u044b\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f\/\u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f. \u041f\u043e\u0442\u043e\u043c \u0432\u0441\u0435\u0433\u0434\u0430 \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u044b\u0439.\u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0432 \u0440\u043e\u0443\u0442\u0435\u0440\u0435 \u043d\u0443\u0436\u043d\u043e \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043f\u0440\u043e\u0431\u0440\u043e\u0441 UDP \u043f\u043e\u0440\u0442\u0430 54321 (\u0441\u043d\u0430\u0440\u0443\u0436\u0438 \u0432\u043d\u0443\u0442\u0440\u044c \u043d\u0430 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439 IP \u0440\u043e\u0437\u0435\u0442\u043a\u0438, \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043d\u0430 192.168.8.199).\u0414\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0438\u0435 \u201c\u0445\u043e\u0434\u044b\u201d \u0432 \u0440\u0435\u0448\u0435\u043d\u0438\u0438 \u0437\u0430\u0434\u0430\u0447\u0438 \u044f \u0440\u0435\u0448\u0438\u043b \u043f\u0440\u043e\u0434\u0435\u043b\u0430\u0442\u044c, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043d\u0430 \u043e\u0434\u043d\u043e\u043c \u0438\u0437 \u0441\u0432\u043e\u0438\u0445 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u044b\u0445 win-\u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432, \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0432 \u0442\u0430\u043c Node.js. \u041d\u0435 \u0441\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0439\u0442\u0435, \u043f\u043e\u0447\u0435\u043c\u0443 win-\u0441\u0435\u0440\u0432\u0435\u0440 \u0438 Node.js. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b, \u0447\u0442\u043e \u0431\u044b\u043b\u043e \u043f\u043e\u0434 \u0440\u0443\u043a\u043e\u0439 \u0438 \u0447\u0442\u043e \u0438\u043c\u0435\u0435\u0442 \u201c\u0431\u0435\u043b\u044b\u0439\u201d IP, \u0440\u0430\u0431\u043e\u0442\u0430\u044f \u043f\u043e \u0441\u0445\u0435\u043c\u0435 24\/7. \u0414\u0430 \u0438 \u043f\u043e\u0434 Node.js \u0443 \u043c\u0435\u043d\u044f \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u044b. \u0420\u0430\u0437\u0443\u043c\u0435\u0435\u0442\u0441\u044f, \u0432\u0441\u0451 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0434\u0435\u043b\u0430\u0442\u044c \u0438 \u043f\u043e\u0434 Linux.\u0427\u0442\u043e \u0434\u0430\u043b\u044c\u0448\u0435:C\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043d\u0430 \u0434\u0438\u0441\u043a\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u0430\u043f\u043a\u0443 \u0441 \u0438\u043c\u0435\u043d\u0435\u043c, \u201cc:\\Xiaomi\u201d.\u0414\u0430\u043b\u0435\u0435, \u043d\u0430\u0445\u043e\u0434\u044f\u0441\u044c \u0432 \u044d\u0442\u043e\u0439 \u043f\u0430\u043f\u043a\u0435, \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043c (\u0432 \u043c\u043e\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435) \u043a\u043e\u043d\u0441\u043e\u043b\u044c Windows \u0438 \u0441\u043a\u043e\u043c\u0430\u043d\u0434\u0443\u0435\u043c:npm install express npm install miio npm install miio-api\u0415\u0441\u043b\u0438 \u0432 \u043b\u043e\u0433\u0435 \u043e\u0442\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043a\u043e\u043c\u0430\u043d\u0434 \u043f\u043e\u043f\u0440\u043e\u0441\u0438\u0442 \u0447\u0442\u043e-\u0442\u043e \u0434\u043e\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c, \u0442\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u043c, \u0442\u043e \u0447\u0442\u043e \u043f\u0440\u043e\u0441\u0438\u0442, \u0434\u043e\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0432 \u043d\u0443\u0436\u043d\u044b\u0435 \u043f\u0430\u043a\u0435\u0442\u044b \u0438 \u0443\u0434\u043e\u0432\u043b\u0435\u0442\u0432\u043e\u0440\u0438\u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438.\u0422\u0435\u043c \u0441\u0430\u043c\u044b\u043c \u043c\u044b \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u0443\u044e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0447\u0435\u0440\u0435\u0437 \u0441\u0440\u0435\u0434\u0443 Node.js, \u043f\u0443\u0442\u0435\u043c \u0432\u0435\u0431-\u0440\u0435\u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0432, \u0441\u0432\u043e\u0438\u043c\u0438 \u0440\u043e\u0437\u0435\u0442\u043a\u0430\u043c\u0438 Xiaomi. \u041f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043c\u043e\u0434\u0443\u043b\u0435\u0439 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u0443:npm audit fix &#8212;force\u0447\u0442\u043e\u0431\u044b \u0443\u0431\u0435\u0434\u0438\u0442\u044c\u0441\u044f, \u0447\u0442\u043e \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u044b\u0445 \u0438 \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0445 \u201c\u0434\u044b\u0440\u201d \u0432 \u0440\u0430\u0431\u043e\u0442\u0435 Node.js \u0441\u0435\u0439\u0447\u0430\u0441 \u043d\u0435\u0442.    3. \u0417\u0430\u0442\u0435\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0438 \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432 \u043f\u0430\u043f\u043a\u0443 Xiaomi \u0441\u043a\u0440\u0438\u043f\u0442 \u0441 \u0438\u043c\u0435\u043d\u0435\u043c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440,  index.js \u0438 \u0441 \u0442\u0430\u043a\u0438\u043c \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u044b\u043c (\u044f \u043e\u0441\u0442\u0430\u0432\u0438\u043b \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438 \u0432 \u043a\u043e\u0434\u0435 \u0434\u043b\u044f \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u044f, \u0447\u0442\u043e \u0438 \u043a \u0447\u0435\u043c\u0443):const express = require(\u2018express\u2019); const miio = require(\u2018miio-api\u2019); \/\/ \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c miio-api const app = express();const deviceIp = \u2018111.111.111.111\u2019; const deviceToken = \u20181855c4f24c7fb6592e348903f78e4c164\u2019;async function setPlugState(state) { const device = await miio.device({ address: deviceIp, token: deviceToken }); \/\/ \u041a\u043e\u043c\u0430\u043d\u0434\u0430 \u0434\u043b\u044f Smart Plug 2 (siid 2, piid 1) const res = await device.call(\u2018set_properties\u2019, [ { did: \u2018any\u2019, siid: 2, piid: 1, value: state } ]); return res; }app.get(\u2018\/on\u2019, async (req, res) =&gt; { try { await setPlugState(true); res.send(\u2018\u0420\u043e\u0437\u0435\u0442\u043a\u0430 \u0412\u041a\u041b\u042e\u0427\u0415\u041d\u0410\u2019); } catch (err) { res.status(500).send(&#8216;\u041e\u0448\u0438\u0431\u043a\u0430: \u2019 + err.message); } });app.get(\u2018\/off\u2019, async (req, res) =&gt; { try { await setPlugState(false); res.send(\u2018\u0420\u043e\u0437\u0435\u0442\u043a\u0430 \u0412\u042b\u041a\u041b\u042e\u0427\u0415\u041d\u0410\u2019); } catch (err) { res.status(500).send(&#8216;\u041e\u0448\u0438\u0431\u043a\u0430: \u2019 + err.message); } });app.listen(3000, () =&gt; console.log(\u2018\u0421\u0435\u0440\u0432\u0435\u0440: http:\/\/localhost:3000\/on\u2019));\u0412 \u044d\u0442\u043e\u043c \u0441\u043a\u0440\u0438\u043f\u0442\u0435 \u043d\u0430\u0434\u043e \u043e\u0442\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u0441\u0435\u0433\u043e \u0434\u0432\u0435 \u0441\u0442\u0440\u043e\u043a\u0438:const deviceIp = \u2018111.111.111.111\u2019; const deviceToken = \u20181855c4f24c7fb6592e348903f78e4c164\u2019;\u0432 \u043f\u0435\u0440\u0432\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435 \u043d\u0430\u0434\u043e \u0432\u043f\u0438\u0441\u0430\u0442\u044c \u0432\u043d\u0435\u0448\u043d\u0438\u0439 IP \u0441\u0432\u043e\u0435\u0433\u043e \u0440\u043e\u0443\u0442\u0435\u0440\u0430 (\u0432 \u043c\u043e\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u044d\u0442\u043e \u0434\u043e\u043c\u0430\u0448\u043d\u0438\u0439 \u0440\u043e\u0443\u0442\u0435\u0440), \u043a \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0430 \u0440\u043e\u0437\u0435\u0442\u043a\u0430, \u0430 \u0432\u043e \u0432\u0442\u043e\u0440\u043e\u0439 &#8212; 32-\u0437\u043d\u0430\u0447\u043d\u044b\u0439 \u0442\u043e\u043a\u0435\u043d \u0440\u043e\u0437\u0435\u0442\u043a\u0438.\u041a\u0430\u043a \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0442\u0430\u043a\u043e\u0439 \u0442\u043e\u043a\u0435\u043d? \u0412\u0441\u0451 \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442\u043e! \u041f\u043e\u0433\u0443\u0433\u043b\u0438\u0442\u0435 \u043f\u043e \u0441\u043b\u043e\u0432\u0430\u043c:\u201cXiaomi-cloud-tokens-extractor github\u201d\u0418 \u0432\u044b \u0441\u0440\u0430\u0437\u0443 \u0436\u0435 \u043d\u0430\u0439\u0434\u0435\u0442\u0435 \u0438 \u0441\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0431\u0438\u043d\u0430\u0440\u043d\u0438\u043a, \u0438 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u044d\u043a\u0441\u0442\u0440\u0430\u043a\u0442\u043e\u0440\u0430 \u0442\u043e\u043a\u0435\u043d\u0430, \u0447\u0442\u043e\u0431\u044b \u0442\u043e\u0447\u043d\u043e \u0437\u043d\u0430\u0442\u044c, \u0447\u0442\u043e \u0432 \u043a\u043e\u0434\u0435 \u0432\u0441\u0451 \u0447\u0438\u0441\u0442\u043e \u0438 \u044d\u043a\u0441\u0442\u0440\u0430\u043a\u0442\u043e\u0440 \u201c\u043d\u0435 \u0443\u0432\u0435\u0434\u0435\u0442\u201d \u0412\u0430\u0448\u0438 \u0442\u043e\u043a\u0435\u043d\u044b \u0440\u043e\u0437\u0435\u0442\u043e\u043a.\u0414\u0430\u043b\u044c\u0448\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0435 \u0447\u0435\u0440\u0435\u0437 \u044d\u0442\u043e\u0442 \u044d\u043a\u0441\u0442\u0440\u0430\u043a\u0442\u043e\u0440 \u0442\u043e\u043a\u0435\u043d \u0441\u0432\u043e\u0435\u0439 \u0440\u043e\u0437\u0435\u0442\u043a\u0438 (-\u043e\u043a). \u041d\u0430 github-\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u044d\u043a\u0441\u0442\u0440\u0430\u043a\u0442\u043e\u0440\u0430 \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442\u043e \u0438 \u043f\u043e\u043d\u044f\u0442\u043d\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u043e, \u043a\u0430\u043a \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0431\u0443\u043a\u0432\u0430\u043b\u044c\u043d\u043e \u0432 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043a\u043b\u0438\u043a\u043e\u0432.4. \u041e\u0442\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0432 \u0441\u043a\u0440\u0438\u043f\u0442 \u0441 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u043c\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c\u0438 IP \u0438 \u0442\u043e\u043a\u0435\u043d\u0430, \u043d\u0430\u043c \u0442\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u0434\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043d\u0430 win-\u0441\u0435\u0440\u0432\u0435\u0440\u0435 (\u0432 \u043c\u043e\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435), \u043d\u0430 \u043b\u043e\u043a\u0430\u043b\u0445\u043e\u0441\u0442\u0435 \u043d\u0430 \u043f\u043e\u0440\u0442\u0443 3000 (\u043f\u043e\u0440\u0442 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c \u0432 \u043a\u043e\u0434\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u0430) \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0435\u0440 \u0434\u043b\u044f \u0440\u0435\u0442\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u043a \u0440\u043e\u0437\u0435\u0442\u043a\u0435.\u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u0438, \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043d\u043e\u0439 \u0447\u0435\u0440\u0435\u0437 \u041f\u0443\u0441\u043a-\u0412\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c-cmd, \u043a\u043e\u043c\u0430\u043d\u0434\u0443\u0435\u043c:ssh-keygen -t ed25519\u0438 \u043f\u0440\u043e\u0439\u0434\u044f \u043f\u0440\u043e\u0441\u0442\u044b\u0435 \u0434\u0438\u0430\u043b\u043e\u0433\u043e\u0432\u044b\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u044b, \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0439 \u043d\u0430\u043c \u0434\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0437\u0430\u0434\u0430\u0447\u0438 ssh-\u043a\u043b\u044e\u0447, \u043d\u0430 \u0437\u0430\u043f\u0440\u043e\u0441\u0435 \u0444\u0438\u043d\u0433\u0435\u0440\u043f\u0440\u0438\u043d\u0442\u0430 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0430\u0440\u0443 \u0440\u0430\u0437 \u043d\u0430\u0436\u0430\u0432 Enter. \u042d\u0442\u0443 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u043d\u0443\u0436\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u0438\u043d \u0440\u0430\u0437 \u0434\u043b\u044f \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043a\u043b\u044e\u0447\u0430.\u0417\u0430\u0442\u0435\u043c \u0432 \u0434\u0440\u0443\u0433\u043e\u0439 \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043d\u043e\u0439 \u043a\u043e\u043d\u0441\u043e\u043b\u0438 \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0441\u044f \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c\u044e \u0441\u0434\u0435\u043b\u0430\u0442\u044c ssh-\u043f\u0440\u043e\u0431\u0440\u043e\u0441 \u0441 \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u043c \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435\u043c \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0433\u043e \u0434\u043e\u043c\u0435\u043d\u0430 \u0447\u0435\u0440\u0435\u0437 \u043e\u043d\u043b\u0430\u0439\u043d-\u0441\u0435\u0440\u0432\u0438\u0441, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0447\u0435\u0440\u0435\u0437 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0438\u0441 srv.us:ssh srv.us -R 1:127.0.0.1:3000\u042d\u0442\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0442\u044c\u0441\u044f \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u043c\u0443 ssh-\u043a\u043b\u0438\u0435\u043d\u0442\u0443 \u0432\u0430\u0448\u0435\u0439 OS \u043a \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u043c\u0443 \u043e\u043d\u043b\u0430\u0439\u043d-\u0441\u0435\u0440\u0432\u0438\u0441\u0443 \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0439 \u0434\u043e\u043c\u0435\u043d \u0434\u043b\u044f \u043f\u0440\u043e\u0431\u0440\u043e\u0441\u0430 \u043a \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043d\u043e\u043c\u0443 \u043d\u0430 \u043b\u043e\u043a\u0430\u043b\u0445\u043e\u0441\u0442\u0435 \u0412\u0430\u0448\u0435\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u0442\u043e\u043c\u0443 \u0441\u0430\u043c\u043e\u043c\u0443 \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0435\u0440\u0443 \u0434\u043b\u044f \u0442\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u0438 \u0432\u0435\u0431-\u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u043a \u0440\u043e\u0437\u0435\u0442\u043a\u0435 Xiaomi, \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0435\u0439, \u0432 \u0441\u0432\u043e\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c, \u0432 \u0412\u0430\u0448\u0435\u0439 \u0434\u043e\u043c\u0430\u0448\u043d\u0435\u0439 \u0441\u0435\u0442\u0438 \u0437\u0430 NAT.\u041f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0439 \u0434\u043e\u043c\u0435\u043d \u0432 \u0441\u0441\u044b\u043b\u043a\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a\u043e\u0433\u043e \u0432\u0438\u0434\u0430:https:\/\/esnivup33tkale57bmnamz6l7m.srv.us\/(\u0443 \u0412\u0430\u0441 \u0441\u0441\u044b\u043b\u043a\u0430 \u0438 \u0434\u043e\u043c\u0435\u043d \u0431\u0443\u0434\u0443\u0442 \u0434\u0440\u0443\u0433\u0438\u043c\u0438!)\u0418 \u0442\u0435\u043f\u0435\u0440\u044c \u0443 \u0412\u0430\u0441 \u0435\u0441\u0442\u044c \u0441\u0430\u043c\u044b\u0435 \u043e\u0431\u044b\u0447\u043d\u044b\u0435 \u0441\u0441\u044b\u043b\u043a\u0438, \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0440\u043e\u0437\u0435\u0442\u043a\u043e\u0439 Xiaomi \u0438\u0437 \u043f\u0440\u0438\u043c\u0435\u0440\u0430, \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u043e\u0433\u043e \u0432\u044b\u0448\u0435, \u0438\u0437 \u043b\u044e\u0431\u043e\u0439 \u0432\u043d\u0435\u0448\u043d\u0435\u0439 \u0441\u0435\u0442\u0438, \u043d\u0430 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0438 \u0432\u044b\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435:https:\/\/esnivup33tkale57bmnamz6l7m.srv.us\/off(\u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0440\u043e\u0437\u0435\u0442\u043a\u0443)https:\/\/esnivup33tkale57bmnamz6l7m.srv.us\/on(\u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0440\u043e\u0437\u0435\u0442\u043a\u0443)\u0420\u0430\u0437\u0443\u043c\u0435\u0435\u0442\u0441\u044f, \u0412\u0430\u0448\u0438 \u0441\u0441\u044b\u043b\u043a\u0438 \u0431\u0443\u0434\u0443\u0442 \u0441 \u0412\u0430\u0448\u0438\u043c \u0434\u043e\u043c\u0435\u043d\u043e\u043c, \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u043c \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u043c \u0432\u044b\u0448\u0435 \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c. \u0421 \u044d\u0442\u043e\u0433\u043e \u043c\u043e\u043c\u0435\u043d\u0442\u0430 \u0443 \u043d\u0430\u0441 \u0442\u0435\u043f\u0435\u0440\u044c \u0443\u0436\u0435 \u0435\u0441\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0440\u043e\u0437\u0435\u0442\u043a\u0430\u043c\u0438 \u043f\u0440\u043e\u0441\u0442\u044b\u043c\u0438 \u0432\u0435\u0431-\u0437\u0430\u043f\u0440\u043e\u0441\u0430\u043c\u0438, \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u043c\u0438 \u0412\u044b\u0448\u0435, \u0447\u0435\u0440\u0435\u0437 \u043b\u044e\u0431\u043e\u0439 \u0441\u043e\u0444\u0442 \u0438\u043b\u0438 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u044b.\u041d\u043e, \u043d\u0430\u043f\u043e\u043c\u043d\u044e, \u0447\u0442\u043e \u044f \u0445\u043e\u0442\u0435\u043b \u044d\u0442\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u0447\u0435\u0440\u0435\u0437 \u0447\u0430\u0441\u044b Garmin!\u0422\u0443\u0442 \u0432\u0441\u0451 \u043f\u0440\u043e\u0441\u0442\u043e. \u041a \u0441\u0447\u0430\u0441\u0442\u044c\u044e, \u0434\u043b\u044f \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0445 \u0447\u0430\u0441\u043e\u0432 \u0435\u0441\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0443\u043c\u0435\u044e\u0442 \u0434\u0435\u043b\u0430\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u0435 \u201c\u043a\u043d\u043e\u043f\u043a\u0438\u201d \u0432 \u0442\u0430\u043a\u0438\u0445 \u0447\u0430\u0441\u0430\u0445 \u0441 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u043c\u0438 \u0438\u043c\u0435\u043d\u0430\u043c\u0438 \u0438 \u0432\u0435\u0431-\u0441\u0441\u044b\u043b\u043a\u0430\u043c\u0438 \u043f\u043e\u0434 \u043d\u0438\u043c\u0438.\u041a\u0430\u043a \u0412\u044b \u0443\u0436\u0435 \u0434\u043e\u0433\u0430\u0434\u0430\u043b\u0438\u0441\u044c, \u043e\u0441\u0442\u0430\u043d\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0432 \u0447\u0430\u0441\u0430\u0445 \u0442\u0430\u043a\u0438\u0435 \u201c\u043a\u043d\u043e\u043f\u043a\u0438-\u0441\u0441\u044b\u043b\u043a\u0438\u201d \u043d\u0430 On \u0438 Off \u0434\u043b\u044f \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0439 \u0440\u043e\u0437\u0435\u0442\u043a\u0438, \u0430 \u0441\u0430\u043c\u0438 \u0447\u0430\u0441\u044b, \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435, \u043a\u0430\u043a \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0441\u043e \u0432\u0441\u0435\u043c\u0438 \u0443\u043c\u043d\u044b\u043c\u0438 \u0447\u0430\u0441\u0430\u043c\u0438, \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u044b \u043a \u043b\u044e\u0431\u043e\u043c\u0443 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0443 \u0447\u0435\u0440\u0435\u0437 \u0441\u043e\u043f\u0440\u044f\u0436\u0435\u043d\u043d\u044b\u0439 \u0441 \u0447\u0430\u0441\u0430\u043c\u0438 \u0442\u0435\u043b\u0435\u0444\u043e\u043d.\u0412 \u043c\u043e\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u044f \u043f\u0440\u043e\u0441\u0442\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b \u043d\u0430 \u0447\u0430\u0441\u044b Garmin \u0432\u0438\u0434\u0436\u0435\u0442 \u201cMyHomeControl\u201d (\u043b\u0435\u0433\u043a\u043e \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043d\u0430 \u0441\u0430\u0439\u0442\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 Garmin), \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u0434\u0432\u0435 \u201c\u043a\u043d\u043e\u043f\u043a\u0438-\u0441\u0441\u044b\u043b\u043a\u0438\u201d \u0441\u043e \u0441\u0441\u044b\u043b\u043a\u0430\u043c\u0438, \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u043c\u0438 \u0432\u044b\u0448\u0435. \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043d\u0430 \u0447\u0430\u0441\u0430\u0445 \u044d\u0442\u043e\u0442 \u0432\u0438\u0434\u0436\u0435\u0442 MyHomeControl \u0438 \u0432\u0441\u0435\u0433\u043e \u043f\u0430\u0440\u043e\u0439 \u043a\u043d\u043e\u043f\u043e\u043a-\u0441\u0441\u044b\u043b\u043e\u043a \u0432\u044b\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u0438 \u0432\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u0440\u043e\u0437\u0435\u0442\u043a\u0443 Xiaomi.\u041a\u043e\u043d\u0435\u0447\u043d\u043e, \u044f \u043f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u043e \u043f\u043e\u043d\u0438\u043c\u0430\u044e, \u0447\u0442\u043e \u0432\u044b\u0448\u0435 \u044f \u0441\u0434\u0435\u043b\u0430\u043b \u0432\u0441\u0451, \u043c\u044f\u0433\u043a\u043e \u0433\u043e\u0432\u043e\u0440\u044f, \u201c\u043d\u0430 \u043a\u043e\u043b\u0435\u043d\u043a\u0435\u201d, \u043f\u0440\u0438\u043c\u0438\u0442\u0438\u0432\u043d\u043e \u0438, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043d\u0435 \u0441\u043e\u0432\u0441\u0435\u043c \u043a\u043b\u0430\u0441\u0441\u043d\u043e \u0441 \u0442\u043e\u0447\u043a\u0438 \u0437\u0440\u0435\u043d\u0438\u044f \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438. \u041d\u043e \u0441\u0432\u043e\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0451\u0439 \u044f \u0445\u043e\u0442\u0435\u043b \u043e\u043f\u0438\u0441\u0430\u0442\u044c \u043b\u0438\u0448\u044c \u043c\u0435\u0442\u043e\u0434, \u0430 \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043e\u0447\u043d\u044b\u0435 \u0448\u0430\u0433\u0438 \u0412\u044b \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u043e\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u043e \u0434\u0440\u0443\u0433\u0438\u0435, \u043d\u0430 \u0412\u0430\u0448 \u0432\u043a\u0443\u0441.\u0421\u043f\u0430\u0441\u0438\u0431\u043e \u0437\u0430 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u043d\u0430\u0434\u0435\u044e\u0441\u044c, \u0447\u0442\u043e \u043c\u043e\u044f \u0441\u0442\u0430\u0442\u044c\u044f \u043e\u043a\u0430\u0436\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u0412\u0430\u0441 \u043f\u043e\u043b\u0435\u0437\u043d\u043e\u0439.\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 https:\/\/habr.com\/ru\/articles\/1043286\/<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-482278","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/482278","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=482278"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/482278\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=482278"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=482278"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=482278"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}