List of all possible Google weather API "Conditions" - google-api

Anyone know of all the possible weather conditions Google's API will put out?
I've got to match up my icons to the forecast, and I can't find a list of conditions.

I found this list which looks more complete than any other that I've seen
http://dennisdel.com/content/conditions.xml (NOT AVAILABLE ANYMORE (Jan 2016))
<conditions>
<type>PARTLY SUNNY</type>
<type>SCATTERED THUNDERSTORMS</type>
<type>SHOWERS</type>
<type>SCATTERED SHOWERS</type>
<type>RAIN AND SNOW</type>
<type>OVERCAST</type>
<type>LIGHT SNOW</type>
<type>FREEZING DRIZZLE</type>
<type>CHANCE OF RAIN</type>
<type>SUNNY</type>
<type>CLEAR</type>
<type>MOSTLY SUNNY</type>
<type>PARTLY CLOUDY</type>
<type>MOSTLY CLOUDY</type>
<type>CHANCE OF STORM</type>
<type>RAIN</type>
<type>CHANCE OF SNOW</type>
<type>CLOUDY</type>
<type>MIST</type>
<type>STORM</type>
<type>THUNDERSTORM</type>
<type>CHANCE OF TSTORM</type>
<type>SLEET</type>
<type>SNOW</type>
<type>ICY</type>
<type>DUST</type>
<type>FOG</type>
<type>SMOKE</type>
<type>HAZE</type>
<type>FLURRIES</type>
<type>LIGHT RAIN</type>
<type>SNOW SHOWERS</type>
<type>ICE/SNOW</type>
<type>WINDY</type>
<type>SCATTERED SNOW SHOWERS</type>
</conditions>
EDIT
There is a new one here based on the original list:
https://gist.github.com/806934
It removes these from the list
<type>ICE/SNOW</type>
<type>WINDY</type>
<type>SCATTERED SNOW SHOWERS</type>
and adds:
<type>HAIL</type>
Probably wouldn't hurt to use all of them anyway

That link was broken for me. Here's a list I found on another forum:
"Clear
Cloudy
Fog
Haze
Light Rain
Mostly Cloudy
Overcast
Partly Cloudy
Rain
Rain Showers
Showers
Thunderstorm
Chance of Showers
Chance of Snow
Chance of Storm
Mostly Sunny
Partly Sunny
Scattered Showers
Sunny"

This was mentioned: http://www.blindmotion.com/?p=73 though it may not be complete, as it isn't something released by Google. It probably covers about 99% of cases though, barring random enhancements and releases to the weather api by Google staff.
EDIT:
blindmotion.com appears down, internet archive has the content of the page: http://web.archive.org/web/20111001141159/http://www.blindmotion.com/2009/03/google-weather-api-images/ . (Note, from 2009)
https://gist.github.com/bzerangue/806934 (by Vijay, listed in below answers) is likely a more up to date list

Here's the best list I could find: http://www.blindmotion.com/?p=73
You may want to consider alternate APIs that are formally supported and documented. Yahoo!'s Weather RSS feed is a handy, easy-to-use API. I use the National Weather Service's API for one of my projects because I need to pull the forecast for a specific time frame in the future and it lets me do that in a reasonably straightforward way.

I compiled this one, it has everything, and so far I don't think I missed anything.
Clear
Sunny
Partly Sunny
Mostly Sunny
Scattered Thunderstorms
Showers
Scattered Showers
Rain and Snow
Overcast
Light Snow
Freezing Drizzle
Chance of Rain
Partly Cloudy
Mostly Cloudy
Chance of Storm
Rain
Chance of Snow
Cloudy
Mist
Storm
Thunderstorm
Chance of TStorm
Sleet
Snow
Icy
Dust
Fog
Smoke
Haze
Flurries
Light Rain
Snow Showers
Hail
Source: https://gist.github.com/806934

Some more: Mist, Dust, Icy, Smoke, Sleet

Related

