yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] tincore:
I do not have a miband 2. If you really want it supported asap you can send me one. and I'll do my best
[Android Apps and Games] robert1968:
miband 2

Hi Tincore,

I copied my /data/data/com.xiaomi.hm.health/databases see my data here:

http://xdaforums.com/showpost.php?p=67550865&postcount=248

If any logs/data needed write me a mail, you are my favorite MiBand developer so I will provide as fast any info you need as I can. :)

(I have some android adb/logcat/debug and stronger linux experiences...)

Best Regards,

Robert
[Android Apps and Games] David42290:
Hello,

Impossible to connect my miband pulse 1s...

I close all application connected to miband.

Need some help, thanks a lot.
[Android Apps and Games] Devo7v:
[MENTION=5169343]tincore[/MENTION]: This is sort of off topic, but are you planning on supporting the MiBand 2? I think my MiBand 1 is dying so I'm looking at purchasing a new one and I will only purchase the MiBand 2 if I can continue to use Gliderun. Keep up the great work.
[Android Apps and Games] tincore:
Post your device and Android version.

- Get latest version.

Edit:

https://play.google.com/apps/testing/com.tincore.and.gliderun

- Make sure you have default settings

Try to connect. Be patient as It may take a while and show some errors coming from the communication when it tries different techniques to make the connection. It can take 2-3 minutes You may close and open Bluetooth before trying to connect .

If that does not work.

UNCHECK Preferences > Administrative > MiBand bind check B

And try again.
[Android Apps and Games] David42290:
Hello, and thanks for your reply :good:

My device Moto X 2nd generation, Android 6.0

Mi Band 1s firmware 4.16.4.22, HRM firmware 1.3.76.22

I try to install with your explaination and i return you result.

---------- Post added at 10:19 AM ---------- Previous post was at 09:31 AM ----------

Ok, so i try again using your information, but no more result.

I have a new error message:
[Android Apps and Games] tincore:
Open the app.

Check Prefrences > Administrative > Enable administrative operations

Go to sensors.

Click on the MIband entry

Click on administrative (in menu)

Click on disconnect (in menu)

The band should be disconnected.

Look for "BT Bond" value. It is the 8th value from the top.

I imagine value = 10 or maybe 11. 10 = NOT BOUND, 11 = BIND IN PROCESS, 12=BOUND

We want to see a 12 there.

In the operations (click on gears) you have Bind create, Bind Destroy and Bind Interrupt.

If you click the refresh button the screen report is refreshed so you can see the current value of BT Bond.

Play with the three controls to see if you can get a 12.

If a 11 appears and stays for a while you can interrupt and start again. You can also restart your BT.
[Android Apps and Games] David42290:
Hello and thanks for take time :good:

You are right my bond value is 10

I try to play with three control but i have again the same error message and bond value won't change
[Android Apps and Games] Rushmed:
The same here!
[Android Apps and Games] tincore:
I think this is all related to the change in BT security introduced in 6.0

I attached a simple apk that has some MiBand functions . Would you guys try to connect with it? Check your logcat for clues.
[Android Apps and Games] Devo7v:
Here's an interesting issue. MiBand completely ran out of power the other day and I had to recharge it. After leaving it charging overnight and taking it off the charger it seems to think that it's always charging. I opened up the MiFit app and paired the device and it says that it's charging. I have the same exact problem that this person is having (http://en.miui.com/thread-130202-1-1.html). Does anybody have any idea how I can fix this? Are there any admin commands in Gliderun that may help to fix the device? Any help would be greatly appreciated.

EDIT: [SOLVED] See post below.
[Android Apps and Games] David42290:
Hello, i try again today without result.

I think you are on good way when you talk about 6.0 and BT security, when i start application for first time, i can see these message:
[Android Apps and Games] Devo7v:
Just to follow up to my own post, I was able to fix the MiBand charging issue although I'm not entirely sure what solved it. What I did was perform a "Selftest *WIPE DATA*" and "Reboot" through the admin menu, and then let the MiBand completely die yesterday. I charged it this morning and everything seems to be working properly. I'm not sure if the admin functions fixed it or if letting it completely die and recharge it worked. Either way everything seems to be working as it should.

