tips:forecast_days
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
tips:forecast_days [2018/01/09 14:41] – created toby_goodlock | tips:forecast_days [2018/01/09 14:45] (current) – toby_goodlock | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== How to Calculate Forecast Days ====== | ====== How to Calculate Forecast Days ====== | ||
- | If you want to add the weather forecast to your watch but aren't sure how to get the day names correct, use the below examples for days 1-5. | + | If you want to add the weather forecast to your watch but aren't sure how to get the day names correct, use the below examples for days 1-5. This uses the {ddw0} tag to calculate the next 5 day names. |
===== Example ===== | ===== Example ===== | ||
====Day 1==== | ====Day 1==== | ||
- | {ddw0} +1==1 and ' | + | {ddw0} +1==1 and ' |
====Day 2==== | ====Day 2==== | ||
- | {ddw0} +2==2 and ' | + | {ddw0} +2==2 and ' |
- | + | ||
====Day 3==== | ====Day 3==== | ||
- | {ddw0} +3==3 and ' | + | {ddw0} +3==3 and ' |
====Day 4==== | ====Day 4==== | ||
- | {ddw0} +4==4 and ' | + | {ddw0} +4==4 and ' |
====Day 5==== | ====Day 5==== | ||
- | {ddw0} +5==5 and ' | + | {ddw0} +5==5 and ' |
===== Explanation ===== | ===== Explanation ===== | ||
+ | Because the {ddw0} tag uses the values 0-6 for the days of the week we are simply adding 1-5 to the current value to figure out the correct day name. | ||
tips/forecast_days.txt · Last modified: 2018/01/09 14:45 by toby_goodlock