Re: [MeeGo] [Announce] MeeCast for Harmattan
1 Attachment(s)
Quote:
Originally Posted by vasvlad
(Post 1521433)
This is problem of weather.com
Server returns timezone +3 instead +3:30 for this city
Vlad.
|
Thanks for reply, But i wonder how is it? In webapp weather.com show correct time and even on xml data with wget [details on post #1248].
I post output and screenshot later and edit this post...
EDIT:
I log in to remote server with set UTC time without local IR time [only for test and sure that problem not related to my system]
Code:
sh-4.3$ date
Thu Jan 5 12:53:23 UTC 2017
, and run command:
Code:
wget -O test_shiraz.xml "h**p://wxdata.weather.com/wxdata/weather/local/IRXX0015?cm_ven=1CW&site=wx.com-bar&cm_ite=wx-cc&par=1CWFFv1.1.9&cm_pla=wx.com-bar&cm_cat=FFv1.1.9&unit=m&hbhf=12"
and output is:
Code:
weather ver="2.0">
<head>
<locale>en_US</locale>
<form>MEDIUM</form>
<ut>C</ut>
<ud>km</ud>
<us>km/h</us>
<up>mb</up>
<ur>mm</ur>
</head>
<loc id="IRXX0015">
<dnam>Shiraz, 14, Iran</dnam>
<tm>4:09 PM</tm>
<lat>29.63</lat>
<lon>52.57</lon>
<sunr>6:56 AM</sunr>
<suns>5:15 PM</suns>
<zone>3</zone>
</loc>
<hbhf>
<lsup>1/05/17 4:30 PM IRST</lsup>
<hour h="1" c="16">
<tmp>15</tmp>
<flik>14</flik>
<icon>34</icon>
<t>Mostly Sunny</t>
<bt>M Sunny</bt>
<ppcp>0</ppcp>
<wind>
<s>17</s>
<gust>N/A</gust>
<d>282</d>
<t>WNW</t>
</wind>
<dewp>-14</dewp>
<hmid>12</hmid>
</hour><hour h="2" c="17">
<tmp>13</tmp>
<flik>11</flik>
<icon>33</icon>
<t>Mostly Clear</t>
<bt>M Clear</bt>
<ppcp>0</ppcp>
<wind>
<s>16</s>
<gust>N/A</gust>
<d>288</d>
<t>WNW</t>
</wind>
<dewp>-12</dewp>
<hmid>15</hmid>
</hour><hour h="3" c="18">
<tmp>11</tmp>
<flik>10</flik>
<icon>33</icon>
<t>Mostly Clear</t>
<bt>M Clear</bt>
<ppcp>0</ppcp>
<wind>
<s>14</s>
<gust>N/A</gust>
<d>291</d>
<t>WNW</t>
</wind>
<dewp>-11</dewp>
<hmid>19</hmid>
</hour><hour h="4" c="19">
<tmp>10</tmp>
<flik>8</flik>
<icon>31</icon>
<t>Clear</t>
<bt>Clear</bt>
<ppcp>0</ppcp>
<wind>
<s>11</s>
<gust>N/A</gust>
<d>299</d>
<t>WNW</t>
</wind>
<dewp>-12</dewp>
<hmid>19</hmid>
</hour><hour h="5" c="20">
<tmp>7</tmp>
<flik>6</flik>
<icon>31</icon>
<t>Clear</t>
<bt>Clear</bt>
<ppcp>0</ppcp>
<wind>
<s>8</s>
<gust>N/A</gust>
<d>305</d>
<t>NW</t>
</wind>
<dewp>-10</dewp>
<hmid>25</hmid>
</hour><hour h="6" c="21">
<tmp>6</tmp>
<flik>5</flik>
<icon>31</icon>
<t>Clear</t>
<bt>Clear</bt>
<ppcp>0</ppcp>
<wind>
<s>8</s>
<gust>N/A</gust>
<d>300</d>
<t>WNW</t>
</wind>
<dewp>-11</dewp>
<hmid>25</hmid>
</hour><hour h="7" c="22">
<tmp>6</tmp>
<flik>5</flik>
<icon>31</icon>
<t>Clear</t>
<bt>Clear</bt>
<ppcp>0</ppcp>
<wind>
<s>6</s>
<gust>N/A</gust>
<d>307</d>
<t>NW</t>
</wind>
<dewp>-12</dewp>
<hmid>24</hmid>
</hour><hour h="8" c="23">
<tmp>5</tmp>
<flik>3</flik>
<icon>31</icon>
<t>Clear</t>
<bt>Clear</bt>
<ppcp>0</ppcp>
<wind>
<s>4</s>
<gust>N/A</gust>
<d>315</d>
<t>NW</t>
</wind>
<dewp>-13</dewp>
<hmid>25</hmid>
</hour><hour h="9" c="0">
<tmp>3</tmp>
<flik>3</flik>
<icon>31</icon>
<t>Clear</t>
<bt>Clear</bt>
<ppcp>0</ppcp>
<wind>
<s>3</s>
<gust>N/A</gust>
<d>318</d>
<t>NW</t>
</wind>
<dewp>-12</dewp>
<hmid>28</hmid>
</hour><hour h="10" c="1">
<tmp>2</tmp>
<flik>2</flik>
<icon>31</icon>
<t>Clear</t>
<bt>Clear</bt>
<ppcp>0</ppcp>
<wind>
<s>3</s>
<gust>N/A</gust>
<d>306</d>
<t>NW</t>
</wind>
<dewp>-13</dewp>
<hmid>29</hmid>
</hour><hour h="11" c="2">
<tmp>2</tmp>
<flik>2</flik>
<icon>31</icon>
<t>Clear</t>
<bt>Clear</bt>
<ppcp>0</ppcp>
<wind>
<s>3</s>
<gust>N/A</gust>
<d>315</d>
<t>NW</t>
</wind>
<dewp>-12</dewp>
<hmid>31</hmid>
</hour><hour h="12" c="3">
<tmp>2</tmp>
<flik>2</flik>
<icon>31</icon>
<t>Clear</t>
<bt>Clear</bt>
<ppcp>0</ppcp>
<wind>
<s>1</s>
<gust>N/A</gust>
<d>323</d>
<t>NW</t>
</wind>
<dewp>-12</dewp>
<hmid>31</hmid>
</hour>
</hbhf>
</weather>
or simplify command with less details:
Code:
wget -O test_shirax_simple.xml "h**p://wxdata.weather.com/wxdata/weather/local/IRXX0015"
Output is:
Code:
<weather ver="2.0">
<head>
<locale>en_US</locale>
<form>MEDIUM</form>
<ut>F</ut>
<ud>mi</ud>
<us>mph</us>
<up>in</up>
<ur>in</ur>
</head>
<loc id="IRXX0015">
<dnam>Shiraz, 14, Iran</dnam>
<tm>4:19 PM</tm>
<lat>29.63</lat>
<lon>52.57</lon>
<sunr>6:56 AM</sunr>
<suns>5:15 PM</suns>
<zone>3</zone>
</loc>
</weather>
and see that all of them show correct sunset and sunrise!
|