10-06-2017 10:43
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

10-06-2017 10:43
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
I'm being really dense, but I can't seem to tap into the battery API to get the chargeLevel. I execute the following and it builds, but at runtime, I get the error below.
import { battery, charger } from "power";
myBattery.innerText = battery.chargeLevel;
when I use this, I get:
- [12:42:09 PM]Unhandled Error
- [12:42:09 PM]Cannot find module 'power'
- [12:42:09 PM] at ./app/index.js:9:5
Answered! Go to the Best Answer.
Accepted Solutions
10-06-2017 14:10
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


10-06-2017 14:10
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
You're not dense, it's just not available yet!
https://dev.fitbit.com/release-notes/2017-09-26-dp1/#firmware
10-06-2017 14:10
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


10-06-2017 14:10
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
You're not dense, it's just not available yet!
https://dev.fitbit.com/release-notes/2017-09-26-dp1/#firmware
10-06-2017 15:47
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

10-06-2017 15:47
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
Thanks! I read the notes before and just didn’t pick up about the Power, thanks for the response.
10-06-2017 17:48
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

10-06-2017 17:48
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Thanks for asking this question. I too was having problems getting the battery information.

