Watchmaker Wiki

The ultimate watch maker for Android Wear!

User Tools

Site Tools


weather

Differences

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

Link to this comparison view

Next revision
Previous revision
weather [2015/01/20 20:14]
splitbrain created
weather [2018/02/21 11:20] (current)
alex_curran
Line 1: Line 1:
-====== Weather Widget ======+**Weather Updates from iPhone**
  
-{{ :official:images:weather_set_1.png?200}} +You can send manual weather updates from iPhone
-Weather Widgets are [[image]] widgets so please refer to them for their general use.+  - Go to WatchMaker phone app > Settings > Weather > ensure you have set a weather source. 
 +  - Go to WatchMaker phone app > Settings > Other > Transfer Settings to Watch (you need to use cloudsync on watch)
  
-To display the current weather conditions, the weather widget uses a special image that contains multiple icons (also called sprite)Nine different states are supported in the weather sets delivered with Watchmaker:+You can also update automatically from watch (Android Wear only - Samsung Gear coming soon) 
 +  - Go to WatchMaker phone app > Settings > Weather > ensure you have set weather source. 
 +  - Go to WatchMaker WATCH app > double tap for Settings > Weather Source > From Watch 
 +  - Go to WatchMaker phone app > Settings > Weather > Set Up Weather Updates on Watch
  
-  - sunny 
-  - FIXME 
-  - FIXME 
-  - FIXME 
-  - light rain 
-  - heavy rain 
-  - thunderstorm 
-  - snow 
-  - cloudy 
- 
-===== Using your own image ===== 
- 
-You can provide your own image. To do so select it in the "Custom Image" property and make sure to adjust the "image grid" property to match the layout of your sprite. 
- 
-Which icon is displayed is displayed is determined by the "Image Selection" property. It should contain a [[lua]] expression returning the number of the image to show (on a 3x3 grid, 1 is the top left corner, 3 is top right and 9 is bottom right). 
- 
-The default expression is this: 
- 
-<code lua> 
-'{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 
-</code> 
- 
-''{wci}'' of course refers to the [[tags#weather tag]] containing the weather icon information. The expression maps the many states this tag can have to the 9 available icons. 
- 
-''{wci}'' can have the following values: 
- 
-^ Value ^ Condition ^ 
-| FIXME | FIXME     | 
weather.1421781280.txt.gz · Last modified: 2015/01/20 20:14 by splitbrain