Q: WHY DOESN'T SNOWSTORM DISPLAY THE CURRENT WEATHER?
A: Yr, the source for the forecasts doesn't return the current weather, the only give forecasts. The widget will however merge the old forecast with the new forecast, so it can display the current weather unless you have just installed the widget, or moved to a new location.
Q: IN WHAT COUNTRIES DOES THE WIDGET WORK?
A: The widget has just been released, and is known to work in Sweden. It should hopefully work in most larger cities in the world. Yr can give forecasts for 7 million locations around the world, but there must be a valid geonames mapping for location. The widget won't be able to download a forecast if the mapping between the location and yr.no is broken. The widget has been automatically tested with almost all capitals in the world, and they work. It ahs also been tested with all state capitals in USA and all county towns in UK, and they also work. Norway is however a known problem. See below.
Q: THE WIDGET CAN'T GET A FORECAST FOR MY LOCATION. CAN I DO ANYTHING ABOUT THAT?
A: You might be able to do something. The widget is using geonames to get hold of country/region/city using gps coordinates. The retreived values should then map to an url at yr.no, but there are times when it doesn't work. E.g. geonames thinks that the region is named “Halland County” but yr.no thinks that the regions should be named “Halland”.
You could in that case place a mappings file under the snowstorm directory on the sdcard. The mapping file should map from one region name to another region name.
Creating the mapping file isn't trivial, but isn't that hard either. Here's an example of a bad mapping. Let us say that we are in Copenhagen in Denmark, and I get an error that says that we can't get a forecast. We should then tap on the widget, click menu, and then select the log view.
We would then see a line that says something like “Got location 55.6776812020993, 12.5709342956543”. So now we know that we can't map from that location to yr.no. We should further down in the same report see something like “Downloading forecast for 55.6776812020993, 12.5709342956543” followed by an URL that looks something like http://www.yr.no/place/Denmark/Capital_Region/Copenhagen/forecast.xml. That URL is however not correct according to Yr.
We now need to see what Yr think is correct. Goto Yr.no and search on Copenhagen, and click on it. The address in the browser is then: http://www.yr.no/place/Denmark/Capital/Copenhagen/ (If you have selected English as you should do)
We can now see that the difference is that geonames gave /Denmark/Capital_Region/Copenhagen/, but Yr gave /Denmark/Capital/Copenhagen/.
We should then place this in the mappings.txt in the snowstorm directory.
The file should be saved in UTF-8.
Q: WHY DOES NORWAY NEED A SEPARATE MAPPING FILE? ISN'T YR NORWEGIAN?
A: Yes they are Norwegian, but they use separate mappings for Norway.
Here's an explanation of the problem. The basic problem is that the widget is using geonames to map from coordinates to location names since yr.no expect URL/paths that are based on names. Mappings for the rest of the world contains 3 parts. Country/Region/City
Norway does however require 4 parts. Country/Fylke/Kommune/City
Geonames can't give me the kommune of a city, and thus I can't map to an URL on yr.no. Newer versions of Snowstorm will thus download a mapping file if Snowstorm is used in Norway.
Yr is also working on creating an API that should be able to give a forecast from a location, and I don't have to query geonames in that case. They hope to be able to complete it this autumn, and I will then start using it.
Q: HOW DO I SWITCH FROM CELSIUS TO FAHRENHEIT?
A: Goto settings by tapping the widget, and pressing the menu button when you are in the details view. Select the UI tab in the settings dialog, and uncheck the “Use Celsius” option. Remember to save.