<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss">

<channel>
	<title>Here comes the Sun &#187; location</title>
	<atom:link href="http://sunng.info/blog/tag/location/feed/" rel="self" type="application/rss+xml" />
	<link>http://sunng.info/blog</link>
	<description>Life ramblings</description>
	<lastBuildDate>Thu, 02 Sep 2010 12:29:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Get your conky location aware</title>
		<link>http://sunng.info/blog/2010/02/get-your-conky-location-aware/</link>
		<comments>http://sunng.info/blog/2010/02/get-your-conky-location-aware/#comments</comments>
		<pubDate>Fri, 19 Feb 2010 15:17:26 +0000</pubDate>
		<dc:creator>Sunng</dc:creator>
				<category><![CDATA[装备]]></category>
		<category><![CDATA[conky]]></category>
		<category><![CDATA[GIS]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[location]]></category>

		<guid isPermaLink="false">http://sunng.info/blog/?p=494</guid>
		<description><![CDATA[Add this in your conkyrc ${exec curl -s &#34;http://api.hostip.info&#34; &#124; xpath -e &#34;//gml:featureMember/Hostip/gml:name/text()&#34; -q} ${exec curl -s &#34;http://api.hostip.info&#34; &#124; xpath -e &#34;//gml:featureMember/Hostip//gml:coordinates/text()&#34; -q} Hostip is well known as a service provider of the geoclue framework. It translates IP address to geolocation information. The API we use will return a GML document like &#60;?xml version=&#34;1.0&#34; encoding=&#34;ISO-8859-1&#34; [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.flickr.com/photos/40741608@N08/4370628754/" title="2010-02-19-225826_188x44_scrot by 贝小塔, on Flickr"><img src="http://farm5.static.flickr.com/4014/4370628754_5a22522b80_o.png" width="188" height="44" alt="2010-02-19-225826_188x44_scrot" /></a></p>
<p>Add this in your conkyrc</p>
<div class="codecolorer-container text default" style="border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">${exec curl -s &quot;http://api.hostip.info&quot; | xpath -e &quot;//gml:featureMember/Hostip/gml:name/text()&quot; -q} ${exec curl -s &quot;http://api.hostip.info&quot; | xpath -e &quot;//gml:featureMember/Hostip//gml:coordinates/text()&quot; -q}</div></div>
<p>Hostip is well known as a service provider of the geoclue framework. It translates IP address to geolocation information. The API we use will return a GML document like</p>
<div class="codecolorer-container xml default" style="border:1px solid #9F9F9F;width:435px;height:300px;"><div class="xml codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;?xml</span> <span style="color: #000066;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span> <span style="color: #000066;">encoding</span>=<span style="color: #ff0000;">&quot;ISO-8859-1&quot;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;hostipLookupResultSet</span> <span style="color: #000066;">version</span>=<span style="color: #ff0000;">&quot;1.0.1&quot;</span> <span style="color: #000066;">xmlns:gml</span>=<span style="color: #ff0000;">&quot;http://www.opengis.net/gml&quot;</span> <span style="color: #000066;">xmlns:xsi</span>=<span style="color: #ff0000;">&quot;http://www.w3.org/2001/XMLSchema-instance&quot;</span> <span style="color: #000066;">xsi:noNamespaceSchemaLocation</span>=<span style="color: #ff0000;">&quot;http://www.hostip.info/api/hostip-1.0.1.xsd&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><br />
&nbsp;<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;gml:description<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>This is the Hostip Lookup Service<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/gml:description<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp;<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;gml:name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>hostip<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/gml:name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp;<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;gml:boundedBy<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;gml:Null<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>inapplicable<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/gml:Null<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp;<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/gml:boundedBy<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp;<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;gml:featureMember<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;hostip<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp;<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;ip<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>58.212.88.212<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/ip<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp;<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;gml:name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Nanjing<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/gml:name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp;<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;countryName<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>CHINA<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/countryName<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp;<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;countryAbbrev<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>CN<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/countryAbbrev<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp;<span style="color: #808080; font-style: italic;">&lt;!-- Co-ordinates are available as lng,lat --&gt;</span><br />
&nbsp; &nbsp;<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;ipLocation<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;gml:pointProperty<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; &nbsp;<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;gml:Point</span> <span style="color: #000066;">srsName</span>=<span style="color: #ff0000;">&quot;http://www.opengis.net/gml/srs/epsg.xml#4326&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;gml:coordinates<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>118.883,32.05<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/gml:coordinates<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; &nbsp;<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/gml:Point<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/gml:pointProperty<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp;<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/ipLocation<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/hostip<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp;<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/gml:featureMember<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/hostipLookupResultSet<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></div>
<p>Because it uses ip to lookup your address, you cannot expect higher resolution and precision currently.</p>
]]></content:encoded>
			<wfw:commentRss>http://sunng.info/blog/2010/02/get-your-conky-location-aware/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<georss:point>32.032377 118.793506</georss:point>	</item>
		<item>
		<title>Using weather</title>
		<link>http://sunng.info/blog/2010/02/using-weather/</link>
		<comments>http://sunng.info/blog/2010/02/using-weather/#comments</comments>
		<pubDate>Thu, 18 Feb 2010 13:43:23 +0000</pubDate>
		<dc:creator>Sunng</dc:creator>
				<category><![CDATA[装备]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[location]]></category>
		<category><![CDATA[util]]></category>

		<guid isPermaLink="false">http://sunng.info/blog/?p=491</guid>
		<description><![CDATA[Ubuntu仓库里有个weather-util包，可以用来查看天气信息。weather工具从weather.noaa.gov网站获得天气信息，对美国的城市可以直接用名字查询，其他国家只能使用id查询。id的规则和weather.com不太相同。 中国的天气站点id可以在这个页面上查到。比如南京ZSNJ，上海浦东ZSPD。使用weather工具查询： weather -i ZSNJ Current conditions at China (ZSNJ) 32-00N 118-48E 12M (ZSNJ) Last updated Feb 18, 2010 &#8211; 08:00 AM EST / 2010.02.18 1300 UTC Temperature: 35 F (2 C) Relative Humidity: 59% Wind: from the SSW (210 degrees) at 4 MPH (4 KT) 简化操作，可以在$HOME下创建.weatherrc文件，形如 &#91;default&#93; ID = ZSPD &#91;nj&#93; ID = ZSNJ [...]]]></description>
			<content:encoded><![CDATA[<p>Ubuntu仓库里有个weather-util包，可以用来查看天气信息。weather工具从weather.noaa.gov网站获得天气信息，对美国的城市可以直接用名字查询，其他国家只能使用id查询。id的规则和weather.com不太相同。</p>
<p>中国的天气站点id可以在<a href="http://weather.noaa.gov/weather/CN_cc.html">这个页面</a>上查到。比如南京ZSNJ，上海浦东ZSPD。使用weather工具查询：<br />
<em>weather -i ZSNJ</em></p>
<blockquote><p>Current conditions at China (ZSNJ) 32-00N 118-48E 12M (ZSNJ)<br />
Last updated Feb 18, 2010 &#8211; 08:00 AM EST / 2010.02.18 1300 UTC<br />
   Temperature: 35 F (2 C)<br />
   Relative Humidity: 59%<br />
   Wind: from the SSW (210 degrees) at 4 MPH (4 KT)</p></blockquote>
<p>简化操作，可以在$HOME下创建.weatherrc文件，形如</p>
<div class="codecolorer-container ini default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="ini codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000066; font-weight:bold;"><span style="">&#91;</span>default<span style="">&#93;</span></span><br />
<span style="color: #000099;">ID</span> <span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;"> ZSPD</span><br />
<span style="color: #000066; font-weight:bold;"><span style="">&#91;</span>nj<span style="">&#93;</span></span><br />
<span style="color: #000099;">ID</span> <span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;"> ZSNJ</span></div></div>
<p>就可以直接使用<br />
<em>weather</em></p>
<blockquote><p>
Current conditions at China (ZSPD) 31-07N 121-46E (ZSPD)<br />
Last updated Feb 18, 2010 &#8211; 08:00 AM EST / 2010.02.18 1300 UTC<br />
   Temperature: 35 F (2 C)<br />
   Relative Humidity: 47%<br />
   Wind: from the NE (050 degrees) at 7 MPH (6 KT) (direction variable)
</p></blockquote>
<p>和<br />
<em>weather nj</em></p>
<blockquote><p>Current conditions at China (ZSNJ) 32-00N 118-48E 12M (ZSNJ)<br />
Last updated Feb 18, 2010 &#8211; 08:00 AM EST / 2010.02.18 1300 UTC<br />
   Temperature: 35 F (2 C)<br />
   Relative Humidity: 59%<br />
   Wind: from the SSW (210 degrees) at 4 MPH (4 KT)</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://sunng.info/blog/2010/02/using-weather/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<georss:point>32.032377 118.793506</georss:point>	</item>
		<item>
		<title>Location Support on Empathy</title>
		<link>http://sunng.info/blog/2009/03/location-support-on-empathy/</link>
		<comments>http://sunng.info/blog/2009/03/location-support-on-empathy/#comments</comments>
		<pubDate>Sun, 01 Mar 2009 06:41:18 +0000</pubDate>
		<dc:creator>Sunng</dc:creator>
				<category><![CDATA[装备]]></category>
		<category><![CDATA[foss]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[location]]></category>

		<guid isPermaLink="false">http://www.classicning.com/blog/?p=23</guid>
		<description><![CDATA[好久不写了 &#124;&#124; 昨天看到了这么一篇介绍Gnome桌面上对地理位置的支持的文章（汗这句子）。地址在这里。 我印象中最早的就是Gnome 2.24开始那个日期applet增加的一个地图，可以选择和设置当前的location，于是有了比较好的时区支持和天气服务。文章里还提到居然Tracker搜索也支持这么一个地理元信息，可以搜出在某个地方（是说地球上的某个地方）编辑的文件。这个很强。 然后就是Empathy对location的支持了。这个看起来很强大，截图和介绍可以看这里看这里看这里。Empathy可以用来发布你evolution的联系人地址。话说，很容易就想起来了，XMPP协议有一个地理位置的扩展。不过文中说几乎除了GoogleTalk其他都支持地理位置扩展。好家伙，这个又只能遥远地YY了。 文中提到的提供LBS的库叫做Geoclue，而在Gnome上显示地图是一个叫做libchamplain的widget。而地图，当然毫无疑问是OSM了。有兴趣的朋友可以去关注。 没了，静静等待这个Empathy变得越来越强大吧。]]></description>
			<content:encoded><![CDATA[<p>好久不写了 ||</p>
<p>昨天看到了这么一篇介绍Gnome桌面上对地理位置的支持的文章（汗这句子）。地址在<a href="http://bergie.iki.fi/blog/making_the_gnome_desktop_location-aware/" target="_blank">这里</a>。</p>
<p>我印象中最早的就是Gnome 2.24开始那个日期applet增加的一个地图，可以选择和设置当前的location，于是有了比较好的时区支持和天气服务。文章里还提到居然Tracker搜索也支持这么一个地理元信息，可以搜出在某个地方（是说地球上的某个地方）编辑的文件。这个很强。</p>
<p>然后就是Empathy对location的支持了。这个看起来很强大，截图和介绍可以看这里看这里看<a href="http://blog.pierlux.com/2009/01/22/empathy-where-are-you/en/" target="_blank">这里</a>。Empathy可以用来发布你evolution的联系人地址。话说，很容易就想起来了，XMPP协议有一个地理位置的扩展。不过文中说几乎除了GoogleTalk其他都支持地理位置扩展。好家伙，这个又只能遥远地YY了。</p>
<p>文中提到的提供LBS的库叫做Geoclue，而在Gnome上显示地图是一个叫做libchamplain的widget。而地图，当然毫无疑问是OSM了。有兴趣的朋友可以去关注。</p>
<p>没了，静静等待这个Empathy变得越来越强大吧。</p>
]]></content:encoded>
			<wfw:commentRss>http://sunng.info/blog/2009/03/location-support-on-empathy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
