Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend metrics with smartphone others sensors #1605

Open
brunseba opened this issue Feb 8, 2024 · 7 comments
Open

Extend metrics with smartphone others sensors #1605

brunseba opened this issue Feb 8, 2024 · 7 comments
Milestone

Comments

@brunseba
Copy link

brunseba commented Feb 8, 2024

Hello,

I'm currently testing our android client to cover circuit motorcycle metrology.
It works well with a ThingsBoard server instance.

Regulation banned to collect metrics directly on motorcycle ECU, so i plan to use smartphone embedded sensors instead.

Do you think it's possible to add option on your android version to select more data from sensor like : temperature, gyroscope, ...

  • App build number: 2.4.12
  • Android version: 11 and 12
  • Device: oneplus6, pixel 6aXL
  • Installation source: Google Play,
@jpmens
Copy link
Member

jpmens commented Feb 8, 2024

Temperature etc sounds like a good idea as long as such sensors are generally available on devices. (On our iOS app we submit barometric pressure in p for instance.)

These could be added to extended data.

@growse
Copy link
Collaborator

growse commented Feb 8, 2024

@jpmens how do you want to do this? Shall I come up with a proposal for values of keys that data can go into (based on what it might be possible to get)?

@growse growse added this to the Backlog milestone Feb 8, 2024
@jpmens
Copy link
Member

jpmens commented Feb 8, 2024

Gladly, though if you kick me in the direction of where the possible values are documented, I'll gladly take the task.

I'm going to assume the data will be quite different from what iOS has to offer, but when we have a list of items we can coordinate with @ckrey

@growse
Copy link
Collaborator

growse commented Feb 9, 2024

@ckrey
Copy link
Member

ckrey commented Feb 9, 2024

I had a look at sensors a while ago. Reading Gyroscope/Accerelometer does not make sense when you take the measurements only once every few seconds or minutes. I used it in another project where we used Gyro/Accerlometer with a frequency of 50 times per second. I don't think something like that makes sense in OwnTracks.
There is no thermometer in an iPhone/iPad

@jpmens
Copy link
Member

jpmens commented Feb 9, 2024

The only data I'd be interested in from above list would be ambient air pressure, relative humidity, and temperature, but as it's the device's temperature it doesn't make much sense at all to me to collect the latter. (How hot is your pocket?!)

@brunseba since it was you who began this thread: which of the sensors from the documentation linked to above were you thinking of? And please consider we won't be publishing N x per second just to get a gyro or whatnot.

@jpmens
Copy link
Member

jpmens commented Feb 18, 2024

@brunseba thoughts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants