k0rventen / apple-health-grafana

Visualise your Apple Health export in Grafana
381 stars 28 forks source link

Shortcuts data source #26

Closed MarshalX closed 6 months ago

MarshalX commented 6 months ago

It looks like "Apple Health" and "Apple health specific metrics" dashboards are not support data from "Shortcuts" app. Could it be fixed/improved?

Personally i have a lot data from shortcuts. I automated data import from external APIs to Apple Health, logging UV index when going outside, and simple shortcuts for logging body measurements.

Thank you!

k0rventen commented 6 months ago

This is because the list of possible source 'device' is defined by:

show tag values from StepCount with key=device

So the source "Shortcuts" exists but probably not in this measurement, meaning it won't show up in the source list.

I guess I'll have to create a dedicated set() of all sources as a new measurement and use that for this variable.

MarshalX commented 6 months ago

ive tried main branch. works great!

k0rventen commented 6 months ago

Great, I'll push a new release today with these changes included.

k0rventen commented 6 months ago

new behavior that resolve this issue available on release v0.3.0 !

MarshalX commented 6 months ago

Thank you!