Accessing step counter in Wasp-OS throws ValueError: invalid sensor
#1
Hello,

I'm working on a custom Wasp-OS watch face to include the current step count. I'm using "watch.accel.steps" to get the step count value, which I picked up by looking at the step counter app included with Wasp-OS.

My app works in the simulator, but crashes on the device.

I tried to check the step count in a console on the watch using wasptool, and got this:

Code:
>>> watch.accel.steps
Traceback (most recent call last):
  File "<stdin>", in <module>
  File "drivers/bma421.py", in steps
ValueError: invalid sensor
>>>

Is there another method I should use to get the step count?

I also noticed that Wasp-OS doesn't display its built in step counter app. Not sure if I'm doing something wrong. The step counter did work initially when I had InfiniTime installed, so the hardware works (or did, at one point).

Any pointers appreciated!
  Reply
#2
Saw an issue on the Wasp-OS GitHub that might be related. I commented there. Sorry for the double-post.

https://github.com/daniel-thompson/wasp-os/issues/244
  Reply
#3
No worries.

As mentioned on the ticket. wasp-os CI builds now include support for BMA425.
PineTime: wasp-os and MicroPython, Pinebook Pro:  Debian Bullseye
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Is it possible to hack a UV sensor in the current case? BogdanV 1 2,868 12-25-2020, 08:43 PM
Last Post: barray
  Barometer/Pressure sensor (for floor count) Arite 2 3,867 06-03-2020, 11:09 AM
Last Post: Arite

Forum Jump:


Users browsing this thread: 1 Guest(s)