Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Can't access battery level.

ANSWERED

Hi guys,

 

I am trying to retrieve the battery level of the Fitbit Ionic but I am getting the following error:

 

  • [1:42:43 PM]Unhandled Error
  • [1:42:43 PM]Cannot find module 'power'
  • [1:42:43 PM] at ./app/index.js:7:5

 

I am implementing exactly how the documentation specifies:

 

import { battery } from "power";

console.log(Math.floor(battery.chargeLevel) + "%");

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

Have you updated to the new firmware which was released yesterday?

View best answer in original post

Best Answer
3 REPLIES 3

Have you updated to the new firmware which was released yesterday?

Best Answer

Curious, are you the one who created the goat-face clock for the fitbit? I can not seem to change the temperature from C to F...it shows my location correctly but we use F in the states...any ideas? Also my weather app shows F correctly..just not the clock face...

Best Answer
0 Votes

Hey, I am sorry. It was a prototype and I didn't put this option yet. I will be implementing this feature and more this week. Smiley Happy

Best Answer
0 Votes