Weather forecast tags

When you write your formula it is working on WFS simulator?
or are you see your formula instead of the data number?

Now I see that it has to be like this:
(forecastDays(1,"COND_DAY"))
*
And you get:


*

1 Like

Hello @masterboyhr,

This is my first message on the forum. I am looking for the exact same feature you described: (forecastDays(1, "TEM_LOW"))° / (forecastDays(1, "TEM_HIGH"))°.

The issue is that WFS displays the tag texts instead of the actual temperatures, and the same happens on the watch.
I tried using the tags in several components, but the result is always the same. Could you tell me what I might be doing wrong?

Thank you very much by advance !

Don’t use ‘smart’ quotes.

I honestly cannot say why it’s not working for you.
I don’t see any error.

When I enter the formula - it works.
(forecastDays(1, "TEM_LOW"))° / (forecastDays(1, "TEM_HIGH"))°

Do you have the latest version of WFS installed?
version 1.7.13

@masterboyhr You didn’t actually enter the same formula! You used the correct quotes, whereas @Demokrit didn’t.

Smart quotes really should be turned off in a software forum.

1 Like

I must say I’m confused by quotes, cannot say I understand the difference.

I was warned by Peter and Russell about the text formatting here so now I mark formulas as “blockquote”.
I don’t trully understand the difference between smart, straight, curly, block… quotes.

Maybe it’s the best to enter formulas by hand, not to copy and paste.

1 Like

smart quotes

blockquote is a good idea; that should prevent automatic conversion. Copy-and-paste from a blockquote should be safe — unless the paste mangles things.

2 Likes

Hello @Gondwana and @masterboyhr,

Thank you so much for your help! As it turns out, I had copied the code directly, which included the wrong quotation marks. I replaced them with the correct ones from my keyboard, and now everything works perfectly!

I really appreciate your guidance—it saved me a lot of time. Thanks again for pointing me in the right direction!

Best regards,

3 Likes




Hello. Please help me. My goal is to make the dial show the weather for 6 days. How to make the temperature show the desired minus sign - it’s winter now and the temperature should be with a minus sign, but it shows how in summer. Or am I doing everything wrong? Thanks in advance.

It’s an easy answer.

(forecastDays(1, “COND_DAY”))

does not show temperature.
It shows/returns weather conditions 0-15

  • 0: UNKNOWN_VALUE
  • 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

There is no tag for temperature tomorrow.
There are tags for min and max temperature tomorrow, use:

(forecastDays(1, “TEM_LOW”))

(forecastDays(1, “TEM_HIGH”))

OK, so when you use

(forecastDays(1, “COND_DAY”))

and you get the result (for example): 8
it doesn’t mean it will be 8°
it means it will be SUNNY (8=SUNNY)

2 Likes

Thank you very much. Now I understand. “Low/High” It worked! It is a pity that so far there is no possibility in the program and it is impossible to display the “current temperature” for the week ahead.

2 Likes

I’m glad it helped.

When you think about it only min-max makes sense.
“current temperature” is temp at the moment, “current temperature” for tomorrow means nothing.
I mean, tomorrow when? 8 AM, noon or 7 PM, when would it be “current”?

1 Like

You’re right! I probably put it wrong. I do not know what it is properly called, maybe then the “Weather Forecast” for the week))). Anyway, thank you very much again.

I also noticed that the information update is “Low/High” for a week occurs once a day after about midnight, and from exactly 00:00 to about 07:00 there is simply no information and just 0 is displayed. Of course, it really depends on the weather provider, and there’s no way to fix it.

2 Likes

Yes, it’s been discussed here, it’s a bug in WFS. I hope it will be solved in the future.
Also the UV tag does not work, always shows 0 on the watch.

3 Likes

([WTHR_TEM] > 0? ‘’: ‘’)[WTHR_TEM]°([WTHR_TEM_UNIT] == 1? ‘C’: ‘F’)

I just want to say thank you, I have learned a lot from your very useful shares. Thank you very much and wish you good health.

1 Like