Locus Map - forum

Content & Tools => Add-ons & Co-apps => Topic started by: benuli on March 10, 2015, 18:08:07

Title: Locus Addon HeartRateAlert
Post by: benuli on March 10, 2015, 18:08:07
hi,
some months ago I have written a very simple addon for my personal use, that enables my phone to beep if a specific heart rate is reached. At the moment it only works with android 4.4 or maybe higher... (but I will change that in future).
Installation:
1.In your phone: Settings -> Security -> 'Allow installation of apps from unknown sources'
2.Download and install the apk from this post

Usage and first test:
1. open the app 'Locus - addon...' , the Locus symbol with the heart
2. to test that your phone will beep:
    - enter some value greater than 1 in the field left of ' beep if HR is lower' and check the checkbox at the right and 'Save Settings'
    - open locus pro and verify that there is one real important setting checked: Settings -> Miscellaneous -> 'Enable Periodic updates' , without this, there will be no beep!
   Now you should hear a single beep every five seconds or so.
If you hear that beep it works! (check your system sound settings, if you don't hear anything)
I took the sounds from a heart rate monitor in an emergency station. Maybe I make the sounds configurable, or some vibration...

Now you can activate your heart rate belt and connect it to Locus pro with the Bluetooth Manager and your smartphone should beep, dependend on your current heart rate.
The addon must not run always, it just works in background, the Userinterface is only for setting the alert zones. (if you forget to disable the checkbox 'beep if HR is lower', your smartphone will always start to beep, if you start Locus pro, even without a heart rate sensor in use.

It's my first Android app so be patient with me!
But I will try to help, if you get problems.




(http://s16.postimg.org/ylztestxd/Screenshot_2015_03_10_09_33_48.jpg) (http://postimg.org/image/ylztestxd/)

(http://s16.postimg.org/v13xvkpdt/Screenshot_2015_03_10_16_57_25.jpg) (http://postimg.org/image/v13xvkpdt/)
Title: Re: Locus Addon HeartRateAlert
Post by: ohgood on March 11, 2015, 11:39:30
yesterday, i decided i wanted to track HR, and today, you shared your app. THANKS !

do you have any recommendations for good/cheap HR monitors, and any additional information about whether ANT or bluetooth is better for battery life ?

thanks again, when people write apps, we all LOVE them for it !
Title: Re: Locus Addon HeartRateAlert
Post by: benuli on March 11, 2015, 12:47:05
I use a Bluetooth 4 Sensor from Polar. Battery drain is not the Problem.  My longest use of locus with 2 Bluetooth Sensors active was about 10 hours with display on about 3 hours. The trick was to set my i9100G with CM11 installed in airplanemode and then only activate Bluetooth!
Title: Re: Locus Addon HeartRateAlert
Post by: Calidris on April 12, 2015, 22:41:07
Has anyone tried this on Android 5.0 and Samsung Galaxy S5? Seems it doesn't work for me or I am doing something wrong. I have Garmin ANT+ HRM. Thank you.
Title: Re: Locus Addon HeartRateAlert
Post by: benuli on April 13, 2015, 19:22:35
I'm sorry. I don't have Android 5.
Title: Re: Locus Addon HeartRateAlert
Post by: LALocususer on May 02, 2015, 23:04:49
@benuli Thank you for your contribution :)
Title: Re: Locus Addon HeartRateAlert
Post by: benuli on May 07, 2015, 16:39:07
With moto g 2014 and Android 5.0.2 it works
Title: Re: Locus Addon HeartRateAlert
Post by: radek_9 on July 20, 2015, 15:19:50
Hi.
I can't see a link to download. Thanks for sending. Radek

edit
sorry I found it.
Title: Re: Locus Addon HeartRateAlert
Post by: talybont on September 09, 2015, 20:33:02
That is what I looked for. I will test with Xperia Z3.

edit
It works with Xperia Z3 and Android 5.1.1
Well done!!
Title: Re: Locus Addon HeartRateAlert
Post by: zigzag on January 22, 2017, 10:19:30
Hi,
I have made a very-very simple addon to tell on your heart rate zone changes.

https://play.google.com/store/apps/details?id=com.gilisztaturmixgmail.locus_addon_hr
Title: Re: Locus Addon HeartRateAlert
Post by: Joska on September 22, 2018, 21:47:44
Quote from: zigzag on January 22, 2017, 10:19:30
Hi,
I have made a very-very simple addon to tell on your heart rate zone changes.

https://play.google.com/store/apps/details?id=com.gilisztaturmixgmail.locus_addon_hr

Hello (zigzag)

is there any manual, how to start and stop your add-on, how to change between the profiles?
Best regards, Joska
Title: Re: Locus Addon HeartRateAlert
Post by: poutnikl on August 26, 2019, 09:39:26
Quote from: zigzag on January 22, 2017, 10:19:30
Hi,
I have made a very-very simple addon to tell on your heart rate zone changes.

https://play.google.com/store/apps/details?id=com.gilisztaturmixgmail.locus_addon_hr


Hi zigzag,

I have recently bought Xiaomi MI Band 4 and decided to try you addon.

It works as expected. I have even involved all 4 profiles. ( your values, original values from Band 4 ,  6 zone values from some training web with 2 different possible HRmax ).

There are various heart rate zoning generally, but many sources for common usage use five, round-percentage HR zones like your addon, with various zone name wording.

( Percentage of Max Heart Rate - HRmax )

50-60 Easy/Recovery
60-70 Fat burning  -long sustained effort
70-80 Aerobic
80-90 Anaerobic
90-100 Max HR rone/ VO2mx zone.

But I see one major difference.

Most of sources relate the zone percentage simply to HRmax, but your addon relate the percentage to interval HRrest-HRmax.  As my HRmin is about 32% of HRmax, it brings significant shifting toward HRmax.

Could you comment that ?

Experience notes:

I have realized I am in zones  usually 1--3 ( wrt HRmax, not wrt HRret-HRmax interval ) during fast walking, but at subjectively comparable exercise/breathing effort, I am in zones 3-5 ( 70-95%HR) during cycling.

I have to try going really slow and relaxed, subjectively feeling like very lazy cyclist, to be able to keep zone 3 and not going higher..

Perhaps my HRmax is higher then I suppose, I am 54 and my HRmax is supposed to be 166 ( 220-age ) or 170 ( 208-0.7.age ). I have used 170. Measure max rate by thge addon was 166 by I have invoved just 1 30s max effort during my 3.5hour bike trip. I have no trouble to sustain anaerobic zone 4 for 1-2 hours.

I was going to try High intensity interval training, recommended for faster fat burning ( 20 min warm up in zone 2, 4-6 cycles  ( 30s max effort + 4-5 min relax in zone 2 ).. I have realized zone 2 means very low effort cycling..
Title: Re: Locus Addon HeartRateAlert
Post by: poutnikl on August 26, 2019, 09:59:21
Quote from: Joska on September 22, 2018, 21:47:44Hello (zigzag)

is there any manual, how to start and stop your add-on, how to change between the profiles?
Best regards, Joska

Hello Joska,

in myexperience, there is no explicit start/stop for the addon. There much be established a connection to the HR monitor., in respective BlueTooth or ANT manager.

The realtime HR itself may be displayed by a suitable dashboard, and/or set to be initiated by a track recorder. In the latter, there is mentioned the avg and max HR withing the track statistics.
Title: Re: Locus Addon HeartRateAlert
Post by: skwal on January 10, 2024, 19:19:17
Quote from: benuli on March 10, 2015, 18:08:07hi,
some months ago I have written a very simple addon for my personal use, that enables my phone to beep if a specific heart rate is reached. At the moment it only works with android 4.4 or maybe higher... (but I will change that in future).
Installation:
1.In your phone: Settings -> Security -> 'Allow installation of apps from unknown sources'
2.Download and install the apk from this post

Usage and first test:
1. open the app 'Locus - addon...' , the Locus symbol with the heart
2. to test that your phone will beep:
    - enter some value greater than 1 in the field left of ' beep if HR is lower' and check the checkbox at the right and 'Save Settings'
    - open locus pro and verify that there is one real important setting checked: Settings -> Miscellaneous -> 'Enable Periodic updates' , without this, there will be no beep!
   Now you should hear a single beep every five seconds or so.
If you hear that beep it works! (check your system sound settings, if you don't hear anything)
I took the sounds from a heart rate monitor in an emergency station. Maybe I make the sounds configurable, or some vibration...

Now you can activate your heart rate belt and connect it to Locus pro with the Bluetooth Manager and your smartphone should beep, dependend on your current heart rate.
The addon must not run always, it just works in background, the Userinterface is only for setting the alert zones. (if you forget to disable the checkbox 'beep if HR is lower', your smartphone will always start to beep, if you start Locus pro, even without a heart rate sensor in use.

It's my first Android app so be patient with me!
But I will try to help, if you get problems.




(http://s16.postimg.org/ylztestxd/Screenshot_2015_03_10_09_33_48.jpg) (http://postimg.org/image/ylztestxd/)

(http://s16.postimg.org/v13xvkpdt/Screenshot_2015_03_10_16_57_25.jpg) (http://postimg.org/image/v13xvkpdt/)

os there a Chance to usw this with 14 ?