これで紹介されていた気圧計が3万円と高く、気軽には買えないなーと。
以前、iPhoneを使っていたときはWidgetで気圧を測るものがあり、最近のスマホにはだいたいついているという話を聞いたので、termuxでセンサーの値を取ってきてゴニョゴニョすればいいと思いつく。
termux-sensor -l
{
"sensors": [
"bmi26x Accelerometer Non-wakeup",
"mmc56x3x Magnetometer Non-wakeup",
"Rotation Vector Non-wakeup",
"bmi26x Gyroscope Non-wakeup",
"stk32600 Proximity Sensor Wakeup",
"gravity Non-wakeup",
"linear_acceleration",
"Rotation Vector Non-wakeup",
"mmc56x3x Magnetometer-Uncalibrated Non-wakeup",
"Game Rotation Vector Non-wakeup",
"bmi26x Gyroscope-Uncalibrated Non-wakeup",
"sns_smd Wakeup",
"pedometer Non-wakeup",
"pedometer Non-wakeup",
"sns_geomag_rv Non-wakeup",
"pick_up_motion Wakeup",
"device_orient Non-wakeup",
"stationary_detect",
"motion_detect",
"bmi26x Accelerometer-Uncalibrated Non-wakeup",
"OPLUS Fusion Light Sensor",
"OPLUS Side Panel Fusion Light Sensor",
"sensor_logger Non-wakeup",
"sx933x Sar Sensor Wakeup",
"lux_aod Wakeup",
"stk32600 wise Light Sensor Non-wakeup"
]
}
気圧計のセンサーはなかった。こんなもんかもしれん。
気圧計は高度の参考データとして、GPS測定の補助に使われるらしい。
気圧計が入っていない端末では、アンドロイドアプリの気圧計は近隣の気圧データを参照するよう(頭痛ーるの気圧データはそれから取ってきているっぽい)。
偏頭痛持ちのため、気圧データを集積して頭痛との関連を調べてみようと思っていた。この目的なら近隣の気圧データの蓄積でも問題なさそう。