yashsingh1/xdaforums huggingface dataset:
[General Accessories] jlaunay:
In fact [MENTION=5037002]Bonoboo[/MENTION] made an APK from [MENTION=2986005]xmxm[/MENTION] Windows app (he use his parsing method.

You can try openband (find it on play store) (search google for "github UgoRaffaele xiaomi-miband-android" cause I can't post external link yet.

With openband, you can connect to your mi band using Bluetooth LE the same way the official app does.

The app have limited features for the moment but it work (you can view your daily steps).
[General Accessories] Devo7v:
That sounds promising, ideally what I'm looking for is a way to integrate MiBand with Google Fit and Sleep as Android. I think eventually somebody well figure all this out since it is inexpensive and a lot of people will end up buying it. Thanks for the info.
[General Accessories] naeem86:
Hi guys..me too I ordered a mi band and waiting for it. It's been a week now. So when it eventually arrives, which app do I use? The one here or the one on play store? What's the difference between the 2 besides notifications?
[General Accessories] jlaunay:
The play store version is chinese, you can use the version from miui forum (search google "[Release] Tweaked Mi Band English Version [26.01.2015 - 1.2.811_344 + Notify] " I can't post link).

You will find 2 versions, 1 is the same as the store one translated and the second one is tweaked to allow notifications from other apps (mail, sms etc...).

Here you will find a windows script allowing you to export data from the official app in csv and html.
[General Accessories] naeem86:
Really? In the screenshots, I see it's written in english. But looks like I'll go for the tweaked one though. Thanks for the reply.
[General Accessories] jlaunay:
Have a look to the comments on the store, the app is not fully translated (you can install the app to test before you receive your band).

Also they remove Mi Push in the tweaked version (drain less battery).
[General Accessories] xmxm:
Just posted minor update related to timezones in sleep/wake up times calculation. If you downloaded miband_extract_v50.zip, please download miband_extract_v51.zip.
[General Accessories] WaPeR32:
No problems here! :confused:
[General Accessories] Zoli5:
Thank you.

Now it's working, but I have another problem. What kind of data have to write at the login, because the login screen is not english for me. Thanks.
[General Accessories] WaPeR32:
Email first, then pass
[General Accessories] CORRUP27:
Dont want to hijack this thread but would love to know the best place to buy one of these mi bands?

I am from the states.

Thank you
[General Accessories] Javier.D:
So finally, is this apk working with any phone or not?

Enviado desde mi Nexus 4 mediante Tapatalk
[General Accessories] Taxilof:
Just look at xiaomi account page (account . xiaomi . com), it is the same login -> 'Phone numbers outside of mainland China must add country code (e.g. Hong Kong "+852 5555 5555")'
[General Accessories] crash_b.:
I wanna thank [MENTION=2411870]WaPeR32[/MENTION] for translating this app.

It's working fine on my OnePlus One.

Now i have to wait for the band to arrive from China....
[General Accessories] WaPeR32:
:D

Now we can talk about the app here
[General Accessories] Bofin:
Other phones

is it going to be possible to get all the features to work on other phones? Or would it be impossible? It sounds nice but i have an Oneplus One not a Xiaomi phone.Any reply is much appreciated.
[General Accessories] Javier.D:
Well, me and another htcmania user are working on this, so we'll see...

Enviado desde mi Nexus 4 mediante Tapatalk
[General Accessories] z3r0-c001:
Where to buy from

Could you please tell us how you ordered ?? Maybe post a link from the shop / seller ?!

And how much have you paid for it?

---------- Post added at 10:43 PM ---------- Previous post was at 10:40 PM ----------

Where did you order from? How much did you pay??

On the off website they are out of stock... I'm fom Europe, and can't order directly from Xiaomi... I saw some on the Aliexpress, but the price is bigger (about 27$) and there is always a chance to get a fake one...

Please reply asap! Thank you!
[General Accessories] crash_b.:
The price was reduced i paid $22,94 for the band. But they don't have in stock anymore for that price.

They haven't sent the item yet so i guess i'll just have to wait a few weeks...

Aliexpress search for E-Buy Store.
[General Accessories] z3r0-c001:
Well, thanks for the info.. This is exactly why I am asking everyone about the ordering the MiBand, I've also looked on sites like xiaomiworld, merimobiles, ibuygou for the band.. All of them are pre-order... Although Aliexpress has lots of offers I'm very sceptical about the quality of the bracelet from them.. They sell lots of fakes..

Anyway, I shall definitely monitor the price on the band and the offers..

Ps. Has anyone got the band yet?
[General Accessories] Bofin:
Oppomart

Does anyone have any experience with Oppomart? They are selling the Mi Band for $19.
[General Accessories] WaPeR32:
It's in preorder now but the description says: "Shipping date is in this term: September 1st - 5th"

I want it!
[General Accessories] griffin_1:
Would this work with the function of vibrating to wake up/alarm? Same with calls/notifications? Or is that exclusive to xiaomi&miui?
[General Accessories] WaPeR32:
AFAIK everything works except unlock the device.

The Mi Band doesn't vibrate with incoming until 30 seconds
[General Accessories] griffin_1:
That would be a nice feature to have, but still, not a deal breaker.

Do you mean it will only start vibrating after 30 seconds? If its like that, its a bit of a strange way to implement it =/ again, for the price, its still good. Its sold out on oppomart and other places i have seen have it with a higher price unfortunately.
[General Accessories] WaPeR32:
Yes, that is what I've heard in a spanish forum where a couple of members have it.

I searched in a lot of stores wiwth no luck.

There is another cheap store with no stock -> http://www.lenteen.es/
[General Accessories] griffin_1:
Its strange implementation then.

Thanks for the link, i will check it out and keep checking both of those sites. My guess is that it will be out of stock for a while or the stock will go away quick
[General Accessories] naeem86:
Wow..there's so many things. Someone should make a youtube video about all the specs. :)
[General Accessories] Viriatox:
Hello everyone, I made a translation into Spanish for application created by xmxm

if (lang == "es_ES") {

var Tdate='Fecha_____';

var Tyear='Año';

var Tyearmonth='Año-Mes';

var Tmonth='Mes';

var Tyearweek = 'Año-Semana';

var Tweek = 'Semana';

var Tdayofweek ='Día de la Semana';

var Tday ='Día';

var TInBedMin ='Total Dormido, mins';

var TDeepSleepMin ='Sueño Profundo, mins';

var TLightSleepMin ='Sueño Ligero, mins';

var TAwakeMin ='Despierto, mins';

var TDailyDistanceMeter ='Distancia Diaria, metros';

var TDailySteps ='Pasos Diarios';

var TDailyBurnCalories ='Calorías quemadas Diarias';

var TWalkDistance ='Distancia Andando, metros';

var TWalkTimeMin = 'Tiempo Andando, minutos';

var TWalkBurnCalories ='Calorías quemadas Andando';

var TRunDistanceMeter ='Distancia Corriendo, metros';

var TRunTimeMin ='Tiempo Corriendo, minutos';

var TRunBurnCalories ='Calorías quemadas Corriendo';

var TSleepStartOffset ='SleepStartOffset';

var TSleepEndOffset ='SleepEndOffset';

var TSleep = 'Sueño';

var TActivity = 'Actividad Diaria';

var TDistanceSumM = 'Distancia total Mensual';

var TDistanceSumW = 'Distancia total Semanal';

var TDistanceAvg = 'Promedio distancia diaria, metros';

var TStepsSumM = 'Total pasos mensuales';

var TStepsSumW = 'Total pasos semanales';

var TStepsAvg = 'Promedio pasos diarios';

var TDailyGoals = 'Objetivos Diarios:';

var TGoalSleep = 'Sueño:';

var TGoalSteps = 'Pasos';

var TAggregate = 'Agrupar datos por:';

var TAggregateDay = 'dia';

var TAggregateWeek = 'semana';

var TAggregateMonth = 'mes';

var TD0 = 'Domingo';

var TD1 = 'Lunes';

var TD2 = 'Martes';

var TD3 = 'Miércoles';

var TD4 = 'Jueves';

var TD5 = 'Viernes';

var TD6 = 'Sábado';

var TDL = 'DLMXJVS';
[General Accessories] fopoku2k2:
Did you find a solution since I'm also experiencing the same
[General Accessories] thurman:
I am new here. Just like others I am patiently waiting for my band. I had the cheap Pivotal Tracker and that thing is pure junk. So I will hang around here and check this tracker out.
[General Accessories] xmxm:
I've released a new version of my app and created a dedicated thread for it, so I would not spam this thread too much. Data Extraction tool v5.2. I would still be monitoring this thread for any comments as well.
[General Accessories] egandt:
Mine died, after 20 days

I've had mine for 30 days, only to have it die today. Not sure what went wrong, first it worked only to unlock the phone (so it was connected via bluetooth) and nothing else (downloads failed), then it did not show up as a bluetooth device and finally it does not even charge (left it charging over night without results). 24 hours earlier it had 50% battery, so no idea what went wrong, but am not happy. That said when it was working it was decent, however I lost 2 or 3 days so about 10% of the time, simple would not record that it was even used for that time, even though it was no my wrist.

Hard decision as to whether to replace it or not.

ERIC
[General Accessories] naeem86:
Where did you buy it?
[General Accessories] Bonoboo:
2 All

App / profile Export all statistics into HTML and/or CSV-table updated to version 5.3

Based on last xmxm's PC-version

Please, update with clean install app / profile.

Changes

– brand-new awesome HTML-graphs: details at xmxm's thread

– auto-choose language of graphs, depends from locale on phone

– in CSV added column with total walking / running in seconds

– exported files slightly renamed, better delete all your current

– version number now will be synced with PC-app
[General Accessories] sciacca75:
Where can i find new black rubber band ?

Nothing on tiny deal or aliexpress...any suggest?
[General Accessories] RaS_KoR:
[MENTION=5037002]Bonoboo[/MENTION] or [MENTION=2986005]xmxm[/MENTION] :

There is a small bug with the Export all statistics into HTML and/or CSV-table v5.3, into Mi_Band_Graphs.html when I select a sleeping data, all times (TSleepStartOffset & TSleepEndOffsetare) 1 hour early.

I've tried with two locales (fr_FR and en-EN) into app_locale.js file and the problem still exists.

I saw into the extract.js that the two last datas are 1 hour early eg : Date(0,0,-1,22,04,00),new Date(0,0,0,05,05,00) instead of Date(0,0,-1,23,04,00),new Date(0,0,0,06,05,00).

Sorry for my bad english.

Regards
[General Accessories] RaS_KoR:
[MENTION=309187]edit[/MENTION] :

To temporary fix the problem I edit the parse.sql like that :

13 : ,datetime((datetime(cast(rtrim(substr(summary,instr(summary,'"st":')+5,10),', "wk":') as Integer),'unixepoch'), '+1 hour') as SleepStart
14 : ,datetime(datetime(cast(rtrim(substr(summary,instr(summary,'"ed":')+5,10),', "v":') as Integer),'unixepoch'), '+1 hour') as SleepEnd
49 : ,datetime((datetime(cast(rtrim(substr(summary,instr(summary,'"st":')+5,10),', "wk":') as Integer),'unixepoch'), '+1 hour') as SleepStart
50 : ,datetime(datetime(cast(rtrim(substr(summary,instr(summary,'"ed":')+5,10),', "v":') as Integer),'unixepoch'), '+1 hour') as SleepEnd
[General Accessories] dvs323:
Smart alarm

My understanding is that the smart alarm has been renamed to "Early bird alarm" and only has a 30 minute setting. I'd like to make a change request so that I can have the ability to customize the amount of time Id like to be alerted prior to the set alarm based on my sleep cycle. If I recall correctly, we had that ability with the smart alarm.
[General Accessories] xmxm:
Hello.

I was the person who initially wrote this query. These are the columns that are causing most issues and I am still trying to make them work. I have few questions about your configuration:

1. What timezone is set on your phone?

2. can you change the query to

datetime((datetime(cast(rtrim(substr(summary,instr(summary,'"st":')+5,10),', "wk":') as Integer),'unixepoch', 'localtime') as SleepStart

and same for SleepEnd and see if it gives you better result?

3. If step #2 does not produce correct results, could you try using just local time, like this:

datetime((datetime(cast(rtrim(substr(summary,instr(summary,'"st":')+5,10),', "wk":') as Integer),'localtime') as SleepStart

and see if it works?
[General Accessories] RaS_KoR:
That doesn't work.

I made somes tests from the adb shell and this is what I found :

root@android:/ # date
Wed Feb 4 12:46:19 CET 2015
root@android:/ # sqlite3 dbfile "select datetime('now','localtime');"
2015-02-04 12:46:23
root@android:/ # /data/miband/sqlite3 dbfile "select datetime('now','localtime');"
2015-02-04 11:46:41

I don't know why, but when I use the sqlite3 bin in the Bonoboo package the time is wrong, but when I use the sqlite3 from the system (/system/xbin) the time is right.

Here some info about my time zone :

root@android:/data/miband # date
Wed Feb 4 13:14:17 CET 2015
root@android:/data/miband # date +%Z
CET
root@android:/data/miband # date +%z
+0100
root@android:/ # TZ=CET sqlite3 dbfile "select datetime('now','localtime');"
2015-02-04 13:15:23
root@android:/ # TZ=UTC sqlite3 dbfile "select datetime('now','localtime');"
2015-02-04 12:15:26
[General Accessories] Devo7v:
I'm not sure if anybody has seen this, but apparently there is another, open source notifier app for the Mi Band. From what I can gather it only works on Lollipop, it might be worth digging into to see how to directly interface with the band instead of pulling information from the official app.

GitHub page

Reddit Q&A
[General Accessories] xmxm:
Could you please try desktop version from this thread: http://xdaforums.com/general/accessories/xiaomi-mi-band-data-extraction-t3019156?

If desktop version returns wrong data, could you please replace script logic to use 'unixepoch','localtime':

datetime((datetime(cast(rtrim(substr(summary,instr(summary,'"st":')+5,10),', "wk":') as Integer),'unixepoch', 'localtime') as SleepStart

I wonder if /system/xbin is "aware" of system timezone and the other one is not.
[General Accessories] RaS_KoR:
With the Desktop version, the problem still exist.

But (! ;) ) the localtime parameter fix the problem.
[General Accessories] mamaun30:
Can someone please send me a .csv sample data? I want to try to sync data to fitbit via fitnesssyncer

Thanks
[General Accessories] darren1:
Was going to do an explanation of syncing with FirnessSyncer. Will try and do it later. I emailed them and they said Google Fit support would be added by the end of February, but probably before.
[General Accessories] darren1:
Here are a couple of images showing which settings to use for importing data to FitnessSyncer using the csv file from xmxm's tool or Bonoboo's version for Android. This will allow you to sync Daily steps, calories, distance and time into Fitbit, Jawbone, MapMyFitness and many more and soon Google Fit.

https://www.dropbox.com/s/bne9oba07wooax9/Steps1.png?dl=0

https://www.dropbox.com/s/a4owwycyiv71ghq/Steps2.png?dl=0

FitnessSyncer can be found here

https://www.fitnesssyncer.com

CSV files can be imported via Dropbox, Amazon S3 or Onedrive, having setup an account click on Account and then Add New Source and select where your csv file is. Once all the settings are entered you can save and select Add New Destination Task from Account and select where you want to sync to. Here are a couple of helpful pages

https://www.fitnesssyncer.com/frequently-asked-questions

https://www.fitnesssyncer.com/documentation.html

---------- Post added at 08:34 PM ---------- Previous post was at 08:28 PM ----------

Here is a sample csv file.

https://www.dropbox.com/s/qzfxm7uob6se21m/Mi_Band_Table.csv?dl=0
[General Accessories] xmxm:
If anyone had issues importing .CSV files it is probably due to the fact that fitnesssyncer expects data in US format (Jan 1, 2015). I've updated my data extraction package to version 5.51 and added few columns to .CSV export to provide better sync with fitnesssyncer: Date in US format, Hour and Minute for time going to bed and Hour and Miniute for awaking time. Now you can syncronize both activity and sleeping data with fitnesssyncer. I've updated post 3 on my data extraction program thread with sample screenshots on columns mapping for both syncs: http://xdaforums.com/showpost.php?p=58575841&postcount=3

---------- Post added at 08:42 PM ---------- Previous post was at 08:31 PM ----------

Based on some research I did, the problem seems to be coming from the version of sqlite that Bonoboo is using in his package. I've added localtime parameter to desktop version 5.5, so it should work properly on desktop at least. I hope Bonoboo could find another sqlite that does not mess up with timezone.

As a temporary workaround, I've implemented time correction system as part of extraction process. You can edit last line db\offset.sql and update the correction value to something like '+1 hour' or '-2 hour'. Please note that this would get more complicated once Daylight Savings time comes into the picture. As far as I know GMT does not have DST applied, so if your timezone/country has no Daylight Savings, you do not need to do anything else.

If your timezone/country has Daylight Savings, you would need to enter multiple lines, each line having start date and end dates of Regular or Daylight Savings period and appropriate time offset from GMT zone taking Daylight Savings into consideration. Please review first 3 lines in db\offset.sql for an example of Daylight Savings configuration.

So for now you have 3 options:

1. Use desktop version of extraction tool 5.5 (get it from my thread here: http://xdaforums.com/general/accessories/xiaomi-mi-band-data-extraction-t3019156

2. Hope that Bonoboo could find sqlite that handles timezone information properly on Android.

3. Wait for Bonoboo to update his application from my code v5.4 and edit db\offset.sql manually.

Hope this helps.
[General Accessories] daubh:
Other bracelet options?

Hey guys,

I am going to order the Mi band on Aliexpress from seller "Yiwu Jolin market". I hope it's an original one. I don't own a Mi phone, and I heard the unlock feature only works on MiUI.

I have a question for you guys, though. I have seen on Google images that the band bracelet (just the case) is also being sold in leather and other materials (other than the rubbery material). Anyone knows where to buy those?

EDIT: I ended up buying them on TinyDeals cuz they were shipping faster than Aliexpress.
[General Accessories] Ofthecats:
I'd like to know a good place to order bands too.

If you're on lollipop, you can use the smart lock feature. I don't know if this is in the stock app or just the tweaked one.
[General Accessories] daubh:
I changed my mind and just ordered mine together with a replacement bracelet for CAD 25 from TinyDeal. It also ships faster according to the estimated delivery. 10-15 days on Tinydeals and 15-34 days on Aliexpress (Also CAD 29 on Aliexpress). Can't wait to receive it! I'll keep you guys posted!
[General Accessories] griffin_1:
I woulndt risk getting them from aliexpress. I dont know if there are fakes already but if there are you can easily receive one from a seller there - not all, but still. I recommend ibuygou,dx,geekbuying,tiny deal (but check the title,description and reviews, bc i have read about them selling fakes of other products)
[General Accessories] naeem86:
Ordered mine on aliexpress. Nearly 2 weeks now. Hope I'll get it next week. Paid $21 btw and from the reviews I've read it looks like its original. And people are very happy with it. There were lots of them for $16-$17, but didnt want to risk it.
[General Accessories] Bonoboo:
2 All

Especially [MENTION=4362647]RaS_KoR[/MENTION], thanks for pointing to sqlite3 inconsistency

App / profile Export all statistics into HTML and/or CSV-table updated to version 5.6

Based on last xmxm's PC-version

Upgrade strongly recommended!

Please, update with clean install app / profile with new files.

Changes (99% it's xmxm's work, not my)

– main change: now using new sqlite3 binary that returns correct time

– this fixes wrong sleep start/end time in CSV-file and sleep graph

– new graph design and controls

– added better FitnessSync support:

– this is new columns in CSV: DateUS, Activity, BedHour, BedMinute, AwakeHour, AwakeMinute

– fixed not exporting if tap on app shortcut
[General Accessories] mamaun30:
I try to import some data from this sample file on dropbox but it doesn't work. There is no error nor update. When I try to "Download CSV" at the bottom of the page, all I get is an empty document.

I'm doing something wrong?

Thanks
[General Accessories] darren1:
Have you made sure Path is set correctly? I keep my csv file in a folder called miband on my Dropbox so path is /miband/Mi_Band_Table.csv
[General Accessories] mamaun30:
This si mine "home/Miband/Mi_Band_Table.csv".

If i change the path I get an error: With this one the sync process works fine but I get no data.
[General Accessories] darren1:
Upload a copy of your csv and I will try and have a look when I get home.
[General Accessories] mamaun30:
Is the csv from your sample. Without changes.

This is weird. I'm doing somethng wrong for sure. :confused:
[General Accessories] darren1:
Try /home/Miband/Mi_Band_Table.csv as your path (with / at start). Are you using my sample rather than your own csv?
[General Accessories] mamaun30:
I've already tried with "/" at start. Same trouble. I don't knwo what i'm doing wrong.

This are my columns:

Include Date (US)? Column Number: 1

Include Calories Burned? Column Number: 10

Include Total Steps? Column Number: 9
[General Accessories] darren1:
I may have got the settings wrong, will check later.
[General Accessories] mamaun30:
Thank you. My band will arrive next week so I can't try without a .csv sample :crying:
[General Accessories] xmxm:
Original sample .CSV might not work because it has date formatted in a way that fitnesssyncer does not recognize. It expects data in US format (Jan 1,2015) and not 2015-01-30.

Use v5.5 of my data extractor and column mappings from 3rd post in my thread http://xdaforums.com/showpost.php?p=58575841&postcount=3 - they are slightly different from what darren1 posted and you can also export sleep data with version 5.5 and above.

Activity:

Include Date (US) - Column 18

Include Activity - Column 19

Include Distance in Meters - Column 8

Include Duration in Seconds - Column 17

Include Calories Burned - Column 10

Include Total Steps - Column 9

Sleep:

Include Date (US) - Column 18

Include Bed Time Hour - Column 20

Include Bed Time minute - Column 21

Include Awake Hour - Column 22

Include Awake Minute - Column 23

Include Sleeping Minutes - Column 2

You can try the sample I am attaching here
[General Accessories] mamaun30:
Thanks but I can't extract a .csv since I don't have a Mi Band yet. Can you send me a sample .csv to test fitbit integration?

Thanks
[General Accessories] xmxm:
Sorry, attachment did not work last time. I've also put the list of column mappings in my previous post.
[General Accessories] xmxm:
Since new Tasker version by @Bonoboo fixes timezone issues, I've commented out support for time correction functionality in v5.6 of my program, but it could be brought back if needed.
[General Accessories] mamaun30:
It worked! thanks!!!
[General Accessories] Bonoboo:
2 All

One more update.

App / Tasker-project Playing sound on phone when alarm on the bracelet updated to version 2.0

Changes

– added option for logging alarms into /sdcard/wakeup.txt

– preventing entering 0 minutes as delay, it will fall-back to 1

– improved input initial settings

Remind you too that app / profile Export all statistics into HTML and/or CSV-table updated to version 5.6