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 

  • That is strange, I did not remove the ability to load an existing configuration and I still see it: https://maca88.github.io/SmartBikeLights/
    You may opened by mistake the configurator for Bike Lights Control widget which does not have the load option.

  • That's for the widget maca88.github.io/.../
    Ok, there is a slight difference between BikeLightsControl / SmartBikeLights and yet you can be surprised;)
    Maybe you can add a description at the top of the configurator what is it for? There will be no misunderstandings and mistakes;)

  • I updated the title for both configurators in order to avoid confusions :)

  • Staram się skonfigurować te światła, ale coś pójdzie nie tak. Garmin 1030 + Varia 510 1. Zależy mi na migającym świetle, gdy pojazd za mną jest wykrywany w ciągu dnia, gdy samochód jest coraz bliżej błysku mocniej, a następnie niech nie miga.

  • Nie mówię po polsku, więc następujący tekst został przetłumaczony za pomocą Tłumacza Google:
    W poniższej konfiguracji światło będzie migać tylko wtedy, gdy pojazd jest za Tobą. W przypadku, gdy samochód znajduje się bliżej niż 50 metrów, zostanie użyty tryb „Światło dzienne”, w przeciwnym razie zostanie użyty tryb „Błysk nocny”.

    ###0,73404416#3,3|CAR50:1:7:1I[50]0|CAR:1:6:1I]-1]0|:1:0:1D=1##5,4:Varia 510|2,:-1,Off:0|1,Solid:4|1,Day Flash:7|1,Night Flash:6#B2713##2#0#0

  • Zmodyfikuję powyższe ;)

    Chcesz mieć światło tylko wtedy, gdy będzie jakiś pojazd za Tobą:

    ###0,73404416#3,3|CAR50:1:7:1I[50]0|CAR:1:0:1I]-1]0|:1:0:1D=1##5,4:Varia 510|2,:-1,Off:0|1,Solid:4|1,Day Flash:7|1,Night Flash:6#B2713##2#0#0

    Jak widać, usunięte zostało świecenie lampki, gdy radar nie widzi żadnego pojazdu.

    Pobaw się modyfikacją, np. w przypadku szybkiego pojazdu niech światło świeci nie od 50m, a od 100m.

    ###0,73404416#4,3|CAR50:2:7:1I[50]0I[100]1|CAR:1:0:1I]-1]0|:1:0:1D=1##5,4:Varia 510|2,:-1,Off:0|1,Solid:4|1,Day Flash:7|1,Night Flash:6#B2713##2#0#0

    Dodatkowo dorzuć światło nocne od zachodu do wschodu słońca. I tak dalej. Wbrew pozorom nie jest to takie trudne ;) 

  • Thank you very much for your HELP to check. As for the sunrise and the west, I will mix something up and nothing will work;)

  • SORRY IT DOESN'T WORK FOR ME, I copied this line ### 0.73404416 # 4.3 | CAR50: 2: 7: 1I [50] 0I [100] 1 | CAR: 1: 0: 1I] -1] 0 |: 1: 0: 1D = 1 ## 5.4: Varia 510 | 2,: - 1, Off: 0 | 1, Solid: 4 | 1, Day Flash: 7 | 1, Night Flash: 6 # B2713 ## 2 # 0 # 0 Mode S - Car bleed, the light is not active at all - I was especially standing and looking at the road to see if the light would turn on.

  • The configuration that you provided is not valid as it contains spaces and also in some cases it contains a dot instead of a comma ("0.73404416" instead of "0,73404416"). How did you copied the configuration?


    Do you have the bike radar paired with your Garmin Edge? If not please check this link on how to pair it: https://www8.garmin.com/manuals/webhelp/variartl510/PL-PL/GUID-83345F4C-DAC5-437D-A10F-1EE92E92B980.html

  • ###0,73404416#4,3|CAR50:2:7:1I[50]0I[100]1|CAR:1:0:1I]-1]0|:1:0:1D=1##5,4:Varia 510|2,:-1,Off:0|1,Solid:4|1,Day Flash:7|1,Night Flash:6#B2713##2#0#0

    I copied that, these spaces were added by the translator