Smart Bike Lights (Data Field) / Bike Lights Control (Widget)

I've made two open source CIQ applications to control ANT+ lights:

- Smart Bike Lights (data field): https://apps.garmin.com/en-US/apps/0d9fd828-c932-4470-9c37-fd2828881888 

      Configurator: https://maca88.github.io/SmartBikeLights/ 

- Bike Lights Control (widget): https://apps.garmin.com/en-US/apps/fa3c2332-76e3-4ba1-8528-32a0fd617ab1 

     Configurator: https://maca88.github.io/BikeLightsControl/ 

Smart Bike Lights features:
- Automatic light control (Smart mode) based on the configured filters (sunset, sunlight, speed, ...)
- Manual light control (only for Edge devices with a touch screen or devices with CIQ 3.2 and more than 32KB memory)
- Records lights modes that are displayed in Garmin Connect

Bike Lights Control features:
- Manual light control (available to all devices)

Both applications can be installed on the same device, which can be useful for low end devices (e.g. Edge 520) where "Bike Lights Control" can be used to change light modes manually and "Smart Bike Lights" for automatic light control.

Currently registered ANT+ lights:
- Bontrager Ion Pro RT
- Bontrager Ion 200 RT
- Bontrager Flare RT
- Garmin Varia RTL500
- Garmin Varia RTL510
- Garmin Varia RTL515
- Garmin Varia HL500
- Garmin Varia UT800

in case your ANT+ light is not on the list you can help by doing the following:

1. Install Bike Lights Control
2. Pair your bike light with your Garmin device
3. Open the widget:
- Edge with a touch screen: post which numbers are displayed on the buttons and what mode each button represents when pressed
- Other devices: Select the "Light modes" menu and post which numbers are displayed in the menu and what mode each menu item represents when selected

Example for Bontrager Ion Pro RT:


1 -> High steady beam
2 -> Medium steady beam
5 -> Low steady beam
63 -> Day flash
62 -> Night flash

There are some features that could be possible to add in the future, but would require Garmin to add them to the CIQ api. In case you are interested in any of the below features, consider upvoting their feature request thread:

1. Control lights based on the ambient light sensor available on some devices:
https://forums.garmin.com/developer/connect-iq/i/bug-reports/ambient-light-sensor-api-access 

  • Hello maca88.

    First of all thank you for this great piece of application!

    Now everything works as desired. I just need to look a little more into the logic of the filters and understand their exact meaning. ;-)

    BR
    Patric

  • Thanks again...
    Thanks also to Garmin for taking me back to my teens...
    1983 I bought a Sinclair ZX Spectrum with 48kb of memory, 40kb was available for programming - Edge 130 has 32kb :)

  • After some testing on my forerunner 245 (also has 32KB memory), I found out that it is possible to include radar filter when only one light is paired. In the newly released version 0.23.0 the following features were added:
    - Added radar filter for low memory devices (only when one light is paired)
    - Added solar intensity filter (only for solar devices with more than 32KB memory)

    Please let me know in case you experience any crashes on your Edge 130, when adding the radar filter.

    For Edge 1040 Solar owners, the solar intensity filter can be used for dark places (e.g. tunnels), I did some tests and it works pretty well by setting "Solar intensity = 0".

  • Small test drive with edge 130 - radar works!

    I had 3 filters activated (brake, radar, night)

    Thanks again, Damir

  • Brilliant app! No issues so far but I wanted to say thank you to you and all the other posters here for sharing your ideas and configs.

    Here's mine..!

    Headlight:

    • Tunnel: Low
    • Daytime: Day Flash
    • Nightime: If running out of battery, Low, otherwise goes from Low -> Med -> High depending on speed

    Taillight:

    • Brake: Solid
    • Daytime: Off by default, Day Flash if car's detected
    • Nightime, if battery is good: Peloton by default, Night Flash if car's detected
    • Nightime, if running out of battery: (same as Daytime)

    And my config:

    1,1!ON:1H=3#0,1073754640#7,6!TUNNEL:2:4:0:0G[4Er1800,s-1800!DAY:1:8:0:0Er1800,s-1800!LOBATT:1:4:0:0B]3!SSONIC:1:2:0:0C]13.88889!CRUISN:1:3:0:0C]8.33333!:1:4:0:0D=1#0,73535488#8,5!EBRAKE:1:4:1:0A[-20!NCAR:3:6:0:0B[4Es-1800,r1800I]-1]0!NIGHT:2:5:0:0B[4Es-1800,r1800!DCAR:1:7:0:0I]-1]0!:1:0:0:0D=1#5,5:HL 1800!1,:-1!1,High:2!1,Medium:3!1,Low:4!1,Day Flash:8#5,5:Varia 515!1,:-1!1,Solid:4!1,Peloton:5!1,Day Flash:7!1,Night Flash:6#0::#1:1#123!:123!#B3843#7#3#0#0

  • Recently Lights Configurator for Smart Bike Lights (https://maca88.github.io/SmartBikeLights/) was enhanced to be able to store configurations in the cloud by using Firebase (https://firebase.google.com/), which should simplify copying the configuration values around devices (e.g. PC and mobile). Here are the steps to save a configuration:

    1. Login by using the login icon on the top right on the page:

    1. Create or load an existing configuration
    2. Click on the blue disk icon located on the bottom right of the page
    3. Set the name of the configuration and confirm the dialog to save the configuration
    4. Saved configuration can be edited/copied/removed from the top of the page:

    If you encounter any issues with it, please let me know.

  • HI, please can I ask for configuration file for edge 520 ?  My plan is to have - Day - lights off  +  flashing, if car is coming.  Night - lights on  + flashing when car is coming.

    I was trying to use some other config and only change edge type, but so far no success, on screen I have got S mode, light are off, but not flashing when radar spots object..

    Thank you very much in advance. It is very great tool.

  • Hi,

    unfortunately "Bike radar" filter is not supported for Edge 520, because it does not have CIQ 3.0, where the BikeRadar api was added. Edge 520 and Edge 1000 are the only two devices that Smart Bike Lights supports and do not have CIQ 3.0.

    I can still create the configuration for Day/Night, but you need to specify for which lights (e.g. Varia RTL 515, Flare RT).

  • I see, so the only option to have varia 515 flashing (on edge 520) when spotted vehicle, is to use default manual mode on radar device? (lights on, flashing when radar).

    My fault, I shall ask before bying one :)  lesson learnt. 

  • That is correct, your only option is to use the Varia Peloton mode.