06-10-2022 11:02
06-10-2022 11:02
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?
06-11-2022 02:16
06-11-2022 02:16
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.
06-13-2022 06:05
06-13-2022 06:05
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