[MENTION=5169343]tincore[/MENTION]: Are there any plans to support the MiBand 2?
[Android Apps and Games] tincore:
Regarding the iterative MiBand2 or any other band support question.

If you people would like me to try to support any particular device of your personal preference you can send me a sample device. I'll try to do the difficult part which is investigating how it works.

I also added this comment to the play store description:

*** ATTENTION: This app does NOT support any fitness band in the market ***

Most fitness bands use a protocol that is kept secret by the manufacturer

Please do not use play store feedback to tell that your band does not work
[Android Apps and Games] Devo7v:
Quick question, what do the different battery status numbers mean under the admin menu? Occasionally the battery status of MiBand will change from 4 to 3. When it was messed up it would always show 2. Is there any way to make the admin menu items more descriptive?
[Android Apps and Games] tincore:
I don't know what some of these numbers mean.

Admin screen is a menu mainly to try experimental stuff or get user reports.
[Android Apps and Games] Devo7v:
I've got a new issue, for some reason Gliderun isn't syncing my steps properly (see attached screenshot). I think there's an issue with the clock on MiBand, but with Gliderun there's no way for me to check it out reset it. Is there any information I can post that can help to resolve this?
[Android Apps and Games] cristivsflorin:
works great with MiBand M1S

I tried it with MiBand M1S bracelet and it works very well. great job :)
[Android Apps and Games] Devo7v:
[MENTION=5169343]tincore[/MENTION]: I think this may have something to do with my issues. The time on the MiBand is wrong, does anybody know how to fix it?
[Android Apps and Games] tincore:
It should be set after each connection.

You can set it from the admin menu. "set_time"
[Android Apps and Games] Rushmed:
Are you running android LP or MM?
[Android Apps and Games] tincore:
I believe beta build 287 solves MiBand 1S connectivity issues on some Android versions. Please report issues or success asap. Always make sure no other app is connected at the same time.
[Android Apps and Games] mcb25:
Works fine with my samsung gear fit
[Android Apps and Games] lucifer76:
App look nice. Only problem is exporting sessions as gpx. When i look in app sessions, i see HR data fine, with grafic, medium value, etc, but when i export it, resulting gpx dont have any HR data in exported file.
[Android Apps and Games] tincore:
GPX format does not have HR

Use GPX with Extensions or other format.
[Android Apps and Games] lucifer76:
Not really, gpx have HR data:

This is a gpx file exported from Endomondo.

However, you are right. ext.gpx and .tcx exported from Gliderun have HR data.
[Android Apps and Games] Richy19:
Is it normal for the session to pause every now and then? I dont know if this may be a memory thing?

Also, would it be possible to allow resuming a session? Or at the least, merge sessions? If the app crashes you need to start a new session but then you cant easily see the distance or time or... you have done for the full session
[Android Apps and Games] tincore:
If it pauses is because the app is probably crashing. When the app crashes it will restart paused unless Preferences>Tracking>Autoresume is checked.

I've found a bug in that setting! You need to uncheck and check it to make it really active. I'm fixing it on next version.

EDIT: change setting wont be enough. Fixing for next version.

