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

Companion Weather API and SDK-Weather-Clock

This is all new to me.  The example SDK-weather-clock, built using SDK 6.1,  is basically working on my Sense except for the weather condition name.  Regardless of the condition code, the condition name is undefined. Where do I get the condition names from? 

Best Answer
0 Votes
2 REPLIES 2

Hi @FoldingBikeman - have a look at https://dev.fitbit.com/build/reference/companion-api/weather/  the weather conditions are listed, I have defined them for you

let weatherConditions = [
"ClearNight",
"Cloudy",
"Cold",
"Flurries",
"Fog",
"FreezingRain",
"HazyMoonlight",
"HazySunshineDay",
"Hot",
"Ice",
"IntermittentCloudsDay",
"IntermittentCloudsNight",
"MostlyClearNight",
"MostlyCloudyDay",
"MostlyCloudyNight",
"MostlyCloudyWithFlurriesDay",
"MostlyCloudyWithFlurriesNight",
"MostlyCloudyWithShowersDay",
"MostlyCloudyWithShowersNight",
"MostlyCloudyWithSnowDay",
"MostlyCloudyWithSnowNight",
"MostlyCloudyWithThunderstormsDay",
"MostlyCloudyWithThunderstormsNight",
"MostlySunnyDay",
"Overcast",
"PartlyCloudyNight",
"PartlyCloudyWithShowersNight",
"PartlyCloudyWithThunderstormsNight",
"PartlySunnyDay",
"PartlySunnyWithFlurriesDay",
"PartlySunnyWithShowersDay",
"PartlySunnyWithThunderstormsDay",
"Rain",
"RainAndSnow",
"Showers",
"Sleet",
"Snow",
"SunnyDay",
"Thunderstorms",
"Windy"];

 

That said, the results are still an issue, see posts

 

https://community.fitbit.com/t5/SDK-Development/Weather-API/m-p/5133626#M17283 

 

https://community.fitbit.com/t5/SDK-Development/Weather-API-Condition-returns-33/m-p/4949396#M15840 

Author | ch, passion for improvement.

Best Answer
0 Votes

Hi Guy_ and thanks for the reply.

  I saw that Alphabetical list of conditions and had hoped there was another order available since the list in that order makes no sense with the condition codes I am receiving.  I agree with your list of questions although I am receiving Fahrenheit temp and my proper city.  I changed the update time to 15 minutes and the temp seems close to other stations however without the provider information and their API it is difficult to confirm any readings.     

regards

Best Answer
0 Votes