during the day you get 01d, 02d …
at the evening i get 14 instead of 04n. so it seams 0 = day, 1 = night ? why i get 01d for day then? for what is ‘d’ ?
other question: are there no more weather night icons in watchmaker ?
during the day you get 01d, 02d …
at the evening i get 14 instead of 04n. so it seams 0 = day, 1 = night ? why i get 01d for day then? for what is ‘d’ ?
other question: are there no more weather night icons in watchmaker ?
are you seeing these values on your watch or in watchmaker studio?
Was there a resolution on this?
An explanation for the original question: The “01d” ({wci}) is the National Weather Service code of the weather condition icon. The first two digits are the condition, with the “d” indicating daytime (“n” will indicate nightime). So “01d” will indicate clear (sunny) daytime, and “01n” will indicate clear nighttime. Other values for that number are (for example) 9 or 10 for rain, 11 for Thunderstorms, 13 for snow, etc. I believe the WM conditional image for weather conditions is expecting a number only from 1 to 9, so are the NWS weather condition values translated to the proper image number, and is nightime handled someway?
I have not digged deeper into this yet, but on my system, setting the conditional image index to “01d” sets the image to “Sunny” (value 1) on the web and on the phone, but on the watch it goes bonkers with showing a double image (showing both sunny (1) and partly cloudy (2)).
I did a little more investigation, but much more needs to be done. Here are my preliminary results:
Current conditions as I write this are locally 67 F and overcast.
On the phone and on the web, {wct} = 22, {wci} 01D, {wct} Sunny, and {wcl} blank. Default values, of course. I have not reproduced that icon double display I referred to earlier.
On the watch (a watchmaker face): {wct} 67 F, (wci} 4, {wct} Cloudy, and {wcl} my city.
Except for {wci}, those appear to be correct. However, the {wci} icon index is pointing to a partly cloudy icon, not the cloudy icon.
I do not know how Watchmaker is getting its weather information, but my experience has shown that different weather providers present their informaton in slightly different ways. For example, some weather providers will use the National Weather Icon index name (that “01D”) to describe the current condition, others will use words. Of course the problem when words are used is they use different ones that mean the same. For example, “Partly Cloudy” can be reported are “Partly Cloudy”, “Mostly Cloudy”, “Partly Sunny”, “Scattered Clouds”, and so on.
I do not envy Watchmaker for having to make sense of all this. Being able to handle the different weather providers, not to mention weather providers in non-US areas. Having dealt with this myself, I am watching with interest (and a little amusement).
I believe I was on the right track. The default Weather Icons in Watchmaker show only 9 icons in them (I checked all 5 sets), and those icon sets have a default complex conditional statement testing for the individual National Weather Service condition values described above.
Or in other words, the weather icon default index statement looks like:
({wci} == ‘01d’) and 1 or ({wci} == ‘02d’) and 2 or ({wci} == ‘03d’) and 3 or ({wci} == ‘04d’) and 4 or ({wci} == ‘09d’) and 5 or ({wci} == ‘10d’) and 6 or ({wci} == ‘11d’) and 7 or ({wci} == ‘13d’) and 8 or ({wci} == ‘50d’) and 9 or 1
Unfortunately this only works for Weather provders that utilize the NWS icon scheme. Which is obviously the provider the web and phone uses. But since the weather information on those platforms have default values, not too relevant. The weather provider that is set up on the watch is different, and unkown to me because I cannot get the weather selector to work (this is discussed elsewhere on this forum).
On the watch, the {wci} value returned is just a simple number. So that above condition won’t evaluate correctly at all. I changed the index selector to be just {wci}, but it still fails.
The cause of my “double icon” is because locally the weather turned “Partly Cloudy” and returned a {wci} value of 14. The NWS introduced dual weather icons for rapidly changing conditions, so maybe that is why the double icon appeared (so are there additonal icons present in the set that are not shown?)
I will be happy to answer any further questions that might occur. If this has already been encountered, I welcome information on how it was resolved.
(forum won’t let me post another reply)
The continuing saga of my research into this. Hopefully this journey I am making is somewhat interesting to someone.
I turns out I have made a few bad assumptions. In looking into possible weather providers, I discovered that the WFF Engine (you know that thing that all watch faces on Android need to adhere to) is supplying an interface between the weather provider and the watch face. That is good news for Watchmaker, in that it does not need to worry about what provider is being used, and just worry about what WFF supplies.
The WFF “conditions” consist of an simple number, 1-15. The various values and their meanings are:
1 - CLEAR
2 - CLOUDY
3 - FOG
4 - HEAVY_RAIN
5 - HEAVY_SNOW
6 - RAIN
7 - SNOW
8 - SUNNY
9 - THUNDERSTORM
10 - SLEET
11 - LIGHT_SNOW
12 - LIGHT_RAIN
13 - MIST
14 - PARTLY_CLOUDY
15 - WINDY
That integer is what is being placed in the {wci} and simpiliar tags. Those values that WFF uses do not really align all that well with the previous Watchmaker weather icon sets, so I would expect that a new set of icons will be released at some point. But in the meantime, even though its not perfect, I will be using the following conditional expression in the “conditional value” field to select one of the existing weather icons.
{wci} == “01d” and 1 or {wci} == 1 and 1 or {wci} == 2 and 9 or {wci} == 3 and 9 or {wci} == 4 and 6 or {wci} == 5 and 8 or {wci} == 6 and 5 or {wci} == 7 and 8 or {wci} == 8 and 1 or {wci} == 9 and 7 or {wci} == 10 and 6 or {wci} == 11 and 8 or {wci} == 12 and 5 or {wci} == 13 and 5 or {wci} == 14 and 2 or {wci} == 15 and 1 or 1
The first condition (“01d”) is there to make sure there is a valid icon when the face is on the web or phone.
I do not have an apple watch, so I have no idea what will show up in the {wci} field on that.