zepp-os-sensors
Installation
SKILL.md
Zepp OS Sensors
Context: Device App (Mini Program). Watchfaces use the separate legacy
hmSensorsurface; seezepp-os-watchfacefor watchface scope. API_LEVEL: varies per sensor (HeartRate 2.0; Accelerometer/Gyroscope 3.0; check each). Prereq: permissions live inapp.json— seezepp-os-fundamentals.
Overview
Each sensor is a class in @zos/sensor. The shape is always: instantiate → subscribe → read → stop. But the exact method names and permission codes differ per sensor — don't assume; check references/sensor.md.
import { Accelerometer, FREQ_MODE_NORMAL } from '@zos/sensor'