{"id":293517,"date":"2019-08-18T03:00:25","date_gmt":"2019-08-18T03:00:25","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=293517"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=293517","title":{"rendered":"\u0418\u0437\u0443\u0447\u0430\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0435, \u0441\u043e\u0431\u0440\u0430\u043d\u043d\u044b\u0435 Xiaomi Mi Band \u0437\u0430 \u0433\u043e\u0434"},"content":{"rendered":"\n<div class=\"post__text post__text-html js-mediator-article\">\n<h2 id=\"vvedenie\">\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435<\/h2>\n<p>  <\/p>\n<p>\u041b\u044e\u0434\u0438 \u043d\u043e\u0441\u044f\u0442 \u0444\u0438\u0442\u043d\u0435\u0441-\u0431\u0440\u0430\u0441\u043b\u0435\u0442\u044b \u043f\u043e \u0440\u0430\u0437\u043d\u044b\u043c \u043f\u0440\u0438\u0447\u0438\u043d\u0430\u043c, \u044f \u043c\u043e\u0433\u0443 \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0438\u0442\u044c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u0437 \u043d\u0438\u0445:<\/p>\n<p>  <\/p>\n<ol>\n<li>\u0414\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0442\u044c \u0441\u0435\u0431\u044f \u0432 \u0444\u043e\u0440\u043c\u0435 \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u0446\u0435\u043b\u0438 \u043f\u043e \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438;<\/li>\n<li>\u041f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u044d\u0442\u043e \u043d\u0435\u043a\u0430\u044f \u043c\u043e\u0434\u043d\u0430\u044f \u0448\u0442\u0443\u0447\u043a\u0430;<\/li>\n<li>\u0427\u0442\u043e\u0431\u044b \u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043d\u0430\u0434 \u0441\u043e\u0431\u043e\u0439 \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u044b \u0438\u043b\u0438 \u0443\u0437\u043d\u0430\u0442\u044c \u0441\u0435\u0431\u044f \u043b\u0443\u0447\u0448\u0435.<\/li>\n<\/ol>\n<p>  <\/p>\n<p>\u042f \u043d\u043e\u0448\u0443 \u0444\u0438\u0442\u043d\u0435\u0441 \u0431\u0440\u0430\u0441\u043b\u0435\u0442 \u043f\u043e \u043f\u0440\u0438\u0447\u0438\u043d\u0435 \u043d\u043e\u043c\u0435\u0440 3. \u0412 \u044d\u0442\u043e\u0439 \u0437\u0430\u043c\u0435\u0442\u043a\u0435 \u044f \u0445\u043e\u0447\u0443 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u0438\u0437\u0432\u043b\u0435\u0447\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u0437 \u0431\u0440\u0430\u0441\u043b\u0435\u0442\u0430 \u0438 \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438.<\/p>\n<p>  <\/p>\n<p>\u041c\u0435\u0442\u043e\u0434\u044b \u0434\u043b\u044f \u0438\u0437\u0432\u043b\u0435\u0447\u0435\u043d\u0438\u044f \u044d\u0442\u0438\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u0434\u043b\u044f <strong>Mi Band 1<\/strong>, <strong>1S<\/strong> \u0438, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, <strong>2<\/strong> (\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0434\u043b\u044f 2, \u043a\u0430\u0436\u0435\u0442\u0441\u044f, \u0442\u0430\u043a\u043e\u0435 \u0436\u0435).<a name=\"habracut\"><\/a><\/p>\n<p>  <\/p>\n<h2 id=\"izvlechenie-dannyh\">\u0418\u0437\u0432\u043b\u0435\u0447\u0435\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0445<\/h2>\n<p>  <\/p>\n<p>\u0414\u043b\u044f \u0438\u0437\u0432\u043b\u0435\u0447\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u0441 \u0431\u0440\u0430\u0441\u043b\u0435\u0442\u0430 \u0432 \u043f\u0435\u0440\u0432\u0443\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u043d\u0430\u0434\u043e \u0434\u043e\u0441\u0442\u0430\u0442\u044c \u0441 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430 SQLite \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u043c\u044b\u0435 \u043c\u0435\u0442\u0440\u0438\u043a\u0438. \u0412 \u0441\u043b\u0443\u0447\u0430\u0435 Android&#8217;a \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u044d\u0442\u043e \u043f\u0440\u0435\u0434\u0435\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e <a href=\"http:\/\/forum.xda-developers.com\/general\/accessories\/xiaomi-mi-band-data-extraction-t3019156\">\u0441\u043c. \u0442\u043e\u043f\u0438\u043a \u043d\u0430 \u0444\u043e\u0440\u0443\u043c\u0435 xda-developers<\/a>, <a href=\"https:\/\/github.com\/vologab\/miband_analytics\">\u0441\u043a\u0440\u0438\u043f\u0442\u044b \u043f\u043e\u0434 \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u0443\u044e \u0431\u0430\u0437\u0443<\/a>:<\/p>\n<p>  <\/p>\n<ol>\n<li>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c Android \u0442\u0435\u043b\u0435\u0444\u043e\u043d \u0441 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u044b\u043c \u0440\u0435\u0436\u0438\u043c\u043e\u043c \u043e\u0442\u043b\u0430\u0434\u043a\u0438 \u043f\u043e USB \u043a \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0443;<\/li>\n<li>\u0414\u0435\u043b\u0430\u0435\u043c \u0431\u044d\u043a\u0430\u043f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f: <code>adb backup -f mi.ab -noapk -noshared com.xiaomi.hm.health<\/code>;<\/li>\n<li>\u0421\u043e\u0437\u0434\u0430\u0435\u043c <code>dd if=mi.ab bs=1 skip=24 | python -c &quot;import zlib,sys;sys.stdout.write(zlib.decompress(sys.stdin.read()))&quot; &gt; mi.tar<\/code>;<\/li>\n<li>\u0420\u0430\u0441\u043f\u0430\u043a\u043e\u0432\u044b\u0432\u0430\u0435\u043c \u0430\u0440\u0445\u0438\u0432 \u0441 \u0411\u0414: <code>tar xvf mi.tar apps\/com.xiaomi.hm.health\/db\/ 2&gt;&amp;1 | tee -a log<\/code>;<\/li>\n<li>\u041a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u0411\u0414: <code>cp -f apps\/com.xiaomi.hm.health\/db\/origin_db* .\/db\/<\/code>.<\/li>\n<\/ol>\n<p>  <\/p>\n<p>\u041a\u0430\u043a \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442, \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c SQLite \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 \u0441 \u0438\u043c\u0435\u043d\u0435\u043c \u0444\u0430\u0439\u043b\u0430 <code>db\/origin_db_[0-9]+$<\/code>, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u043c\u0435\u0442\u0440\u0438\u043a\u0438 Mi Band.<\/p>\n<p>  <\/p>\n<h2 id=\"zagruzka-i-analiz-dannyh\">\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0438 \u0430\u043d\u0430\u043b\u0438\u0437 \u0434\u0430\u043d\u043d\u044b\u0445<\/h2>\n<p>  <\/p>\n<p>\u0414\u043b\u044f \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445, \u043d\u0430 \u043c\u043e\u0439 \u0432\u0437\u0433\u043b\u044f\u0434, \u0443\u0434\u043e\u0431\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c IPython notebook: <a href=\"https:\/\/github.com\/vologab\/miband_jupyter_notebook\/blob\/master\/Xiaomi_Mifit_miband_data.ipynb\">Xiaomi_Mifit_miband_data.ipynb<\/a><\/p>\n<p>  <\/p>\n<p>\u041c\u0435\u0442\u0440\u0438\u043a\u0438 \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0435 DATE_DATA:<\/p>\n<p>  <\/p>\n<pre><code class=\"python\">df = pd.read_sql_query(&quot;SELECT * from DATE_DATA&quot;, con)<\/code><\/pre>\n<p>  <\/p>\n<p>\u041a\u043e\u043b\u043e\u043d\u043a\u0438 \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u0438\u043d\u0442\u0435\u0440\u0435\u0441:<\/p>\n<p>  <\/p>\n<div class=\"scrollable-table\">\n<table>\n<thead>\n<tr>\n<th>\u043a\u043e\u043b\u043e\u043d\u043a\u0430<\/th>\n<th>\u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>DATE<\/td>\n<td>\u0434\u0430\u0442\u0430<\/td>\n<\/tr>\n<tr>\n<td>SUMMARY<\/td>\n<td>JSON \u0441 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u043d\u044b\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u0437\u0430 \u0434\u0435\u043d\u044c<\/td>\n<\/tr>\n<tr>\n<td>DATA<\/td>\n<td>\u0441\u044b\u0440\u044b\u0435 \u043f\u043e\u043c\u0438\u043d\u0443\u0442\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0437\u0430 \u0441\u043e\u043d[\u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c1], \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c2, \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c3<\/td>\n<\/tr>\n<tr>\n<td>DATA_HR<\/td>\n<td>\u0441\u044b\u0440\u044b\u0435 \u043f\u043e\u043c\u0438\u043d\u0443\u0442\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u0443\u043b\u044c\u0441\u0430<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>  <\/p>\n<h3 id=\"agregirovannye-za-den-dannye\">\u0410\u0433\u0440\u0435\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0437\u0430 \u0434\u0435\u043d\u044c \u0434\u0430\u043d\u043d\u044b\u0435<\/h3>\n<p>  <\/p>\n<p>\u0410\u0433\u0440\u0435\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u0432 \u0432\u0438\u0434\u0435 JSON:<\/p>\n<p>  <\/p>\n<pre><code class=\"json\">{&quot;slp&quot;:{&quot;usrEd&quot;:-1440,&quot;lt&quot;:457,&quot;st&quot;:1464376080,&quot;wk&quot;:15,&quot;dp&quot;:30,&quot;usrSt&quot;:-1440,&quot;ed&quot;:1464406200},&quot;v&quot;:5,&quot;goal&quot;:8000,&quot;stp&quot;:{&quot;rn&quot;:2,&quot;cal&quot;:257,&quot;runDist&quot;:256,&quot;wk&quot;:69,&quot;ttl&quot;:5244,&quot;runCal&quot;:13,&quot;dis&quot;:3817}}<\/code><\/pre>\n<p>  <\/p>\n<p>\u0414\u0430\u043d\u043d\u044b\u0435 \u0434\u0435\u043b\u044f\u0442\u0441\u044f \u043d\u0430 2 \u0447\u0430\u0441\u0442\u0438: \u0441\u043e\u043d (<strong>slp<\/strong>) \u0438 \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c (<strong>stp<\/strong>). \u0414\u043b\u044f \u0441\u043d\u0430 \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u0432\u0440\u0435\u043c\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0438 \u043e\u043a\u043e\u043d\u0447\u0430\u043d\u0438\u044f \u2014 <strong>st, ed<\/strong>, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0432\u0440\u0435\u043c\u044f \u0433\u043b\u0443\u0431\u043e\u043a\u043e\u0433\u043e \u0438 \u043b\u0435\u0433\u043a\u043e\u0433\u043e \u0441\u043d\u0430 \u0432 \u043c\u0438\u043d\u0443\u0442\u0430\u0445 \u2014 <strong>lt, dp<\/strong>. \u0422\u0430\u043a\u0436\u0435 \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u0432\u0440\u0435\u043c\u044f \u043f\u0440\u043e\u0441\u044b\u043f\u0430\u043d\u0438\u044f \u043c\u0435\u0436\u0434\u0443 \u043c\u0435\u0436\u0434\u0443 \u043d\u0430\u0447\u0430\u043b\u043e\u043c \u0438 \u043e\u043a\u043e\u043d\u0447\u0430\u043d\u0438\u0435\u043c \u0441\u043d\u0430 \u2014 <strong>wk<\/strong>. \u0414\u043b\u044f \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438 \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u0441\u0443\u043c\u043c\u0430\u0440\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e &quot;\u0448\u0430\u0433\u043e\u0432&quot; <strong>ttl<\/strong> \u2014 \u0441\u0443\u043c\u043c\u0430 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u0438\u0439 \u043f\u0435\u0440\u0432\u0438\u0447\u043d\u043e\u0433\u043e \u0434\u0430\u0442\u0447\u0438\u043a\u0430 \u0437\u0430 \u0434\u0435\u043d\u044c \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u043d\u044b\u0435 \u0432\u0435\u043b\u0438\u0447\u0438\u043d\u044b <code>func(ttl, \u0440\u043e\u0441\u0442, \u0432\u0435\u0441)<\/code>.<\/p>\n<p>  <\/p>\n<h3 id=\"syrye-dannye-aktivnosti-i-pulsa\">\u0421\u044b\u0440\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438 \u0438 \u043f\u0443\u043b\u044c\u0441\u0430<\/h3>\n<p>  <\/p>\n<p>\u0421\u044b\u0440\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u044e\u0442\u0441\u044f \u043a\u0430\u0436\u0434\u0443\u044e \u043c\u0438\u043d\u0443\u0442\u0443 (\u0437\u0430 \u0441\u0443\u0442\u043a\u0438 1440), \u0438 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u0441\u043e\u0431\u043e\u0439 3 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0437\u0430 \u043a\u0430\u0436\u0434\u0443 \u043c\u0438\u043d\u0443\u0442\u0443. \u041f\u0435\u0440\u0432\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u2014 \u0441\u043e\u043d \u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043e\u0442 0 \u0434\u043e 127 (\u043d\u043e \u0432 \u043c\u043e\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043c\u0430\u043a\u0441\u0438\u043c\u0443\u043c 126), \u0432\u0442\u043e\u0440\u043e\u0435 \u0438 \u0442\u0440\u0435\u0442\u044c\u0435 \u2014 \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c \u0441\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c \u043e\u0442 0 \u0434\u043e 255 (\u0443 \u043c\u0435\u043d\u044f \u043c\u0430\u043a\u0441\u0438\u043c\u0443\u043c activity2 \u2014 189, activity3 \u2014 240).<\/p>\n<p>  <\/p>\n<p>\u041f\u0443\u043b\u044c\u0441 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0442\u0441\u044f \u043a\u0430\u0436\u0434\u0443\u044e \u043c\u0438\u043d\u0443\u0442\u0443 \u0438 \u0438\u043c\u0435\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043e\u0442 0 \u0434\u043e 255.<\/p>\n<p>  <\/p>\n<h2 id=\"kak-syrye-dannye-prevraschayutsya-v-agregirovannye-za-den\">\u041a\u0430\u043a \u0441\u044b\u0440\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u044e\u0442\u0441\u044f \u0432 \u0430\u0433\u0440\u0435\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0437\u0430 \u0434\u0435\u043d\u044c<\/h2>\n<p>  <\/p>\n<p>\u0421\u0430\u043c\u044b\u0439 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0430\u0433\u0440\u0435\u0433\u0430\u0442 \u2014 \u044d\u0442\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0448\u0430\u0433\u043e\u0432 \u0437\u0430 \u0434\u0435\u043d\u044c \u2014 \u0441\u0443\u043c\u043c\u0430 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 activity3 \u0437\u0430 \u0434\u0435\u043d\u044c. \u0421\u043e \u0441\u043d\u043e\u043c \u0441\u043b\u043e\u0436\u043d\u0435\u0435: \u044f \u0442\u0430\u043a \u0438 \u043d\u0435 \u043d\u0430\u0443\u0447\u0438\u043b\u0441\u044f \u0441\u044b\u0440\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0441\u043d\u0430 \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0442\u044c \u0432 \u0430\u0433\u0440\u0435\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435. \u041d\u0430 \u0444\u043e\u0440\u0443\u043c\u0430\u0445 \u0432\u044b\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u043b\u0430\u0441\u044c \u043c\u044b\u0441\u043b\u044c \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 activity1 == 4 \u0433\u043b\u0443\u0431\u043e\u043a\u0438\u0439 \u0441\u043e\u043d, \u0430 5 \u2014 \u043b\u0435\u0433\u043a\u0438\u0439, \u043d\u043e \u0442\u0430\u043a \u0436\u0435 \u043f\u0440\u043e\u0441\u0442\u043e, \u043a\u0430\u043a \u0441 \u0448\u0430\u0433\u0430\u043c\u0438, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0432\u0437\u0430\u0438\u043c\u043e\u0441\u0432\u044f\u0437\u044c \u043c\u0435\u0436\u0434\u0443 \u0430\u0433\u0440\u0435\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u0438 \u0441\u044b\u0440\u044b\u043c\u0438 \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f.<\/p>\n<p>  <\/p>\n<h2 id=\"analiz-dannyh\">\u0410\u043d\u0430\u043b\u0438\u0437 \u0434\u0430\u043d\u043d\u044b\u0445<\/h2>\n<p>  <\/p>\n<p>\u0412\u043e-\u043f\u0435\u0440\u0432\u044b\u0445, \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u044f \u0441\u043f\u0430\u043b \u0432 \u0442\u0435\u0447\u0435\u043d\u0438\u0435 \u0433\u043e\u0434\u0430. \u042d\u0442\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c ~ (7 +- 1) \u0447\u0430\u0441. \u041a\u0430\u0436\u0435\u0442\u0441\u044f, \u0441 \u044d\u0442\u0438\u043c \u0432\u0441\u0435 \u043e\u043a. <\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/vologab\/miband_jupyter_notebook\/master\/plots\/sleep_time_distribution.png\" alt=\"sleep time\"\/><\/p>\n<p>  <\/p>\n<p>\u0414\u0440\u0443\u0433\u0430\u044f \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u0430\u044f \u0432\u0435\u0449\u044c \u2014 \u0432\u044b\u0441\u044b\u043f\u0430\u044e\u0441\u044c \u044f \u043f\u043e \u0432\u044b\u0445\u043e\u0434\u043d\u044b\u043c:<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/vologab\/miband_jupyter_notebook\/master\/plots\/sleep2_time_vs_wd.png\" alt=\"sleep vs week day\"\/><\/p>\n<p>  <\/p>\n<p>\u0410 \u0435\u0441\u043b\u0438 \u043d\u0430\u0437\u0432\u0430\u0442\u044c \u043e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u0435 \u0433\u043b\u0443\u0431\u043e\u043a\u043e\u0433\u043e \u0441\u043d\u0430 \u043a \u043b\u0435\u0433\u043a\u043e\u043c\u0443 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e\u043c, \u0442\u043e \u0432\u044b\u044f\u0441\u043d\u0438\u0442\u0441\u044f, \u0447\u0442\u043e \u043b\u0443\u0447\u0448\u0435\u0435 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u043d\u0430 \u0443 \u043c\u0435\u043d\u044f \u0432 \u0447\u0435\u0442\u0432\u0435\u0440\u0433, \u0438 \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0433\u043b\u0443\u0431\u043e\u0439 \u0441\u043e\u043d \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 23% \u043e\u0442 \u0432\u0441\u0435\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0441\u043d\u0430. \u0410 \u0432 \u043f\u044f\u0442\u043d\u0438\u0446\u0443 \u2014 \u0441\u0430\u043c\u043e\u0435 \u043f\u043b\u043e\u0445\u043e\u0435 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u043d\u0430, \u0431\u043e\u044e\u0441\u044c \u0434\u0430\u0436\u0435 \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0438\u0442\u044c \u043f\u043e\u0447\u0435\u043c\u0443.<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/vologab\/miband_jupyter_notebook\/master\/plots\/sleep_ratio_vs_wd.png\" alt=\"activity vs week day\"\/><\/p>\n<p>  <\/p>\n<p>\u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e &quot;\u0448\u0430\u0433\u043e\u0432&quot; \u044f \u0441\u043e\u0432\u0435\u0440\u0448\u0430\u044e \u0432 \u043f\u044f\u0442\u043d\u0438\u0446\u0443 \u0438 \u0441\u0443\u0431\u0431\u043e\u0442\u0443:<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/vologab\/miband_jupyter_notebook\/master\/plots\/activity_steps_vs_wd.png\" alt=\"activity vs week day\"\/><\/p>\n<p>  <\/p>\n<p>\u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u0441\u0440\u0435\u0434\u0430 \u0443 \u043c\u0435\u043d\u044f \u2014 \u0434\u0435\u043d\u044c, \u043a\u043e\u0433\u0434\u0430 \u044f \u043c\u0430\u043b\u043e \u0441\u043f\u043b\u044e \u0438 \u043c\u0430\u043b\u043e \u0445\u043e\u0436\u0443, \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u044b\u0445 \u043e\u0431\u044a\u044f\u0441\u043d\u0435\u043d\u0438\u0439 \u0438\u0437 \u0440\u0430\u0437\u0440\u044f\u0434\u0430 &quot;\u044f \u0440\u0430\u0431\u043e\u0442\u0430\u044e \u0438\u0437 \u0434\u043e\u043c\u0430&quot; \u2014 \u043d\u0435\u0442, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044d\u0442\u043e \u0447\u0442\u043e-\u0442\u043e \u043d\u043e\u0432\u043e\u0435 \u0434\u043b\u044f \u043c\u0435\u043d\u044f.<\/p>\n<p>  <\/p>\n<p>\u041d\u0430\u0434\u0435\u044e\u0441\u044c, \u0447\u0442\u043e \u043a\u0442\u043e-\u043d\u0438\u0431\u0443\u0434\u044c \u0438\u0437 \u043e\u0431\u043b\u0430\u0434\u0430\u0442\u0435\u043b\u0435\u0439 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0445 \u0431\u0440\u0430\u0441\u043b\u0435\u0442\u043e\u0432 Mi band \u0442\u043e\u0436\u0435 \u0437\u0430\u0445\u043e\u0447\u0435\u0442 \u043f\u043e\u0438\u0437\u0443\u0447\u0430\u0442\u044c \u0441\u0435\u0431\u044f \u0438 \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0435\u0442 \u043e \u0441\u0432\u043e\u0438\u0445 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u044f\u0445.<\/p>\n<\/div>\n<p>               <script class=\"js-mediator-script\">!function(e){function t(t,n){if(!(n in e)){for(var r,a=e.document,i=a.scripts,o=i.length;o--;)if(-1!==i[o].src.indexOf(t)){r=i[o];break}if(!r){r=a.createElement(\"script\"),r.type=\"text\/javascript\",r.async=!0,r.defer=!0,r.src=t,r.charset=\"UTF-8\";var d=function(){var e=a.getElementsByTagName(\"script\")[0];e.parentNode.insertBefore(r,e)};\"[object Opera]\"==e.opera?a.addEventListener?a.addEventListener(\"DOMContentLoaded\",d,!1):e.attachEvent(\"onload\",d):d()}}}t(\"\/\/mediator.mail.ru\/script\/2820404\/\",\"_mediator\")}(window);<\/script>     <br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/464055\/\"> https:\/\/habr.com\/ru\/post\/464055\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html js-mediator-article\">\n<h2 id=\"vvedenie\">\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435<\/h2>\n<p>  <\/p>\n<p>\u041b\u044e\u0434\u0438 \u043d\u043e\u0441\u044f\u0442 \u0444\u0438\u0442\u043d\u0435\u0441-\u0431\u0440\u0430\u0441\u043b\u0435\u0442\u044b \u043f\u043e \u0440\u0430\u0437\u043d\u044b\u043c \u043f\u0440\u0438\u0447\u0438\u043d\u0430\u043c, \u044f \u043c\u043e\u0433\u0443 \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0438\u0442\u044c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u0437 \u043d\u0438\u0445:<\/p>\n<p>  <\/p>\n<ol>\n<li>\u0414\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0442\u044c \u0441\u0435\u0431\u044f \u0432 \u0444\u043e\u0440\u043c\u0435 \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u0446\u0435\u043b\u0438 \u043f\u043e \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438;<\/li>\n<li>\u041f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u044d\u0442\u043e \u043d\u0435\u043a\u0430\u044f \u043c\u043e\u0434\u043d\u0430\u044f \u0448\u0442\u0443\u0447\u043a\u0430;<\/li>\n<li>\u0427\u0442\u043e\u0431\u044b \u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043d\u0430\u0434 \u0441\u043e\u0431\u043e\u0439 \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u044b \u0438\u043b\u0438 \u0443\u0437\u043d\u0430\u0442\u044c \u0441\u0435\u0431\u044f \u043b\u0443\u0447\u0448\u0435.<\/li>\n<\/ol>\n<p>  <\/p>\n<p>\u042f \u043d\u043e\u0448\u0443 \u0444\u0438\u0442\u043d\u0435\u0441 \u0431\u0440\u0430\u0441\u043b\u0435\u0442 \u043f\u043e \u043f\u0440\u0438\u0447\u0438\u043d\u0435 \u043d\u043e\u043c\u0435\u0440 3. \u0412 \u044d\u0442\u043e\u0439 \u0437\u0430\u043c\u0435\u0442\u043a\u0435 \u044f \u0445\u043e\u0447\u0443 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u0438\u0437\u0432\u043b\u0435\u0447\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u0437 \u0431\u0440\u0430\u0441\u043b\u0435\u0442\u0430 \u0438 \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438.<\/p>\n<p>  <\/p>\n<p>\u041c\u0435\u0442\u043e\u0434\u044b \u0434\u043b\u044f \u0438\u0437\u0432\u043b\u0435\u0447\u0435\u043d\u0438\u044f \u044d\u0442\u0438\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u0434\u043b\u044f <strong>Mi Band 1<\/strong>, <strong>1S<\/strong> \u0438, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, <strong>2<\/strong> (\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0434\u043b\u044f 2, \u043a\u0430\u0436\u0435\u0442\u0441\u044f, \u0442\u0430\u043a\u043e\u0435 \u0436\u0435).<\/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-293517","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/293517","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=293517"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/293517\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=293517"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=293517"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=293517"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}