osmandapp / OsmAnd

OsmAnd
https://osmand.net
Other
4.68k stars 1.02k forks source link

Add "Any connected" as an option to sensor Widgets and Trip recording config #18217

Closed euphi closed 10 months ago

euphi commented 1 year ago

Description

Values from BLE sensors are not shown in the bicycle mode. Instead, a "-" is shown.

They are ok in other modes (World, Car, ..)

Steps to reproduce

  1. Configure at least one BLE or ANT+ sensor.
  2. Add it to some display configuration
  3. In bicycle mode, only the - value is shown.

--> changing to World or Car mode shows the sensor value. Switch back to Bicycle shows "-" again.

I tried to find differences between modes (or what is special in my bicycle mode) and tried:

  1. 2D/3D mode
  2. Bright/Dark mode
  3. various locations of the sensor values
  4. transparent widgets on/off.

The problem persists. I also tried to set World and Bicyle mode as similar as possible, there is no change: Sensor value is shown in world mode, but not in Bicycle mode.

Actual result

see steps to reproduce

Expected result

the BLE/ant+ sensors value should be shown whenever they are configured to be shown.

Your Environment (required)

OsmAnd Version: Osmand~ 4.5.10
Android/iOS version: 12
Device model: realme 7 5G
euphi commented 1 year ago

There is only some seconds difference between these screenshots:

DmitryAlexei commented 1 year ago

Is your sensor visible in menu > settings > Cycling (app profiles) > External Sensors (Plugin settings)?

euphi commented 1 year ago

Yes, it is shown (in alle profiles, so also in the profiles that do not show the heart rate value).

If I open the sensor settings, it is shown that sensor is connected and I can see the value (+ value of batterie service).

DmitryAlexei commented 1 year ago

OsmAnd~ 4.6.0#866m, released: 2023-10-12 In some profiles sensors are not activated in widget by default. So when you add hart rate widget, for example, to bicycle profile, you need to activate sensor in widget manually (see screenshots):

euphi commented 1 year ago

Well... thanks for the hint. Still a strange behavior that should be fixed.

Either have no default in all profiles or use the same default in all.

A good solution would be to directly add the sensor instance as widget to the panel. (There is no need to have an "abstract" heart rate as sensor).

euphi commented 1 year ago

My preferred solution would be that a BLE widget by default shows the first currently connected sensor of this type.

Rationale: If you have more than one sensor of a type, you usually don't use them at the same time. However, there is no need to have two different profiles if you use two different bicylces (with individual speed and cadence sensors each).

vshcherb commented 11 months ago

Looks related to https://github.com/osmandapp/OsmAnd/issues/17936.

vshcherb commented 11 months ago

Unfortunately automatic selection is only fixed last week, so you need latest release. Well, indeed to have specific setting option - by default shows the first currently connected sensor of this type.

To do

Trip recording

Screenshot
External sensors Paired sensors

If any connected is selected for recording, show sensor name on the second line.

Widgets

Screenshot
Widget settings Paired sensors Paired sensors
DmitryAlexei commented 10 months ago

OsmAnd~ 4.7.0#1346m, released: 2024-01-10