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

Altimeter example

Hi, first time poster, sorry if I have the wrong forum, copied the altimeter example https://github.com/Fitbit/sdk-altimeter (except LICENCE and README.md) into fitbit studio, package.json is text based on the github example but graphical on fitbit studio, so chose type app, versa3, sdk v6, location permission, english locale. When I  run I get

  • Error: One or more required files do not exist in the project: resources/index.view and resources/widget.defs
  • Build failed.

These files are not on the github altimeter example and I cant see them being called from any of the code, any suggestions, thanks tonyf1

Best Answer
0 Votes
8 REPLIES 8

The problem is probably that the project was written for SDK4, whereas you're targeting SDK6.

The main changes came between SDK4 and SDK5; see how you get on with the Migration section here.

Peter McLennan
Gondwana Software
Best Answer
0 Votes

that sounds good, thanks

  1. Rename index.gui file to index.view
  2. Rename widgets.gui to widget.defs
Best Answer

Yes, that fixed it, thanks. Who would I contact to have the documentation at  https://dev.fitbit.com/build/tutorials/examples/ improved? I think it is important because its one of the starting places for new programmers.

Best Answer

I suspect they know. Submitting an issue to the relevant git repo would probably bring it to the developer's notice; raising a pull request with SDK5/6 code would be even better!

Many Fitbit-related repositories are managed by non-Fitbit people.

Peter McLennan
Gondwana Software
Best Answer
0 Votes

Hi all

For what its worth, I have decided to write some beginner level tutorials, my first http://drrea.org.au/Fitbitstuff/tutorialbart.pdf provides a little more help on running the Tutorial SDK example app "Bart" at https://dev.fitbit.com/build/tutorials/examples/

Best Answer

@tonyf1  Wow! Great job! 👍

Peter McLennan
Gondwana Software
Best Answer
Best Answer
0 Votes

Wasnt sure where best to put these tutorials? At Github at  Fitbit /ossapps ? Request a Tutorials heading or under examples? Then do a PR?

Best Answer
0 Votes