{"id":264860,"date":"2015-09-03T21:29:24","date_gmt":"2015-09-03T17:29:24","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=264860"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=264860","title":{"rendered":"\u201c\u0423\u043c\u043d\u044b\u0439 \u0434\u043e\u043c\u201d \u043d\u0430 \u0441\u043a\u043e\u0440\u0443\u044e \u0440\u0443\u043a\u0443"},"content":{"rendered":"<p>     \t\u0421 \u043d\u0430\u043c\u0438 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u044e\u0442 \u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f\u043c\u0438 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 <a href=\"http:\/\/masterkit.ru\/\">\u043c\u043e\u0434\u0443\u043b\u0435\u0439 \u041c\u0430\u0441\u0442\u0435\u0440 \u041a\u0438\u0442<\/a>:<br \/>  \u00ab\u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u0430 \u0440\u0435\u0448\u0438\u043b \u044f \u0442\u0443\u0442 \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0435\u043a\u0438\u0439 \u043f\u0440\u043e\u0442\u043e\u0442\u0438\u043f \u201c\u0443\u043c\u043d\u043e\u0433\u043e \u0434\u043e\u043c\u0430\u201d \u043d\u0430 \u0441\u043a\u043e\u0440\u0443\u044e \u0440\u0443\u043a\u0443 \u0438 \u0441 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u0437\u0430\u0442\u0440\u0430\u0442\u0430\u043c\u0438. \u201c\u0425\u043e\u0442\u0435\u043b\u043e\u043a\u201d \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u043c\u043d\u043e\u0433\u043e: \u0438 \u0441\u0432\u0435\u0442, \u0438 \u0432\u0435\u043d\u0442\u0438\u043b\u044f\u0446\u0438\u044f, \u0438 \u043e\u043a\u043d\u0430, \u0438 \u0432\u043e\u0434\u0430, \u0438 \u0418\u041a-\u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043f\u0440\u0438\u0431\u043e\u0440\u0430\u043c\u0438. \u041d\u0430 \u043f\u0435\u0440\u0432\u044b\u0445 \u043f\u043e\u0440\u0430\u0445 \u0440\u0435\u0448\u0438\u043b \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0442\u044c\u0441\u044f \u043c\u0438\u043d\u0438\u043c\u0443\u043c\u043e\u043c \u0437\u0430\u0434\u0430\u0447: \u0432\u0435\u043d\u0442\u0438\u043b\u044f\u0446\u0438\u044f \u0438 \u043e\u0441\u0432\u0435\u0449\u0435\u043d\u0438\u0435 \u0432 \u043a\u043e\u043c\u043d\u0430\u0442\u0435.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/d29\/3ba\/b3c\/d293bab3c8e74a03bd2efc794bd85b98.JPG\"\/><br \/>  <a name=\"habracut\"><\/a><br \/>  \u0417\u0430 \u043e\u0441\u043d\u043e\u0432\u0443 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0432\u0437\u044f\u043b Arduino Uno, \u0441 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c\u044e \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0447\u0435\u0442\u044b\u0440\u044c\u043c\u044f \u043f\u0438\u043d\u0430\u043c\u0438 \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e \u0434\u0440\u0443\u0433 \u043e\u0442 \u0434\u0440\u0443\u0433\u0430, \u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043c\u043e\u0434\u0443\u043b\u0435\u0439 \u0431\u0435\u0441\u043f\u0440\u043e\u0432\u043e\u0434\u043d\u043e\u0433\u043e \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043e\u0442 \u041c\u0430\u0441\u0442\u0435\u0440 \u041a\u0438\u0442: \u0440\u043e\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 \u0432\u0437\u044f\u043b\u0438 \u043d\u0430 \u0441\u0435\u0431\u044f \u043e\u0434\u043d\u043e- \u0438 \u0434\u0432\u0443\u0445\u043a\u0430\u043d\u0430\u043b\u044c\u043d\u044b\u0435 \u0440\u0435\u043b\u0435 <a href=\"http:\/\/masterkit.ru\/shop\/smarthome\/smarthouse\/1890072\">MP3328<\/a> \u0438 <a href=\"http:\/\/masterkit.ru\/shop\/smarthome\/smarthouse\/1890083\">MP3330<\/a>, \u0430 \u0441\u0438\u0433\u043d\u0430\u043b\u044b \u043d\u0430 \u043d\u0438\u0445 \u043f\u0435\u0440\u0435\u0434\u0430\u044e\u0442\u0441\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0432\u043e\u0441\u044c\u043c\u0438\u043a\u0430\u043d\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u0447\u0438\u043a\u0430 <a href=\"http:\/\/masterkit.ru\/shop\/smarthome\/smarthouse\/1890073\">MP3329<\/a> \u043d\u0430 \u0447\u0430\u0441\u0442\u043e\u0442\u0435 433 \u041c\u0413\u0446.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/245\/9e3\/4a0\/2459e34a025d4ed7b82eba1b1de97bd9.jpg\" width=\"270\"\/> <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/325\/1f5\/709\/3251f5709c59488cbd440baa8fbd6f0d.jpg\" width=\"270\"\/> <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/a8b\/ffa\/657\/a8bffa657e7848aaa1fd046a3a72302f.jpg\" width=\"270\"\/><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/130\/dc8\/2ac\/130dc82ac36446b2b3684ae3083a3e8c.JPG\"\/><\/p>\n<p>  \u041d\u0430 MP3330 \u044f \u043f\u043e\u0432\u0435\u0441\u0438\u043b \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0434\u0432\u0443\u043c\u044f \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434\u043d\u044b\u043c\u0438 \u043b\u0435\u043d\u0442\u0430\u043c\u0438 \u043d\u0430\u0434 \u0434\u0438\u0432\u0430\u043d\u043e\u043c, \u2014 \u0443\u044e\u0442\u043d\u0430\u044f \u043f\u043e\u0434\u0441\u0432\u0435\u0442\u043a\u0430 \u0434\u043b\u044f \u0432\u0435\u0447\u0435\u0440\u043d\u0435\u0433\u043e \u0447\u0442\u0435\u043d\u0438\u044f, \u2014 \u0430 \u043d\u0430 MP3328 \u2014 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 <a href=\"http:\/\/www.electronshik.ru\/item\/sm-s4306r-670783\">\u0441\u0435\u0440\u0432\u043e-\u043c\u0430\u0448\u0438\u043d\u043a\u043e\u0439<\/a> \u0434\u043b\u044f \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u043d\u0438\u044f \/ \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u043d\u0438\u044f \u043e\u043a\u043d\u0430. <\/p>\n<p>  \u041a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044e \u043f\u0440\u0438\u0432\u043e\u0434\u0430 \u0441\u043e\u043e\u0440\u0443\u0434\u0438\u043b \u0438\u0437 \u043f\u043e\u0434\u0440\u0443\u0447\u043d\u044b\u0445 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u043e\u0432, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e, \u0438\u0437 \u0434\u0435\u0442\u0430\u043b\u0435\u0439 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u0430 LEGO.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/5ca\/73a\/92f\/5ca73a92faab408c9c18cf7f83584240.JPG\"\/><\/p>\n<p>  \u041d\u0443 \u0438, \u0440\u0430\u0437\u0443\u043c\u0435\u0435\u0442\u0441\u044f, \u043f\u0440\u043e\u0441\u0442\u043e\u0433\u043e \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u043e \u0440\u0430\u0434\u0438\u043e\u043a\u0430\u043d\u0430\u043b\u0443 \u043c\u043d\u0435 \u0431\u044b\u043b\u043e \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e: \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c \u0431\u044b\u043b \u0434\u043e\u0441\u0442\u0443\u043f \u043a\u043e \u0432\u0441\u0435\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u0447\u0435\u0440\u0435\u0437 \u0432\u0435\u0431-\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0438 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438.<\/p>\n<p>  \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u0430 \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u044f \u0432\u0437\u044f\u043b \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 MySQL, \u0433\u0434\u0435 \u044f \u0441\u043e\u0437\u0434\u0430\u043b \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u0441 \u0430\u0439\u0434\u0438\u0448\u043d\u0438\u043a\u0430\u043c\u0438 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u0432, \u043f\u0438\u043d\u043e\u0432 \u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0438\u0437 \u043d\u0438\u0445, \u0432 \u0446\u0435\u043b\u044f\u0445 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u0432 \u043a \u043a\u0430\u0436\u0434\u043e\u043c\u0443 \u043e\u0431\u0449\u0438\u0439 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u0441\u0438\u0441\u0442\u0435\u043c\u044b. \u0422\u0430\u043a\u0436\u0435, \u044f \u0436\u0435\u0441\u0442\u043a\u043e \u0437\u0430\u0448\u0438\u043b \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u0442\u0430\u0439\u043c\u0435\u0440\u0430 \u043d\u0430 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f, \u0438 \u043f\u043e\u0434 \u044d\u0442\u043e \u0442\u043e\u0436\u0435 \u043f\u0440\u0435\u0434\u0443\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u043e \u043f\u043e\u043b\u0435. <\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/0cd\/a7b\/c0c\/0cda7bc0c4334f88b1108a9d681cc18a.png\"\/><\/p>\n<p>  \u041f\u0440\u0438 \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 \u0432\u0435\u0431-\u0441\u043e\u043a\u0435\u0442\u0430\u043c\u0438 Arduino \u0441\u043b\u0435\u0433\u043a\u0430 \u043f\u043e\u0434\u0433\u043b\u044e\u0447\u0438\u0432\u0430\u043b\u043e, \u0438 \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0442\u044c\u0441\u044f \u0432 \u043f\u0440\u0438\u0447\u0438\u043d\u0430\u0445 \u043f\u043e\u043a\u0430 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043d\u0435 \u0431\u044b\u043b\u043e, \u043f\u043e\u044d\u0442\u043e\u043c\u0443, \u043d\u0430\u0431\u0440\u043e\u0441\u0430\u043b \u043f\u043e-\u043f\u0440\u043e\u0441\u0442\u043e\u043c\u0443: ajax-\u0437\u0430\u043f\u0440\u043e\u0441\u0430\u043c\u0438 \u0447\u0435\u0440\u0435\u0437 \u043a\u0430\u0436\u0434\u044b\u0435 100\u043c\u0441. \u042d\u0442\u043e, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u0433\u0443\u0431\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0434\u043b\u044f \u0442\u0440\u0430\u0444\u0438\u043a\u0430 (\u043f\u043e\u0447\u0442\u0438 30\u041c\u0431 \u0432 \u0441\u0443\u0442\u043a\u0438), \u2014 \u043d\u043e \u0434\u043b\u044f \u043a\u0432\u0430\u0440\u0442\u0438\u0440\u044b \u0441 \u0431\u0435\u0437\u043b\u0438\u043c\u0438\u0442\u043d\u044b\u043c \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u043e\u043c \u043d\u0430 \u043f\u0435\u0440\u0432\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0445\u0432\u0430\u0442\u0438\u0442.<\/p>\n<p>  \u041f\u0440\u043e\u0441\u0442\u0435\u0439\u0448\u0438\u0439 \u0432\u0435\u0431-\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441: 4 \u043a\u043d\u043e\u043f\u043a\u0438, \u043f\u043e \u043e\u0434\u043d\u043e\u0439 \u043d\u0430 \u043a\u0430\u0436\u0434\u044b\u0439 \u043f\u0438\u043d. \u041e\u0434\u043d\u043e\u043a\u0440\u0430\u0442\u043d\u043e\u0435 \u043d\u0430\u0436\u0430\u0442\u0438\u0435 \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u0442 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435, \u0430 \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u043d\u0430\u0436\u0430\u0442\u0438\u0435 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442 \u0442\u0430\u0439\u043c\u0435\u0440 (\u0443 \u043c\u0435\u043d\u044f \u043f\u043e\u043a\u0430 \u0436\u0435\u0441\u0442\u043a\u043e \u0437\u0430\u0448\u0438\u0442\u044b 3 \u043c\u0438\u043d\u0443\u0442\u044b) \u043d\u0430 \u0435\u0433\u043e \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435. <\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/292\/562\/4a3\/2925624a3e8a49b1af311f0997925b99.JPG\" width=\"250\"\/> <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/642\/449\/4f3\/6424494f306c41178c9b57e4698aa83c.JPG\" width=\"250\"\/> <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/02e\/c67\/b48\/02ec67b48735456d9793e36837b50dbe.JPG\" width=\"250\"\/><\/p>\n<p>  \u0412 \u0438\u0442\u043e\u0433\u0435, \u0443\u043f\u0440\u043e\u0449\u0435\u043d\u043d\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u043b\u043e\u0433\u0438\u043a\u0438 \u0442\u0430\u043a\u043e\u0432\u0430:<\/p>\n<p>  \u0412\u0435\u0431-\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u043e\u0431\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u043a \u0441\u0435\u0440\u0432\u0435\u0440\u0443 \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u0432, \u043f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e, \u0432\u044b\u0432\u043e\u0434\u0438\u0442 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0441\u0438\u0441\u0442\u0435\u043c\u043e\u0439: 4 \u043a\u043d\u043e\u043f\u043a\u0438 \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u043c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044e \u0432\u0438\u0434\u0435:<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0421\u043a\u0440\u0438\u043f\u0442\u044b<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"javascript\">$.ajax({ \t\t\turl: 'engine\/ajax.php', \t\t\ttype: 'POST', \t\t\tdataType: 'json', \t\t\tdata: {action: 'getStates'}, \t\t}) \t\t.done(function(data) { \t\t\tfor (key in data.success){ \t\t\t\tvar controller = data.success[key]; \t\t\t\tif($('.btn#btn_' + controller.id).length === 0){ \t\t\t\t\thtml = ''; \t\t\t\t\thtml += '&lt;div '; \t\t\t\t\tif (controller.timer_switch &gt; 0){ \t\t\t\t\t\tvar seconds = 60  - (controller.timer_switch % 60) \t\t\t\t\t\thtml += 'seconds=&quot;' + seconds + '&quot;'; \t\t\t\t\t} \t\t\t\t\thtml += 'id=&quot;btn_' + controller.id + '&quot; class=&quot;btn&quot; state=&quot;' + controller.state + '&quot;&gt;&lt;div class=&quot;btn_timer&quot;&gt;&lt;\/div&gt;&lt;\/div&gt;'; \t\t\t\t\t$('#btn_placer').append(html); \t\t\t\t} else { \t\t\t\t\tif (controller.state == 1){ \t\t\t\t\t\t$('.btn#btn_' + controller.id).removeClass('btn_off').addClass('btn_on'); \t\t\t\t\t} else if (controller.state == 0){ \t\t\t\t\t\t$('.btn#btn_' + controller.id).removeClass('btn_on').addClass('btn_off'); \t\t\t\t\t} \t\t\t\t\tif (controller.timer_switch &gt; 0){ \t\t\t\t\t\tvar seconds = 60 - controller.timer_switch % 60; \t\t\t\t\t\tvar minutes = Math.floor(controller.timer_switch \/ 60); \t\t\t\t\t\t$('.btn#btn_' + controller.id).addClass('seconds').css('background-position', (-seconds * 100) + 'px 0px').find('.btn_timer').text(minutes + 'M'); \t\t\t\t\t} else { \t\t\t\t\t\t$('.btn#btn_' + controller.id).css('background-position', '0px 0px').removeClass('seconds').find('.btn_timer').text(''); \t\t\t\t\t} \t\t\t\t} \t\t\t} \t\t\tsetTimeout(function(){ \t\t\t\tgetStates(); \t\t\t}, 1000); \t\t}) \t\t.fail(function(data) { \t\t\tconsole.log('error'); \t\t});  <\/code><\/pre>\n<pre><code class=\"php\">function getStates($sql){ \t$result = $sql-&gt;query(&quot;SELECT * FROM `controllers` WHERE `home_id` = '1' ORDER BY `order`&quot;); \tif (isset($result-&gt;rows)){ \t\t$result = $result-&gt;rows; \t\tforeach ($result as $key =&gt; $value) { \t\t\tif (strtotime($result[$key]['timer']) &gt; -62169990000){ \t\t\t\t\/\/ echo strtotime($result[$key]['timer']); \t\t\t\t$timer_switch = strtotime($result[$key]['timer']) - strtotime(date(&quot;Y-m-d H:i:s&quot;)); \t\t\t\t$result[$key]['timer_switch'] = $timer_switch; \t\t\t\tif ($timer_switch &lt; 0){ \t\t\t\t\t$sql-&gt;query(&quot;UPDATE `controllers` SET `state` = '&quot;.$result[$key]['timer_state'].&quot;', `timer` = '0000-00-00 00:00:00', `timer_state` = '' WHERE `id` = '&quot;.$result[$key]['id'].&quot;'&quot;); \t\t\t\t} \t\t\t} \t\t} \t\t$res['success'] = $result; \t} else { \t\t$res['error'] = '\u041d\u0435\u0432\u0435\u0440\u043d\u044b\u0439 \u043f\u0430\u0440\u043e\u043b\u044c'; \t} \treturn $res; }  <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u041f\u0440\u0438 \u043d\u0430\u0436\u0430\u0442\u0438\u0438 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0439 \u043a\u043d\u043e\u043f\u043a\u0438 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0430 POST-\u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u043a \u0444\u0430\u0439\u043b\u0443 ajax.php:<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">JavaScript<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"javascript\">$(document).on('mousedown', '.btn', function(event){ \t\t\tevent.preventDefault(); \t\t\tvar id = parseInt($(this).attr('id').replace('btn_', '')); \t\t\tclick_wait = false; \t\t\tmousetimer = setTimeout(function(){ \t\t\t\tclick_wait = true; \t\t\t\tsetTimer(id);\t \t\t\t}, 2000); \t\t});  \t\t$(document).on('mouseup', '.btn', function(){ \t\t\tclearTimeout(mousetimer); \t\t\tif (!click_wait){ \t\t\t\tvar id = parseInt($(this).attr('id').replace('btn_', '')); \t\t\t\tswitchController(id); \t\t\t\tconsole.log('click !!!'); \t\t\t\tclick_wait = false; \t\t\t} \t\t}); \tfunction switchController(id){ \t\tvar el = $('.btn#btn_' + id); \t\tvar state = parseInt($(el).attr('state')); \t\tvar need_state; \t\tif (state == 0){ \t\t\tneed_state = 1; \t\t} else if (state == 1){ \t\t\tneed_state = 0; \t\t} \t\t$(el).addClass('waiting'); \t\t$.ajax({ \t\t\turl: 'engine\/ajax.php', \t\t\ttype: 'POST', \t\t\tdataType: 'json', \t\t\tdata: {action: 'setState', id: id, state: state, need_state: need_state}, \t\t}) \t\t.done(function(data) { \t\t\tif (data.success == 'ok'){ \t\t\t\t$(el).attr('state', need_state); \t\t\t\t$(el).removeClass('waiting').removeClass('btn_on').removeClass('btn_off'); \t\t\t\tif(need_state == 1){ \t\t\t\t\t$(el).addClass('btn_on'); \t\t\t\t} else if(need_state == 0){ \t\t\t\t\t$(el).addClass('btn_off'); \t\t\t\t} \t\t\t} \t\t}) \t\t.fail(function(data) { \t\t\tconsole.log('error'); \t\t}); \t} \tfunction setTimer(id){ \t\tvar el = $('.btn#btn_' + id); \t\tvar state = parseInt($(el).attr('state')); \t\tvar need_state; \t\tif (state == 0){ \t\t\tneed_state = 1; \t\t} else if (state == 1){ \t\t\tneed_state = 0; \t\t} \t\t$(el).attr('seconds', 0); \t\t$(el).addClass('seconds'); \t\t$.ajax({ \t\t\turl: 'engine\/ajax.php', \t\t\ttype: 'POST', \t\t\tdataType: 'json', \t\t\tdata: {action: 'setTimer', id: id, state: state, need_state: need_state}, \t\t}) \t\t.done(function(data) { \t\t}) \t\t.fail(function(data) { \t\t\tconsole.log('error'); \t\t}); \t}  <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0412 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 id \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u043c \u0430\u0439\u0434\u0438\u0448\u043d\u0438\u043a \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430, \u0430 \u0432 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 state \u2014 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0435\u0433\u043e \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f. \u0412 \u0444\u0430\u0439\u043b\u0435 ajax.php \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c POST-\u0437\u0430\u043f\u0440\u043e\u0441 \u0438 \u043a\u043b\u0430\u0434\u0451\u043c \u043d\u043e\u0432\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0437\u0430\u043f\u0438\u0441\u0438 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0433\u043e id.<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">PHP<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"php\">function setState($sql){ \t$need_state = (int)$_POST['need_state']; \t$state = (int)$_POST['state']; \t$id = (int)$_POST['id'];  \t$result = $sql-&gt;query(&quot;UPDATE `controllers` SET `state` = '&quot;.$need_state.&quot;', `timer` = '0000-00-00 00:00:00' WHERE `id` = '&quot;.$id.&quot;'&quot;); \t\/\/ \u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0432\u044b\u043f\u043e\u043b\u0435\u043d\u0435\u043d\u0438\u044f Arduino \t$result = $sql-&gt;query(&quot;SELECT `state` FROM `controllers` WHERE `id` = '&quot;.$id.&quot;'&quot;); \tif ($need_state == $result-&gt;row['state']){ \t\t$res['success'] = 'ok'; \t} else { \t\t$res['success'] = 'err'; \t} \treturn $res; }  function setTimer($sql){ \t$need_state = (int)$_POST['need_state']; \t$state = (int)$_POST['state']; \t$id = (int)$_POST['id'];  \t$result = $sql-&gt;query(&quot;UPDATE `controllers` SET `timer` = NOW() + INTERVAL 3 MINUTE, `timer_state` = '&quot;.$need_state.&quot;' WHERE `id` = '&quot;.$id.&quot;'&quot;); \t\/\/ \u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0432\u044b\u043f\u043e\u043b\u0435\u043d\u0435\u043d\u0438\u044f Arduino \t$result = $sql-&gt;query(&quot;SELECT `state` FROM `controllers` WHERE `id` = '&quot;.$id.&quot;'&quot;); \tif ($need_state == $result-&gt;row['state']){ \t\t$res['success'] = 'ok'; \t} else { \t\t$res['success'] = 'err'; \t} \treturn $res; }  <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  Arduino \u0436\u0435, \u0432 \u0441\u0432\u043e\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c, \u043f\u043e Ethernet \u043e\u0431\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u043a \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0435\u0440\u0443, \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u043a\u043b\u044e\u0447 \u0441\u0438\u0441\u0442\u0435\u043c\u044b, \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u0432, \u043f\u0430\u0440\u0441\u0438\u0442 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443 \u0438 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u0438\u043d\u043e\u0432. <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">PHP<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"php\">if (isset($_GET['key']) && $_GET['key'] !== ''){ \t\t$key = $_GET['key']; \t} else { \t\tdie; \t} \t $key = $sql-&gt;escape($key); \t$result = $sql-&gt;query(&quot;SELECT * FROM `controllers` WHERE `home_id` = '1' AND `key` = '&quot;.$key.&quot;' ORDER BY `order`&quot;); \tforeach ($result-&gt;rows as $key =&gt; $value) { \t\tif ($value['id'] == '1'){ \t\t\tif ($value['state'] == '1'){ \t\t\t\t$ar .= 'Q'; \t\t\t} else if ($value['state'] == '0') { \t\t\t\t$ar .= 'q'; \t\t\t} \t\t} \t\tif ($value['id'] == '2'){ \t\t\tif ($value['state'] == '1'){ \t\t\t\t$ar .= 'W'; \t\t\t} else if ($value['state'] == '0') { \t\t\t\t$ar .= 'w'; \t\t\t} \t\t} \t\tif ($value['id'] == '3'){ \t\t\tif ($value['state'] == '1'){ \t\t\t\t$ar .= 'E'; \t\t\t} else if ($value['state'] == '0') { \t\t\t\t$ar .= 'e'; \t\t\t} \t\t} \t}  <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e, \u0441\u0442\u0440\u043e\u043a\u0430 \u0432\u0438\u0434\u0430 \u201c%qUerTY\u201d \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u0442\u0441\u044f \u0432 \u0441\u043a\u0435\u0442\u0447, \u0433\u0434\u0435 \u043f\u0430\u0440\u0441\u0438\u0442\u0441\u044f, \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0436\u0435\u0441\u0442\u043a\u043e \u0437\u0430\u0448\u0438\u0442\u044b\u0445 \u043f\u0440\u0430\u0432\u0438\u043b: \u043a\u0430\u0436\u0434\u0430\u044f \u0431\u0443\u043a\u0432\u0430 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0441\u0432\u043e\u0435\u043c\u0443 \u043d\u043e\u043c\u0435\u0440\u0443 \u043f\u0438\u043d\u0430, \u0430 \u0440\u0435\u0433\u0438\u0441\u0442\u0440 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0437\u0430 \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435: \u043f\u0440\u043e\u043f\u0438\u0441\u043d\u0430\u044f \u2014 1, \u0441\u0442\u0440\u043e\u0447\u043d\u0430\u044f \u2014 0.<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">Arduino<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cs\">void readData(){   if (led_connect){     digitalWrite(6, HIGH);   } else {     digitalWrite(6, LOW);   }   digitalWrite(4, LOW);   previousMillis = currentMillis;      led_connect = !led_connect;     while (client.available()){             switch (char c = client.read()) {         case 'Q':           digitalWrite(9, HIGH);           break;         case 'q':           digitalWrite(9, LOW);           break;         case 'W':           digitalWrite(8, HIGH);           break;         case 'w':           digitalWrite(8, LOW);           break;         case 'E':           digitalWrite(7, HIGH);           myservo.write(0);           break;         case 'e':           digitalWrite(7, LOW);           myservo.write(180);           break;       }     } } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u041d\u0430 \u043f\u0438\u043d, \u043e\u0442\u0432\u0435\u0447\u0430\u044e\u0449\u0438\u0439 \u0437\u0430 \u0441\u0435\u0440\u0432\u043e-\u043c\u0430\u0448\u0438\u043d\u043a\u0443, \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043e\u0442 0 \u0434\u043e 180 (\u0433\u0440\u0430\u0434\u0443\u0441\u043e\u0432 \u043f\u043e\u0432\u043e\u0440\u043e\u0442\u0430), \u0430, \u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c, \u043d\u0430 \u0434\u0438\u043c\u043c\u0435\u0440 \u2014 \u0434\u043e 255. \u041c\u043d\u0435 \u0436\u0435 \u043f\u043e\u043a\u0430 \u0445\u0432\u0430\u0442\u0430\u0435\u0442 \u0434\u0432\u0443\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439: 0 \u0438\u043b\u0438 1.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/141\/631\/8c6\/1416318c6a664a5d90e299894b6ba46f.JPG\"\/><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/059\/b6c\/c6a\/059b6cc6ad224f8eab3ece4bdd303d0e.JPG\"\/><\/p>\n<p>  \u0421 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u043c \u043c\u043e\u0434\u0443\u043b\u0435\u0439 \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u043d\u0435 \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u043e: \u043e\u0431\u0430 \u0440\u0435\u043b\u0435 \u0441\u043e\u043f\u0440\u044f\u0433\u0430\u044e\u0442\u0441\u044f \u0441 \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u0447\u0438\u043a\u043e\u043c \u043e\u0434\u0438\u043d \u0440\u0430\u0437, \u0431\u0435\u0437 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e\u0439 \u043f\u0440\u0438\u0432\u044f\u0437\u043a\u0438, \u0438 \u043f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e\u0442 \u0441\u0432\u043e\u044e \u0437\u0430\u0434\u0430\u0447\u0443. <\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/239\/123\/1e0\/2391231e0f7646f9ab352d321dee4703.JPG\"\/><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/61b\/5d3\/aea\/61b5d3aea1c24afd91ce04fbb1895af5.JPG\"\/><\/p>\n<p>  \u0410 \u0432\u043e\u0442 \u0441 \u043c\u043e\u0449\u043d\u043e\u0441\u0442\u044c\u044e \u0441\u0435\u0440\u0432\u043e-\u043c\u0430\u0448\u0438\u043d\u043a\u0438 \u044f \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0441\u0447\u0438\u0442\u0430\u043b\u0441\u044f: \u0432\u0437\u044f\u043b \u043d\u0430 6 \u043a\u0433, \u2014 \u0447\u0435\u0433\u043e, \u0432 \u043e\u0431\u0449\u0435\u043c, \u0445\u0432\u0430\u0442\u0430\u0435\u0442 \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u0438\u043a\u0440\u044b\u0432\u0430\u0442\u044c \u0438 \u043e\u0442\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0441\u0442\u0432\u043e\u0440\u043a\u0443 \u043e\u043a\u043d\u0430, \u0447\u0442\u043e \u043e\u043d\u0430 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u043b\u0430\u0441\u044c \u043f\u043e\u0434 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u043c \u0432\u0435\u0441\u043e\u043c, \u2014 \u043d\u043e \u043b\u0443\u0447\u0448\u0435 \u0431\u0440\u0430\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u043f\u043e\u043c\u043e\u0449\u043d\u0435\u0435, \u043d\u0430 \u0441\u043b\u0443\u0447\u0430\u0439, \u0441\u0438\u043b\u044c\u043d\u043e\u0433\u043e \u0432\u0435\u0442\u0440\u0430 \u0438\u043b\u0438 \u0441\u043a\u0432\u043e\u0437\u043d\u044f\u043a\u0430.<\/p>\n<p>  \u0412\u043e\u043e\u0431\u0449\u0435, \u043f\u0440\u043e\u0441\u0442\u043e\u0440 \u0434\u043b\u044f \u0442\u0432\u043e\u0440\u0447\u0435\u0441\u0442\u0432\u0430 \u0431\u0435\u0437\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d: \u043a \u043f\u0440\u0438\u043c\u0435\u0440\u0443, \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0434\u0430\u0442\u0447\u0438\u043a\u0438, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, CO2 \u0438\u043b\u0438 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b, \u0438 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0442\u044c \/ \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u0442\u044c \u043e\u043a\u043d\u043e \u043f\u0440\u0438 \u0434\u043e\u0441\u0442\u0438\u0436\u0435\u043d\u0438\u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0445 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439.<br \/>  \u041d\u0443 \u0438 \u0432\u0441\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443, \u0440\u0430\u0437\u0443\u043c\u0435\u0435\u0442\u0441\u044f, \u044f \u043f\u043b\u0430\u043d\u0438\u0440\u0443\u044e \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u0442\u044c \u043d\u0430 \u0432\u0435\u0431-\u0441\u043e\u043a\u0435\u0442\u0430\u0445, \u043e\u0431\u043b\u0435\u0433\u0447\u0438\u0432 \u0437\u0430\u043f\u0440\u043e\u0441\u044b, \u2014 \u0438 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0431\u043e\u043b\u0435\u0435 \u0433\u0438\u0431\u043a\u043e\u0439 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0443 \u0438 \u043f\u0430\u0440\u0441\u0438\u043d\u0433 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432.<\/p>\n<p>  <a href=\"http:\/\/masterkit.ru\/zip\/HomeAjax.ino\">\u0421\u043a\u0435\u0442\u0447 \u0434\u043b\u044f \u0430\u0440\u0434\u0443\u0438\u043d\u043e<\/a><\/p>\n<p>  \u041d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u0432\u0438\u0434\u0435\u043e<\/p>\n<p>  \u0420\u0430\u0431\u043e\u0442\u0430 \u043f\u043e\u0434\u0441\u0432\u0435\u0442\u043a\u0438<br \/>  <iframe loading=\"lazy\" width=\"560\" height=\"349\" src=\"\/\/www.youtube.com\/embed\/W4LJ5nh4K9U?wmode=opaque\" frameborder=\"0\" allowfullscreen><\/iframe><\/p>\n<p>  \u041e\u0442\u043a\u0440\u044b\u0432\u0430\u043d\u0438\u0435 \u043e\u043a\u043d\u0430<br \/>  <iframe loading=\"lazy\" width=\"560\" height=\"349\" src=\"\/\/www.youtube.com\/embed\/dpH-pXnNcS4?wmode=opaque\" frameborder=\"0\" allowfullscreen><\/iframe><\/p>\n<p>  \u0414\u043c\u0438\u0442\u0440\u0438\u0439 \u041a\u0443\u0437\u043d\u0435\u0446\u043e\u0432\u00bb     \t<\/p>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/geektimes.ru\/post\/261332\/\"> http:\/\/geektimes.ru\/post\/261332\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>     \t\u0421 \u043d\u0430\u043c\u0438 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u044e\u0442 \u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f\u043c\u0438 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 <a href=\"http:\/\/masterkit.ru\/\">\u043c\u043e\u0434\u0443\u043b\u0435\u0439 \u041c\u0430\u0441\u0442\u0435\u0440 \u041a\u0438\u0442<\/a>:<br \/>  \u00ab\u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u0430 \u0440\u0435\u0448\u0438\u043b \u044f \u0442\u0443\u0442 \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0435\u043a\u0438\u0439 \u043f\u0440\u043e\u0442\u043e\u0442\u0438\u043f \u201c\u0443\u043c\u043d\u043e\u0433\u043e \u0434\u043e\u043c\u0430\u201d \u043d\u0430 \u0441\u043a\u043e\u0440\u0443\u044e \u0440\u0443\u043a\u0443 \u0438 \u0441 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u0437\u0430\u0442\u0440\u0430\u0442\u0430\u043c\u0438. \u201c\u0425\u043e\u0442\u0435\u043b\u043e\u043a\u201d \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u043c\u043d\u043e\u0433\u043e: \u0438 \u0441\u0432\u0435\u0442, \u0438 \u0432\u0435\u043d\u0442\u0438\u043b\u044f\u0446\u0438\u044f, \u0438 \u043e\u043a\u043d\u0430, \u0438 \u0432\u043e\u0434\u0430, \u0438 \u0418\u041a-\u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043f\u0440\u0438\u0431\u043e\u0440\u0430\u043c\u0438. \u041d\u0430 \u043f\u0435\u0440\u0432\u044b\u0445 \u043f\u043e\u0440\u0430\u0445 \u0440\u0435\u0448\u0438\u043b \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0442\u044c\u0441\u044f \u043c\u0438\u043d\u0438\u043c\u0443\u043c\u043e\u043c \u0437\u0430\u0434\u0430\u0447: \u0432\u0435\u043d\u0442\u0438\u043b\u044f\u0446\u0438\u044f \u0438 \u043e\u0441\u0432\u0435\u0449\u0435\u043d\u0438\u0435 \u0432 \u043a\u043e\u043c\u043d\u0430\u0442\u0435.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/d29\/3ba\/b3c\/d293bab3c8e74a03bd2efc794bd85b98.JPG\"\/>  <\/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-264860","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/264860","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=264860"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/264860\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=264860"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=264860"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=264860"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}