WatchMaker Tips & Tricks

A collection of useful Tips, Tricks and more relating to the use of Watchmaker. Touch the "Title" to view the entire Tip. Members can add their own WatchMaker Tips &Tricks!

Post Item
9
Vote

Auto-flash

This is something I found handy for cases when I wanted a layer to “flash”, i.e. turn on for a few seconds and then automatically turn off. It can also be used for moving things someplace and then back again, etc. You can do this with wm_schedule by...
Published by Mark Shoulson on 27 August 2015WatchMaker Tips & Tricks Posted
6
Vote

string.format Shorthand

Just a shorthand I found that can save you some keystrokes if you use string functions a lot, especially string.format. Instead of “string.format(“%s %d:%02d”, var_a, var_b, var_c)” for example, you can say: (“%s %d:%02d”):format(var_a, var_b, var_c)...
Published by Mark Shoulson on 27 August 2015WatchMaker Tips & Tricks Posted
8
Vote

math.max() and math.min()

These are good to know about on general principles, and have particular applications in hand movements. The math.max() function simply returns the largest of its arguments, however many there are, and math.min() returns the smallest. This is useful when...
Published by Mark Shoulson on 27 August 2015WatchMaker Tips & Tricks Posted
13
Vote

Toggling

Similarly, you shouldn't need a function to toggle a variable between two values. You shouldn't have to say “if var_x==1 then var_x=0 else var_x=1 end” or something (assuming var_x is always either 0 or 1). This is sufficient: var_x=1-var_x You can...
Published by Mark Shoulson on 27 August 2015WatchMaker Tips & Tricks Posted
13
Vote

The % Operator

This is probably the most useful but underused operator. It very often happens that we want something to count up... but only to a certain point, and then start again at the bottom. Like cycling through screens, or colors. I see lots of code with things...
Published by Mark Shoulson on 27 August 2015WatchMaker Tips & Tricks Posted
9
Vote

Polar Coordinates

If you know how far something is from the center (say, the radius of your watch dial), and what angle it's at (say, the second-hand rotation value), and need to translate that into X and Y coordinates (e.g., moving a shape around as a second hand),...
Published by Mark Shoulson on 27 August 2015WatchMaker Tips & Tricks Posted
10
Vote

Show Layer While Charging

Show a Selected Layer While Charging Tip: Show an element only while watch charging (like a charging widget, or desk clock) Create the layer(s) you want to display when the watch is charging... In the opacity, put... "{bc}" == "Discharging" and 0 or 100...
Published by Paul Hurst on 27 August 2015WatchMaker Tips & Tricks Posted
28
Vote

Multi-Screen Watch

Create Multiple Screens with Unique Info/Graphics on Each Sceen This method requires several, very simple steps to accomplish. There are 2 places you need to enter the following formulas. The 1st is in the "Script" Settings . (This sets the "Default...
Published by Terry Zahn on 27 August 2015WatchMaker Tips & Tricks Posted
7
Vote

Multi Line Text in 1 Layer

Here is an Approach for Composing a Multi Line Text Layer We can use the Lua string.char() function with 10 . ("10" is the ascii value for linefeed) . The expression below will display 32ºF 2:23 Mon Feb 2 In a text field, enter the following exactly as...
Published by Paul Hurst on 27 August 2015WatchMaker Tips & Tricks Posted
6
Vote

Moon Phase Rotation

How to Set the Rotation Value for A Moon Phase Disc. *In the "Rotation" setting for your "Moon Phase Disc", add the following exactly as typed. ({wmp}*18)+90 *Must be edited to reflect where the top of the selected "Lunar Disc" is located. Each "Lunar...
Published by Terry Zahn on 27 August 2015WatchMaker Tips & Tricks Posted
7
Vote

Map Coordinates as Text

Display Your Current Position/Coordinates On Your Watch Enter the following code into a "Text Layer" where you normally would enter text. Enter exactly as typed. string.sub([[{alat}]],1,6) produces this example: -29.26 string.sub([[{alon}]],1,5)...
Published by Paul Hurst on 27 August 2015WatchMaker Tips & Tricks Posted
7
Vote

Calendar Remaining Percent Completed / Progress Bar

Here is an Approach a Formula(s) for Calendar Remaining % Completed / Progress Bar Percent of Calendar Meeting 1 Complete Formula: ({dtp}-{c1bp})/({c1ep}-{c1bp})100 if you want to round off the decimals, you can use math.floor(number) + 0.5 (which...
Published by Paul Hurst on 27 August 2015WatchMaker Tips & Tricks Posted
7
Vote

Battery Level - Make Layer Flash

Make a Layer Flash Based on the Percent of Battery Charge Remaining. Add the following to a layer's "Opacity" setting exactly as typed. {bl} < 20 and {ds}%2*100 or 100 Edit the " 20 " in the formula to change when the "Flash begins. Example Watches...
Published by Paul Hurst on 27 August 2015WatchMaker Tips & Tricks Posted
11
Vote

Battery Level - Color Change

Apply color to a layer, based on battery percent of charge remaining. Add the following code exactly as it appears to the "Color" settings for the layer you wish to show a battery color relative to the percent of charge remaining. {bl} < 20 and 'ff0000'...
Published by Terry Zahn on 27 August 2015WatchMaker Tips & Tricks Posted

This Website and It's Resources are Powered by:
  
WatchMaker Beautiful Watches for Android Wear

No smartwatch required!! Best clock wallpaper for Android!
  
WatchMaker Live WallPaper

Introducing the Perfect Companion App for WatchMaker...
  
GearsPro (OBD 2 & Car)