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

Weather info in clock scree

ANSWERED

Hello!

 

I'm new in programing and I am trying to get a clock face which shows also the weather info, but I can't find any guidelines in how to get the data from the weather application.

 

How can I do it?

 

Thank you all

Best Answer
1 BEST ANSWER

Accepted Solutions

I would look at the Weather module for Fitbit OS by Grégoire Sage

This is the module I used and it is pretty easy to use.

I also have ForecastTime open source, and that uses a modified version of this library. It is getting a bit complex though so it might not be the easiest to learn from; but if you have questions, I should be able to answer.

View best answer in original post

Best Answer
0 Votes
5 REPLIES 5

I would look at the Weather module for Fitbit OS by Grégoire Sage

This is the module I used and it is pretty easy to use.

I also have ForecastTime open source, and that uses a modified version of this library. It is getting a bit complex though so it might not be the easiest to learn from; but if you have questions, I should be able to answer.

Best Answer
0 Votes

I would look at Weather module for Fitbit OS by Grégoire Sage.

 

I use a modified version of this library in my open source ForecastTime watch face. It is getting to be a bit of a complex code base; but I am happy to explain everything I did.

Best Answer
0 Votes

Hi, i used this script but i get "fitbit-weather/app is imported by app/index.js, but could not be resolved" when i try to run my watch face. How can i see the weather temperature? thanks

Best Answer
0 Votes

Can you post your index.js (or at least the relevant portion)?

Best Answer
0 Votes

Apologies for reviving an old thread, but I came across this post looking for information on Gregoiresage's weather module.

 

In-case another stumbles upon this same problem:

 

In your app/index.js file change this line:

import * as weather from "fitbit-weather/app";

TO:

import * as weather from "../fitbit-weather/app";

 

As well In your companion/index.js file change this line:

import * as weather from 'fitbit-weather/companion'

TO:

import * as weather from '../fitbit-weather/companion'

Best Answer