Watchmaker Wiki

The ultimate watch maker for Android Wear!

User Tools

Site Tools


tips:feelslike

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
tips:feelslike [2015/01/27 21:03]
jt3
tips:feelslike [2015/01/27 21:58] (current)
jt3
Line 7: Line 7:
 ===== Examples ===== ===== Examples =====
  
-   Wind Chill Object Opacity{wt}<80 and 100 or {wh}<40 and 100 or 0 +==== Wind Chill Object Opacity ==== 
-    +   {wt}<80 and 100 or {wh}<40 and 100 or 0
-   Heatindex Object Opacity: {wt}<80 and 0 or {wh}<40 and 0 or 100 +
-   +
  
-   +==== Heatindex Object Opacity ==== 
 +   {wt}<80 and 0 or {wh}<40 and 0 or 100 
 + 
 +===== Explanation ===== 
 +As stated in the intro, the Wind Chill and Heatindex formulas are very complex.  Adding them together, along with extra conditionals to determine which to show, would result in such a lengthy formula that it would almost certainly be too many characters for the text field.  Even if it does manage to squeeze in, it'd be a headache to deal with. 
 + 
 +A simpler method is to create two separate text objects, one following the examples shown on the [[tips:windchill|Wind Chill page]], and one following the examples shown on the [[tips:heatindex|Heatindex page]].  Once the two text objects are created, make sure that the following parameters (if used) are identical between them: 
 +  - Position X 
 +  - Position Y 
 +  - Gyro Effect 
 +  - Text Size 
 +  - Rotation 
 +  - Skew X 
 +  - Skew Y 
 +  - Font 
 +  - Alignment 
 +  - Transform 
 +  - Display 
 + 
 +Then, simply edit the Opacity field of the two objects with the applicable example.  What this does is create the appearance of a single text object.  The Opposing opacity values ensure that the two objects will never both show at the same time.  If there is a HeatIndex, then the HeatIndex text object will show.  If not, then the Wind Chill text object will show.  Yes, that means that the Wind Chill object will show when there is neither Heatindex nor Wind Chill, but that's okay, because at that point, the Wind Chill object displays Actual Temperature anyway, which is what we want. 
 + 
 +Having said all that, let's go back to that lengthy list of fields that need to be identical.  Notice color wasn't among them?  It's fine to have them be different colors; say, Red for Heatindex and Blue for Wind Chill.  Just keep in mind that Wind Chill will be shown even if there's currently neither modifier in play.  If you elect to use different colors, you may want to conditionally change the colors of the Wind Chill object so that it's (running with our previous examples) blue when there's a wind chill and white when there isn't.  This will prevent you from having to create a third text object just to keep your color scheme.  In this case, the formula would be placed under the Tint section of the text object, and would look something like: 
 + 
 +   {wt}>50 and 'FFFFFF' or {wws}<3.1 and 'FFFFFF' or '0000FF' 
tips/feelslike.1422389016.txt.gz · Last modified: 2015/01/27 21:03 by jt3