(Google Play) App dropped to rock bottom in multiple countries / top-lists after simple metadata change in a single country

Background info: Our game has been pretty stable for months in the top 100 roleplay category in over 55 countries while we've been hovering in the top 10 in around 5-8 countries.
Problem: After some metadata change (minor title & short description adjustments) in a few countries we've been immediately dropping like 100-400 positions in all countries (whether the country was involved in the metadata changes or not). We couldn't believe our eyes and were not able to wrap our head around how a ‘short description’ change in Poland can make us drop from #70 to #416 in the US-Roleplay charts. We dug through our data and we were able to find another similar occurrence. In June last year we exclusively changed the title of our game in France and immediately dropped 3x our ranking in 20 or more countries as well. In June all positions recovered over the timespan of 8 days, unfortunately it seems like this time this is not the case.
We’re aware of the importance of keywords and the impact metadata can have. We still rank very good on all our important keywords and the traffic coming from play store searches haven’t really changed as well.
Have any of you ever experienced this? What information are we missing? Looking forward to hearing your thoughts. Needless to say, we appreciate all input :)
We also faced something similar during the same time as you posted this message. To confirm, is your app title longer than 30 characters (do check all listings)? Google might have started to penalize for that. We are also figuring the same.
No luck with recovering the ranks

Multi-Language Websites