EDIT: Fixed on v293 (beta)
[Android Apps and Games] wersaa:
Just paid for premium, great app, lot of info. I like to play soccer and i am curious about my athletic performance. Can this app automatically divide running from jogging/walking and recalculate the strides based on the speed of moving(know its difficult and strides aren't exact).And can i sync 24h tracking after i paid for premium?
[Android Apps and Games] tincore:
Hi,

I calculate stride length on outdoor running or walking sessions (Not mixed). I don't think it could be calculated well while playing football.

Premium removes ads. The rest should work fine.
[Android Apps and Games] Richy19:
Thats amazingly quick!

I just made sure to buy premium!

BTW does it give you anything other than removing ads?
[Android Apps and Games] David42290:
:good::good::good:

Work perfect with my moto x 2014 Android 6.0 and my MiBand 1s now!

I purchase your app, now my wishes are french language, strava sync, sms notification (perhaps it make it?)...

Very good application, bravo!
[Android Apps and Games] geopapa:
I 'm testing build 293 and I see that when starting a tracked session the heart rate function starts to count (or sometimes I have to press heart rate to start) but then after a few seconds it stops. When I wake my phone again while the session is still running, it says "searching" and starts again. I would like it to work all the time when I go cycling for example and then study the graph, but it seems not possible yet. Also I've noticed sometimes measuring is inaccurate (goes for 80 to 120 in a second for example and then drops again to 80)
[Android Apps and Games] tincore:
That is odd. It should measure almost continuously. It may just make small pauses of 1-2 seconds every now and then.

Regarding precision. It is what the band reports. I'm already taking away some crazy values. I, for instance, get values of around 120 when measuring the air.
[Android Apps and Games] geopapa:
Unfortunately it doesn't. For instance I started an indoor cycling session. The leds don't light up until I press Heart rate on the dashboard it measures for some seconds then stops. It may start again if I wake up my phone but not always. I have uninstalled Mifit and my phone is a Redmi Note 2.

Maybe a logcat at the end of a 1-2 minute session would be useful to you for debugging?
[Android Apps and Games] BlackRaven86:
Hi! Any plans to fix the GFit sync? It still fails with "Synchronize abort!".
[Android Apps and Games] altsysrq:
Feature Request: Liters and Ounces

This is a much needed app for Android. I like how this gives me full control of how I monitor my activities. I look forward to seeing future updates and additional tracking devices added to the supported list.

I live in a society that is metrically illiterate and have carried this horrible burden with me my whole life. Would it be possible to allow ounces to be used in the water intake monitoring module? I have tried to work with liters but I struggle with it.
[Android Apps and Games] tincore:
Sure. WIll add it on next version.
[Android Apps and Games] geopapa:
Problem solved on build 305. Thanks for your hard work!
[Android Apps and Games] Devo7v:
I recently got my MiBand working again, but for some reason Gliderun is now giving me issues. If you look at the screenshot you'll see that the MiBand steps don't match the Gliderun steps, by a lot. The Gliderun stops are definitely wrong as I played soccer for two hours this evening. Please let me know if there's anything I can send you to help remedy this. Also, I have Activity Intensity and Android Pedometer disabled.
[Android Apps and Games] Devo7v:
I'm not sure what's going on, but fit the last 4 days, Gliderun has been completely messing up my tracking. I think this has to do with the latest update but I can't say for sure since I just got my MiBand working again last week.
[Android Apps and Games] Peakes:
After doing a factory reset to my smartphone , i did a sync with google fit and fitness syncer. But the problem is that all my saved metrics in fitness syncer are empty. No steps, no heartrate, nothing.

Is this a known issue?

Thank you in advance
[Android Apps and Games] maumau22:
I think the problem ist that glideruns database is not stored in web (is not synched in net) and that's problem that after factory reset all data gone.

I had similar problem in gliderun app time ago. App crashed and was not running any more and I de- and reinstalled app and all gliderun data in the past was gone.

I would prefere a gliderun option for (automatically) online sync in cloud such as Dropbox (Backup and restore).
[Android Apps and Games] tincore:
I think that Free Fitnesssyncer keeps your data for a period of time only.

You can always backup your database using admin preferences. You can also use a database in external storage..

I'm working on another solution though.
[Android Apps and Games] tincore:
I know. It is fixed on version 117. It should be available at any moment as I uploaded it more than an hour ago.
[Android Apps and Games] Devo7v:
Sorry about jumping the gun on that one. I received the update and notifications working as expected.
[Android Apps and Games] ubcjack:
Hi, I have 3 questions regarding the app.

1. Can I still use the smart unlock feature if I remove mifit app and use this app instead?

2. Is there a way to turn off all auto tracking and only use miband to keep record, then only sync when we open the app? What options should we set in the app to achieve such a state? My main purpose is to reduce most battery drain on phone and let miband do the work.

3. Is the vib1 vib2 vib3 the vibration times or the vibration strength for notification? Also whats the aud1 aud2 aud3?

Thanks,

Jack
[Android Apps and Games] tincore:
1. No smart unlock at the moment. Doesnt something like this work?

http://www.talkandroid.com/guides/b...r-home-wi-fi-bluetooth-device-or-by-location/

2. Just do not do any tracking. Syncronization happens every two hours at the moment. I'm trying to make syncronization more frequent but so far there is a btle command that should but is not working.

3. That is the vibration times, Two short vibrations each. Aud is audio so it does not apply for the miband.
[Android Apps and Games] ubcjack:
Hi Tincore,

1. I'm not sure how the app pair miband to phone but usually those smartband won't show as a connected BT device in smart unlocked device list. MiFit app can make it show up and therefore you can choose it. I prefer to use wearable to unlock my phone since all other options consume more power.

2. Do you mean simply turn off "global tracking" will do? And I can leave all other options On/Off.

Is it possible to let user enter a synchronization period or simply dont sync until app open?

Thanks for the great app!
[Android Apps and Games] Devo7v:
If you unpair the band with the MiFit app it will show up as a Bluetooth device under the smart lock. That's exactly what I'm doing right now.

The only way I've found to synchronize the MiBand on demand is to go to the wear screen, select the MiBand, and press the synchronize button. You will also be able to pair the band with the app on this screen.
[Android Apps and Games] tincore:
I'm trying to improve all this but there is a miband command that confirms succesful syncronization that does not work for me.

This operation sets the date of the last succesfully syncronized item so the next syncronize starts from that point. Currently I'm retrieving all stored data every time. After a few weeks syncronization takes 2-3 minutes and not a few seconds. Until I discover what is wrong quick syncronizes are not possible.
[Android Apps and Games] Devo7v:
Just wanted to post some a couple issues I'm still running into.

This has happened the last 2 mornings, but when I wake up in the morning, the app is showing that I've burned calories even though I have 0 steps. See the attached screenshot.

I have never been able to get the MiBand and the dashboard steps to match. I feel like as long as there is MiBand data it should use that instead of anything else. I went on a run yesterday where I was only wearing MiBand, so the dashboard steps should match the MiBand steps. See the other attached screenshots.

Is there a way to disable to toast messages when the app is downloading data from the MiBand? I have the "Tracking activity state toast" disabled.
[Android Apps and Games] tincore:
Hi,

I'm considering basal calories. You consume energy even if you do not move.

If you want to see MIBand steps just use the Sensor Steps indicator. Nevertheless as soon as I'm finished with what I'm building I plan to recheck calories and step numbers generation.

I will add a prefernece for that.
[Android Apps and Games] Devo7v:
I would make including basal calories optional. Most people dieting do not take basal calories into account when watching their calorie count.

I feel like a fool, this is exactly what I was looking for. I now have a couple follow up questions:

What is the "Pedometer Distance" and "Time Movning" based on, the wearable or the phone? Just looking at the numbers I'm thinking it's the wearable, but maybe it's not. It would be nice if there was a global setting to have everything either measured by the wearable or the phone.

Sometimes the "Pedometer Sensor Steps" will show 3278 (+0) for example. What is the (+0)?

Thanks.

One other thing I was looking at with the Google Fit integration. I've got the syncing working and I can see activities being uploaded to Google Fit, but I've noticed that it only uploads recorded activities specifically. Is there any way to upload everything recorded by Gliderun? For instance yesterday I didn't record any activities with Gliderun, but I did get over 6,000 steps with MiBand, is there a way to upload that data to Google Fit even though I didn't record it as an activity?
[Android Apps and Games] maishsk:
Is it also possible to update the firmware? I am seeing a number of posts about people who are caught in a firmware update loop and was wondering if you have the option to update the firmware on the device.

Of course there would be a huge question as to what firmware version should be used - and will it work properly.

I think that there is already a problem that people who have installed the tweaked MiBand app have problems because the firmware will not update past a certain version.

What do you think?
[Android Apps and Games] tincore:
About calories. When I check online services like Gfit they mention total calories. I think all this services expect basal included. What I could do in the future is have a basal calculation in the personal profile and show the substraction on the stats pages or maybe indicators. It is not a trivial thing to do though.

Pedometer distance and time moving are based on the combined sensor input. What you can try is uncheck internal pedometer sensor as "use for tracking". I uploaded a new version of the app a few hours ago. I hope pedometer calculation works better. Troubleshooting this and other metrics like calories is one of the main targets for the next days.

+Number is the steps delta. Under some circumstances like a reconnection it could be zero. With the new rutine I hope it works better now.

Upload global stats is what should upload all the steps from the MiBand. Then how GoogleFit then merges steps counts from different sources is a mistery to me. When I upload steps and then try to read them back they are not even in the exact same second I set when I saved them.
[Android Apps and Games] tincore:
I would be just trying to do the same as the official app with just more risk of doing something wrong. I do not have real MiBand technical documentation or many test bands Do we know if there is an unbrick procedure?

Can't the tweaked MiFit app people do it?

About firmware versions. I ignore if differences between firmwares are published. Apparently protocol wise they are all essentially the same.
[Android Apps and Games] tincore:
I uploaded a new version with the new stats pages. I'm open to suggestions about charts, fields or layouts.

First access may take a while to generate stats if you have many days of information.

Days on stats now start at midnight and not at midday. Sleep analysis is performed on night before the stats day. That way you know how well you rested and then what you did during the day.

There was an issue with the miband not syncronizing anymore. That happened because of corrupt dates coming from it under some strange circumstances.

There are quite a number of other smaller fixes.

Now I would like to focus on getting all the metrics accurate and improve the bluetooth connection handling of the miband and other sensors.
[Android Apps and Games] maishsk:
Is there any reason why my sleep is not being tracked?

(I must confess that I could never get it working with MiBand app either).

Any ideas?
[Android Apps and Games] tincore:
Maybe you have an unorthodox sleep pattern. Does it show all your sleep period as sedentary (yellow)? If so enable activity intensity in the day stats chart of that sleep period. Make a capture and send it to me so I can see how it looks like.
[Android Apps and Games] maishsk:
I sure as hell hope not...

Here is the screen shots

https://www.flickr.com/gp/maishsk/Zqduiy

https://www.flickr.com/gp/maishsk/q2KCqn
[Android Apps and Games] tincore:
I would like to see the screenshot with the plotbut with Activity Intensity metric enabled.
[Android Apps and Games] maishsk:
This one?

https://www.flickr.com/gp/maishsk/V0uY62
[Android Apps and Games] maumau22:
I have no option for extern storage card in my mobile phone :(

If I would do export of database, how I can import database again ie. after factory reset of phone?
[Android Apps and Games] Devo7v:
I'm about to run into the same issue. I have 18 month of data stored in Gliderun (150 MB database) and I have a new phone coming in the next couple days. I've been religiously backing up my data to Google Fit and FitnessSyncer so that it is available, but I'd like to be able to copy my database over to my new phone. I've seen the option to export my database to the SD card but every time I try to do that it just says "Failed". Are there some logs I can send to troubleshoot the error? I've also noticed that the paths to export/use the database are hardcoded and cannot be changed. Is there a reason the user can't choose where to save the database to? This would be especially useful for phones that don't have an SD card.

Secondly, this is more of a long-term question about Gliderun. Based on my use of Gliderun my database is growing by about 10 MB per month. While this may not seem like a lot and users may not end up using Gliderun for years, eventually somebody will run into file size issues. What is the file size limit for the database? What happpens when a user reaches that limit?

Finally, some sort of cloud backup and restore would be very useful. From what I've noticed a lot of recent apps have been using Google's ability to save files to Google Drive and it seems like Google has made it easy for developers to implement.
[Android Apps and Games] tincore:
I've just uploaded a new build (310).

Initial support for private backup/sync Gliderun server

Many small fixes

I developed a server that you can run on your network or host elsewhere.

You can store privately all your health metrics and synchronize it onto a new phone or tablet.

For now you can find a recent build in

https://github.com/tincore/gliderun-server
[Android Apps and Games] LithiumAce:
Hello tincore,

After the last update the app keeps crashing. It's the first time it happened.

Crash log sensed to you by mail

Hope you can use it!
[Android Apps and Games] darren1:
Im also having this problem, I have also sent crash log,
[Android Apps and Games] tincore:
Hi,

Thanks for reporting. I've uploaded a fix (311). It should be fine now. I also sent you both the same apk by email.
[Android Apps and Games] darren1:
Thanks, yes the attached apk is working.
[Android Apps and Games] LithiumAce:
Hello tincore,

Can your app work with pebble?

Becaus the smart watch is verry open for other software.