Can anyone recommend a good option to translate websites into Spanish? We tried using the Google translate plugin but the translation was so rough (very inaccurate, bordering on embarrassing the company) we had to hire a company to refine the translation so that it was much more accurate which makes for an extremely inefficient process for updating the site moving forward.
We're in health insurance, so the language we're translating is very specialized in nature and needs to be accurate for our members. To make it even more complicated, the Google Translate plugin happens instantly, so the translation is live before we have a chance to refine it before users can see it. In other words, there's no way to refine the translation before you make the content visible to users in the production environment. This is a legal regulatory requirement for Covered California and the Affordable Care Act, so it has to be a top notch implementation.
Short of a proxy solution that intercepts the content before it hits the production site or a separate site coded in Spanish, I'm not sure what other solutions exist if any. Ideas? The separate site solution is also problematic because it requires a bilingual staff and it doubles the work because both environments have to mirror each other exactly at all times.
Recommendations? Ideas? Any suggestions based on experience are most welcome!
Hire developer - he will describe all you need. You will never do it by your own. If you already have - hire new one, he will know how to do it. Question is very spiciefied but any (let's take for example php) php-engine (framework) or even custom php-engine can be updated the way you want.
Preview before upload to public? Easy! Change by moderator|admin values of translations? Easy! Main thing that each sentence (or even paragraph) you will describe by your own... I don't want describe all mechanism of it - hire developer and he will do all you need. $)

Search for the word and exporting 35 characters after that word using shell script

I have a file input.txt which have loads of weird characters, html tags and useful materials. I want to display 35 characters after the word "description" excluding weird characters like $&lmp and without html tags in the new file output.txt.
Input sample:
</image>
<title>A Londoner Looks Back: Were The Olympics Awesome?</title>
<link>http://www.askmen.com/sports/fanatic/london-olympics-post-mortem.html</link>
<description rdf:parseType="Literal">
The other evening I walked out of London&rsquo;s <a
href="http://www.askmen.com/fashion/watch_100/135_olympic-watches.html">Olympic
stadium onto the new &ldquo;Javelin&rdquo; train into town. (The journey from east to
central London, quite recently still something of a commuter&rsquo;s nightmare, took just
six minutes.) A railway worker on the platform didn&rsquo;t just point everyone the way
onto the train; he did a dance for us. You don&rsquo;t usually get that on London
transport. These Olympics made the city happier.I now live in Paris, but I
consider myself a Londoner. I went to nursery school in London, spent 15 years of my life
in the city, speak in a London accent, visit my parents and siblings here, and, as someone
of mongrel origin who belongs nowhere, I feel at home in the world&rsquo;s most
cosmopolitan city. To steal a line from the 1980s film Sammy and Rosie Get Laid:
&ldquo;I&rsquo;m not English. I&rsquo;m a Londoner.&rdquo; But London is also a sprawling,
gray, wet, overpriced city where traveling anywhere always seems to take forever, and
Londoners are not positive people. In fact, we are whiners. Going into the
Olympics, the whining was at full blast. Landing in London days before <a
href="http://www.askmen.com/sports/bodybuilding/olympic-bobsledding.html">the Games
began, I found my friends and family full of dread. The Games&rsquo; organizers had
indicated that while the Olympics were on, traveling anywhere would take even longer than
forever. My sister had been told to be at her desk at 7 a.m. during the Games to avoid the
rush hour -- this in a city where many people start work nearer to 10 a.m. A friend showed
me a kind of war scenario prepared by the bank where he worked, full of ominous questions
like, &ldquo;What if your supply chain stopped?&rdquo; &ldquo;What if your technology
failed?&rdquo; &ldquo;What if your brand, image and reputation were impacted by any of the
above?&rdquo; And what was all this upheaval in aid of? To watch some doped-up
moustachioed Eastern European women win incomprehensible weightlifting events? In a YouGov
survey days before the opening ceremony, only 51% of Britons expressed an interest in the
Olympics -- and that was a lot better than earlier surveys.On the day of the
opening ceremony I happened to have a meeting down the street from my last <a
href="http://www.askmen.com/london/">London address (a shared flat above a now defunct
liquor store). I ran to Baker Street tube, as I&rsquo;d done a thousand times before. Then
I got on a media bus to the opening ceremony that passed Southwark Bridge with the
Financial Times building where I had worked in the 1990s. It was like a dream:
You move through a familiar landscape that has been transformed. The Olympics helped me
see London afresh.It was during the opening ceremony that the mood among
Londoners changed. I know foreigners didn&rsquo;t get all the references: the Windrush
ship that brought the first Jamaican immigrants to Britain in 1948, the BBC weather
forecaster Michael Fish assuring us there would be no hurricane the night before one
struck in 1987, the dance of the state-funded National Health Service nurses. But Londoners got it. Danny Boyle, the director, gave us a multicultural and funny
Britain that had finally shed its imperial delusions of grandeur. The Olympic torch was
run into the stadium not by an Aryan superman but by the pot-bellied middle-aged ex-rower
Steve Redgrave, who can&rsquo;t run. For the first time in my life, Boyle&rsquo;s Britain
made me feel a patriot. The opening ceremony remains the highlight of my Olympics.Then the sports began, and with it the instinctive expectation that the Brits
would fall flat on their faces. We may have invented modern sports, but England&rsquo;s
soccer team hasn&rsquo;t won a prize since 1966, and no British man has won Wimbledon
since 1936. Surely our Olympians would continue the tradition?&nbsp;It seemed
so on the first day, when Britain&rsquo;s much-hyped male cyclists failed to win a medal
or even to figure in the run-in in front of Buckingham Palace. Only on the second day did
our first medal arrive: A silver for cyclist Lizzie Armitstead, a polite young vegetarian
from the rural north so little-known that at the press conference she had to introduce
herself to the nation. &ldquo;I could never get my head around eating corpses,&rdquo; she
explained. On the fourth morning, Britain still had no golds. The more
excitable newspapers began demanding inquests. And then the golds came in a crazy rush,
won by a bunch of underpaid Britons of all colors whose frank delight was irresistible.
Above all, there was Mo Farah, the Somali-born runner, who had arrived in London&rsquo;s
suburbs as an eight-year-old barely able to speak English, and had really wanted to play
on the wing for Arsenal, but who won gold in the 10,000 and 5,000 meters instead. After
his first gold, an African journalist asked if he wouldn&rsquo;t rather have been running
for Somalia. &ldquo;Look, mate, this is my country,&rdquo; replied Farah. He was
Boyle&rsquo;s multicultural Britain. The second Saturday of the Olympics, when
Farah was among six Britons to win gold, was Britain&rsquo;s best sporting day since 1966.
It was our best single Olympic day since the Games were held in London in 1908. Of course,
we embarked on an orgy of patriotism. On BBC TV, the new &ldquo;British heroes&rdquo; were
feted much like &ldquo;heroes of the harvest&rdquo; on North Korean state TV. Foreigners
rightly accused the Britons of practically ignoring the other 200 nations. However,
that&rsquo;s what every country at the Olympics does. Each country watches its own Games.
</item>
<title>How Facial Hair Can Save You From Skin Cancer</title>
<link>http://www.askmen.com/sports/news/moustaches-and-skin-cancer.html</link>
<description rdf:parseType="Literal">
Output should be like this:
The other evening I walked out of London Olympic
stadium onto the new Javelin train into town. (The journey from east to
central London, quite recently still
If you thought moustaches were solely to distinguish regular males from porn stars and
hipsters, think again. A new study suggests that
I have tried:
sed 's/^.*<description>/<description>/
s/</</g
s/>/>/g
s/&rsquo;/'"'"'/g
s/&ccedil;/c/g
s/<[^>]*>//g
s/^\(.\{35\}\).*/\1/' inputsample.txt
I don't believe it's possible with sed since sed doesn't understand XML entities. You need to use a programming language like Perl or Python for something like this.
The closest I can get you is:
$ sed -nE '/description/s/.*description(.{,35}).*>/\1/p' file_name
The -E means use extended regular expressions, so the {35,35} will work. The -n says don't print. I'm capturing the next 35 characters and substituting the whole line for them.
However, any special entities such as and all bets are off.

Name of the spinning load/wait/buffer animation

You see these things everywhere in both desktop and web development. Do they have a proper term or name? I thought I heard someone call it a "thumper" once, but Google doesn't seem to agree.
Not really sure how to categorize this, since it's applicable everywhere.
The term you heard was most likely Throbber - this is from early web browsers (Mosaic, Netscape) where the page load indicator was indicated by animating the browser logo.
In Android development they're called "indeterminate progress bars."
In iOS development they're called "activity indicators."
Another common term is "spinner", e.g., STYLE_SPINNER in ProgressDialog, but care should be taken to avoid confusion with spinner-style menus.
The term Sorrento for the buffering pinner, is from the "Meaning of Liff" series, the joke etymology book written by Douglas Adams & John Lloyd,
It's called a sorrento, and was given a name by a former Manager of Google Milan in honour of his hometown.

Using flickr to get photos of a specific location and put together a model

I've read about systems which use the Flickr database of photos to fill in gaps in photos (http://blogs.zdnet.com/emergingtech/?p=629).
How feasible is a system like this? I was toying with the idea (not just a way of killing time but as a good addition to something I am coding) of using Flickr to get photos of a certain entity (in this case, race tracks) and reconstruct a model. My biggest concern is that there aren't enough photos of a particular track and even then, it would be difficult to tell if two photos are of the same part of the racetrack, in which case one of them may be irrelevant.
How feasible is something like this? Is it worth attempting by a sole developer?
Sounds like you're wanting to build a Photosynth style system - check out Blaise Aguera y Arcas' demo at TED back in 2007. There's a section about 4 minutes in where he builds a model of the Sagrada Família from photographs.
I say +1 for photosynth answer, its a great tool. Not sure how well you could incorporate it into your own app though.
Its definately feasable. Anything is possible. And yes, doable for a single developer, just depends how much free time you have. It would be great to see something like this integrated into Virtual Earth or Google Maps Street View. Someone who could nail some software like this could help 3D model the entire world based purely on photographs. That would be a great product and make any single developer rich and famous.
So get coding. :)
I have plenty of free time, as I am in between jobs.
One way to do it is to get an overhead view of the track layout, make a blueprint based on this model, and then get one photo of the track and mimic the track's road colour. That would be a start.
LINQ to Flickr on codeplex has a great API and would be helpful for your task.

Resources