Skip to content
Permalink
Browse files

Update

  • Loading branch information...
Mariosmsk committed Jun 7, 2018
1 parent 4c94875 commit 08c2ddc5b179c78419b8f835d0c1586c6dd2cab5
Showing with 7,342 additions and 16,232 deletions.
  1. +7,320 −0 Countries.txt
  2. +7 −25 QWeather.geojson
  3. +12 −10 QWeather.py
  4. 0 database/World.txt → World Capitals.txt
  5. +0 −33 database/Afghanistan.txt
  6. +0 −1 database/Aland.txt
  7. +0 −26 database/Albania.txt
  8. +0 −51 database/Algeria.txt
  9. +0 −1 database/American Samoa.txt
  10. +0 −1 database/Andorra.txt
  11. +0 −49 database/Angola.txt
  12. +0 −39 database/Antarctica.txt
  13. +0 −1 database/Antigua and Barbuda.txt
  14. +0 −158 database/Argentina.txt
  15. +0 −8 database/Armenia.txt
  16. +0 −1 database/Aruba.txt
  17. +0 −224 database/Australia.txt
  18. +0 −10 database/Austria.txt
  19. +0 −17 database/Azerbaijan.txt
  20. +0 −1 database/Bahrain.txt
  21. +0 −16 database/Bangladesh.txt
  22. +0 −1 database/Barbados.txt
  23. +0 −15 database/Belarus.txt
  24. +0 −10 database/Belgium.txt
  25. +0 −7 database/Belize.txt
  26. +0 −9 database/Benin.txt
  27. +0 −1 database/Bermuda.txt
  28. +0 −4 database/Bhutan.txt
  29. +0 −69 database/Bolivia.txt
  30. +0 −6 database/Bosnia and Herzegovina.txt
  31. +0 −20 database/Botswana.txt
  32. +0 −392 database/Brazil.txt
  33. +0 −1 database/Brunei.txt
  34. +0 −18 database/Bulgaria.txt
  35. +0 −32 database/Burkina Faso.txt
  36. +0 −14 database/Burundi.txt
  37. +0 −19 database/Cambodia.txt
  38. +0 −31 database/Cameroon.txt
  39. +0 −255 database/Canada.txt
  40. +0 −2 database/Cape Verde.txt
  41. +0 −1 database/Cayman Islands.txt
  42. +0 −21 database/Central African Republic.txt
  43. +0 −19 database/Chad.txt
  44. +0 −84 database/Chile.txt
  45. +0 −400 database/China.txt
  46. +0 −72 database/Colombia.txt
  47. +0 −1 database/Comoros.txt
  48. +0 −17 database/Congo (Brazzaville).txt
  49. +0 −88 database/Congo (Kinshasa).txt
  50. +0 −1 database/Cook Islands.txt
  51. +0 −13 database/Costa Rica.txt
  52. +0 −10 database/Croatia.txt
  53. +0 −26 database/Cuba.txt
  54. +0 −1 database/Curacao.txt
  55. +0 −6 database/Cyprus.txt
  56. +0 −12 database/Czech Republic.txt
  57. +0 −12 database/Denmark.txt
  58. +0 −5 database/Djibouti.txt
  59. +0 −1 database/Dominica.txt
  60. +0 −31 database/Dominican Republic.txt
  61. +0 −1 database/East Timor.txt
  62. +0 −37 database/Ecuador.txt
  63. +0 −42 database/Egypt.txt
  64. +0 −14 database/El Salvador.txt
  65. +0 −6 database/Equatorial Guinea.txt
  66. +0 −7 database/Eritrea.txt
  67. +0 −7 database/Estonia.txt
  68. +0 −34 database/Ethiopia.txt
  69. +0 −2 database/Falkland Islands.txt
  70. +0 −2 database/Faroe Islands.txt
  71. +0 −1 database/Federated States of Micronesia.txt
  72. +0 −4 database/Fiji.txt
  73. +0 −21 database/Finland.txt
  74. +0 −71 database/France.txt
  75. +0 −1 database/French Polynesia.txt
  76. +0 −20 database/Gabon.txt
  77. +0 −7 database/Georgia.txt
  78. +0 −57 database/Germany.txt
  79. +0 −17 database/Ghana.txt
  80. +0 −1 database/Gibraltar.txt
  81. +0 −30 database/Greece.txt
  82. +0 −22 database/Greenland.txt
  83. +0 −1 database/Grenada.txt
  84. +0 −1 database/Guam.txt
  85. +0 −26 database/Guatemala.txt
  86. +0 −8 database/Guinea Bissau.txt
  87. +0 −29 database/Guinea.txt
  88. +0 −10 database/Guyana.txt
  89. +0 −9 database/Haiti.txt
  90. +0 −19 database/Honduras.txt
  91. +0 −1 database/Hong Kong S.A.R..txt
  92. +0 −20 database/Hungary.txt
  93. +0 −9 database/Iceland.txt
  94. +0 −212 database/India.txt
  95. +0 −105 database/Indonesia.txt
  96. +0 −63 database/Iran.txt
  97. +0 −27 database/Iraq.txt
  98. +0 −15 database/Ireland.txt
  99. +0 −1 database/Isle of Man.txt
  100. +0 −6 database/Israel.txt
  101. +0 −56 database/Italy.txt
  102. +0 −25 database/Ivory Coast.txt
  103. +0 −14 database/Jamaica.txt
  104. +0 −69 database/Japan.txt
  105. +0 −9 database/Jordan.txt
  106. +0 −96 database/Kazakhstan.txt
  107. +0 −36 database/Kenya.txt
  108. +0 −1 database/Kiribati.txt
  109. +0 −3 database/Kosovo.txt
  110. +0 −4 database/Kuwait.txt
  111. +0 −14 database/Kyrgyzstan.txt
  112. +0 −14 database/Laos.txt
  113. +0 −6 database/Latvia.txt
  114. +0 −6 database/Lebanon.txt
  115. +0 −8 database/Lesotho.txt
  116. +0 −13 database/Liberia.txt
  117. +0 −35 database/Libya.txt
  118. +0 −1 database/Liechtenstein.txt
  119. +0 −5 database/Lithuania.txt
  120. +0 −3 database/Luxembourg.txt
  121. +0 −1 database/Macau S.A.R.txt
  122. +0 −3 database/Macedonia.txt
  123. +0 −28 database/Madagascar.txt
  124. +0 −20 database/Malawi.txt
  125. +0 −32 database/Malaysia.txt
  126. +0 −1 database/Maldives.txt
  127. +0 −30 database/Mali.txt
  128. +0 −1 database/Malta.txt
  129. +0 −1 database/Marshall Islands.txt
  130. +0 −20 database/Mauritania.txt
  131. +0 −2 database/Mauritius.txt
  132. +0 −189 database/Mexico.txt
  133. +0 −5 database/Moldova.txt
  134. +0 −1 database/Monaco.txt
  135. +0 −24 database/Mongolia.txt
  136. +0 −1 database/Montenegro.txt
  137. +0 −26 database/Morocco.txt
  138. +0 −34 database/Mozambique.txt
  139. +0 −37 database/Myanmar.txt
  140. +0 −27 database/Namibia.txt
  141. +0 −17 database/Nepal.txt
  142. +0 −14 database/Netherlands.txt
  143. +0 −1 database/New Caledonia.txt
  144. +0 −33 database/New Zealand.txt
  145. +0 −19 database/Nicaragua.txt
  146. +0 −16 database/Niger.txt
  147. +0 −68 database/Nigeria.txt
  148. +0 −28 database/North Korea.txt
  149. +0 −1 database/Northern Mariana Islands.txt
  150. +0 −34 database/Norway.txt
  151. +0 −10 database/Oman.txt
  152. +0 −41 database/Pakistan.txt
  153. +0 −2 database/Palau.txt
  154. +0 −4 database/Palestine.txt
  155. +0 −14 database/Panama.txt
  156. +0 −23 database/Papua New Guinea.txt
  157. +0 −37 database/Paraguay.txt
  158. +0 −90 database/Peru.txt
  159. +0 −38 database/Philippines.txt
  160. +0 −24 database/Poland.txt
  161. +0 −24 database/Portugal.txt
  162. +0 −4 database/Puerto Rico.txt
  163. +0 −1 database/Qatar.txt
  164. +0 −41 database/Romania.txt
  165. +0 −579 database/Russia.txt
  166. +0 −11 database/Rwanda.txt
  167. +0 −1 database/Saint Kitts and Nevis.txt
  168. +0 −1 database/Saint Lucia.txt
  169. +0 −1 database/Saint Vincent and the Grenadines.txt
  170. +0 −1 database/Samoa.txt
  171. +0 −1 database/San Marino.txt
  172. +0 −2 database/Sao Tome and Principe.txt
  173. +0 −31 database/Saudi Arabia.txt
  174. +0 −11 database/Senegal.txt
  175. +0 −7 database/Serbia.txt
  176. +0 −1 database/Seychelles.txt
  177. +0 −5 database/Sierra Leone.txt
  178. +0 −1 database/Singapore.txt
  179. +0 −7 database/Slovakia.txt
  180. +0 −2 database/Slovenia.txt
  181. +0 −3 database/Solomon Islands.txt
  182. +0 −25 database/Somalia.txt
  183. +0 −7 database/Somaliland.txt
  184. +0 −72 database/South Africa.txt
  185. +0 −1 database/South Georgia and the Islands.txt
  186. +0 −28 database/South Korea.txt
  187. +0 −15 database/South Sudan.txt
  188. +0 −49 database/Spain.txt
  189. +0 −14 database/Sri Lanka.txt
  190. +0 −30 database/Sudan.txt
  191. +0 −10 database/Suriname.txt
  192. +0 −1 database/Svalbard and Jan Mayen Islands.txt
  193. +0 −7 database/Swaziland.txt
  194. +0 −34 database/Sweden.txt
  195. +0 −28 database/Switzerland.txt
  196. +0 −21 database/Syria.txt
  197. +0 −25 database/Taiwan.txt
  198. +0 −9 database/Tajikistan.txt
  199. +0 −59 database/Tanzania.txt
  200. +0 −79 database/Thailand.txt
  201. +0 −2 database/The Bahamas.txt
  202. +0 −7 database/The Gambia.txt
  203. +0 −7 database/Togo.txt
  204. +0 −2 database/Tonga.txt
  205. +0 −2 database/Trinidad and Tobago.txt
  206. +0 −26 database/Tunisia.txt
  207. +0 −84 database/Turkey.txt
  208. +0 −13 database/Turkmenistan.txt
  209. +0 −1 database/Turks and Caicos Islands.txt
  210. +0 −1 database/Tuvalu.txt
  211. +0 −43 database/Uganda.txt
  212. +0 −55 database/Ukraine.txt
  213. +0 −8 database/United Arab Emirates.txt
  214. +0 −57 database/United Kingdom.txt
  215. +0 −1 database/United States Virgin Islands.txt
  216. +0 −768 database/United States of America.txt
  217. +0 −32 database/Uruguay.txt
  218. +0 −29 database/Uzbekistan.txt
  219. +0 −2 database/Vanuatu.txt
  220. +0 −1 database/Vatican (Holy Sea).txt
  221. +0 −50 database/Venezuela.txt
  222. +0 −60 database/Vietnam.txt
  223. +0 −1 database/Western Sahara.txt
  224. +0 −20 database/Yemen.txt
  225. +0 −34 database/Zambia.txt
  226. +0 −20 database/Zimbabwe.txt
  227. +3 −8,654 resources.py
  228. +0 −223 resources.qrc

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -1,35 +1,17 @@
{ "type": "FeatureCollection", "crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } },
"features": [{ "type": "Feature", "properties": { "City": "Kasama", "Temp": "22", "Direction": "113 degrees", "Speed": "17.70 km/h", "Humidity": "36 %", "Pressure": "29563.18 hPa", "Visibility": "25.91 km", "Sunrise": "6:8 am", "Sunset": "5:41 pm", "Unit": "C", "Icon": "http://l.yimg.com/a/i/us/we/52/32.gif", "Country": "Zambia", "Region": " Northern", "Lon": "31.18252", "Date": "Thu, 07 Jun 2018 01:00 PM CAT", "Lat": "-10.20839",}, "geometry": { "type": "Point", "coordinates": [31.18252,-10.20839]}
"features": [{ "type": "Feature", "properties": { "City": "Subotica", "Temp": "26", "Direction": "0 degrees", "Speed": "11.27 km/h", "Humidity": "53 %", "Pressure": "33965.49 hPa", "Visibility": "25.91 km", "Sunrise": "4:51 am", "Sunset": "8:30 pm", "Unit": "C", "Icon": "http://l.yimg.com/a/i/us/we/52/28.gif", "Country": "Serbia", "Region": " Severna Bachka", "Lon": "19.66609", "Date": "Thu, 07 Jun 2018 02:00 PM CEST", "Lat": "46.09795",}, "geometry": { "type": "Point", "coordinates": [19.66609,46.09795]}
},
{ "type": "Feature", "properties": { "City": "Chingola", "Temp": "20", "Direction": "113 degrees", "Speed": "17.70 km/h", "Humidity": "30 %", "Pressure": "29597.05 hPa", "Visibility": "25.91 km", "Sunrise": "6:25 am", "Sunset": "5:50 pm", "Unit": "C", "Icon": "http://l.yimg.com/a/i/us/we/52/32.gif", "Country": "Zambia", "Region": " Copperbelt", "Lon": "27.85766", "Date": "Thu, 07 Jun 2018 01:00 PM CAT", "Lat": "-12.54323",}, "geometry": { "type": "Point", "coordinates": [27.85766,-12.54323]}
{ "type": "Feature", "properties": { "City": "Kragujevac", "Temp": "28", "Direction": "125 degrees", "Speed": "11.27 km/h", "Humidity": "47 %", "Pressure": "33186.62 hPa", "Visibility": "25.91 km", "Sunrise": "4:54 am", "Sunset": "8:17 pm", "Unit": "C", "Icon": "http://l.yimg.com/a/i/us/we/52/34.gif", "Country": "Serbia", "Region": " Shumadija", "Lon": "20.91667", "Date": "Thu, 07 Jun 2018 01:00 PM CEST", "Lat": "44.01667",}, "geometry": { "type": "Point", "coordinates": [20.91667,44.01667]}
},
{ "type": "Feature", "properties": { "City": "Chipata", "Temp": "20", "Direction": "135 degrees", "Speed": "11.27 km/h", "Humidity": "35 %", "Pressure": "30308.19 hPa", "Visibility": "25.91 km", "Sunrise": "6:8 am", "Sunset": "5:29 pm", "Unit": "C", "Icon": "http://l.yimg.com/a/i/us/we/52/32.gif", "Country": "Zambia", "Region": " Eastern", "Lon": "32.623051", "Date": "Thu, 07 Jun 2018 01:00 PM CAT", "Lat": "-13.61857",}, "geometry": { "type": "Point", "coordinates": [32.623051,-13.61857]}
{ "type": "Feature", "properties": { "City": "Petrovgrad", "Temp": "28", "Direction": "180 degrees", "Speed": "11.27 km/h", "Humidity": "49 %", "Pressure": "34100.95 hPa", "Visibility": "25.91 km", "Sunrise": "4:51 am", "Sunset": "8:24 pm", "Unit": "C", "Icon": "http://l.yimg.com/a/i/us/we/52/34.gif", "Country": "Serbia", "Region": " Srednji Banat", "Lon": "20.3934", "Date": "Thu, 07 Jun 2018 01:00 PM CEST", "Lat": "45.3801",}, "geometry": { "type": "Point", "coordinates": [20.3934,45.3801]}
},
{ "type": "Feature", "properties": { "City": "Solwezi", "Temp": "21", "Direction": "113 degrees", "Speed": "17.70 km/h", "Humidity": "25 %", "Pressure": "29427.73 hPa", "Visibility": "25.91 km", "Sunrise": "6:30 am", "Sunset": "5:56 pm", "Unit": "C", "Icon": "http://l.yimg.com/a/i/us/we/52/32.gif", "Country": "Zambia", "Region": " North-Western", "Lon": "26.4006", "Date": "Thu, 07 Jun 2018 01:00 PM CAT", "Lat": "-12.18041",}, "geometry": { "type": "Point", "coordinates": [26.4006,-12.18041]}
{ "type": "Feature", "properties": { "City": "Ipek", "Temp": "22", "Direction": "80 degrees", "Speed": "17.70 km/h", "Humidity": "55 %", "Pressure": "30612.97 hPa", "Visibility": "25.91 km", "Sunrise": "5:1 am", "Sunset": "8:15 pm", "Unit": "C", "Icon": "http://l.yimg.com/a/i/us/we/52/26.gif", "Country": "Serbia", "Region": " Pech", "Lon": "20.297239", "Date": "Thu, 07 Jun 2018 01:00 PM CEST", "Lat": "42.653271",}, "geometry": { "type": "Point", "coordinates": [20.297239,42.653271]}
},
{ "type": "Feature", "properties": { "City": "Choma", "Temp": "17", "Direction": "113 degrees", "Speed": "17.70 km/h", "Humidity": "45 %", "Pressure": "29834.10 hPa", "Visibility": "25.91 km", "Sunrise": "6:36 am", "Sunset": "5:46 pm", "Unit": "C", "Icon": "http://l.yimg.com/a/i/us/we/52/32.gif", "Country": "Zambia", "Region": " Southern", "Lon": "26.97644", "Date": "Thu, 07 Jun 2018 01:00 PM CAT", "Lat": "-16.816521",}, "geometry": { "type": "Point", "coordinates": [26.97644,-16.816521]}
{ "type": "Feature", "properties": { "City": "Nis", "Temp": "30", "Direction": "55 degrees", "Speed": "11.27 km/h", "Humidity": "44 %", "Pressure": "33186.62 hPa", "Visibility": "25.91 km", "Sunrise": "4:52 am", "Sunset": "8:11 pm", "Unit": "C", "Icon": "http://l.yimg.com/a/i/us/we/52/30.gif", "Country": "Serbia", "Region": " Nishava", "Lon": "21.8957", "Date": "Thu, 07 Jun 2018 02:00 PM CEST", "Lat": "43.3209",}, "geometry": { "type": "Point", "coordinates": [21.8957,43.3209]}
},
{ "type": "Feature", "properties": { "City": "Mongu", "Temp": "21", "Direction": "90 degrees", "Speed": "17.70 km/h", "Humidity": "30 %", "Pressure": "30646.83 hPa", "Visibility": "25.91 km", "Sunrise": "6:49 am", "Sunset": "6:4 pm", "Unit": "C", "Icon": "http://l.yimg.com/a/i/us/we/52/32.gif", "Country": "Zambia", "Region": " Western", "Lon": "23.131861", "Date": "Thu, 07 Jun 2018 01:00 PM CAT", "Lat": "-15.27748",}, "geometry": { "type": "Point", "coordinates": [23.131861,-15.27748]}
{ "type": "Feature", "properties": { "City": "Novi Sad", "Temp": "27", "Direction": "70 degrees", "Speed": "6.44 km/h", "Humidity": "58 %", "Pressure": "33863.90 hPa", "Visibility": "25.91 km", "Sunrise": "4:53 am", "Sunset": "8:26 pm", "Unit": "C", "Icon": "http://l.yimg.com/a/i/us/we/52/30.gif", "Country": "Serbia", "Region": " Juzhna Bachka", "Lon": "19.841471", "Date": "Thu, 07 Jun 2018 01:00 PM CEST", "Lat": "45.25605",}, "geometry": { "type": "Point", "coordinates": [19.841471,45.25605]}
},
{ "type": "Feature", "properties": { "City": "Senanga", "Temp": "22", "Direction": "90 degrees", "Speed": "17.70 km/h", "Humidity": "30 %", "Pressure": "30748.42 hPa", "Visibility": "25.91 km", "Sunrise": "6:50 am", "Sunset": "6:2 pm", "Unit": "C", "Icon": "http://l.yimg.com/a/i/us/we/52/32.gif", "Country": "Zambia", "Region": " Western", "Lon": "23.2852", "Date": "Thu, 07 Jun 2018 01:00 PM CAT", "Lat": "-16.12767",}, "geometry": { "type": "Point", "coordinates": [23.2852,-16.12767]}
},
{ "type": "Feature", "properties": { "City": "Mpika", "Temp": "18", "Direction": "113 degrees", "Speed": "22.53 km/h", "Humidity": "38 %", "Pressure": "29292.27 hPa", "Visibility": "25.91 km", "Sunrise": "6:10 am", "Sunset": "5:37 pm", "Unit": "C", "Icon": "http://l.yimg.com/a/i/us/we/52/32.gif", "Country": "Zambia", "Region": " Northern", "Lon": "31.460951", "Date": "Thu, 07 Jun 2018 01:00 PM CAT", "Lat": "-11.83662",}, "geometry": { "type": "Point", "coordinates": [31.460951,-11.83662]}
},
{ "type": "Feature", "properties": { "City": "Luanshya", "Temp": "20", "Direction": "113 degrees", "Speed": "17.70 km/h", "Humidity": "30 %", "Pressure": "29800.23 hPa", "Visibility": "25.91 km", "Sunrise": "6:23 am", "Sunset": "5:46 pm", "Unit": "C", "Icon": "http://l.yimg.com/a/i/us/we/52/32.gif", "Country": "Zambia", "Region": " Copperbelt", "Lon": "28.381769", "Date": "Thu, 07 Jun 2018 01:00 PM CAT", "Lat": "-13.12699",}, "geometry": { "type": "Point", "coordinates": [28.381769,-13.12699]}
},
{ "type": "Feature", "properties": { "City": "Ndola", "Temp": "20", "Direction": "113 degrees", "Speed": "17.70 km/h", "Humidity": "30 %", "Pressure": "29800.23 hPa", "Visibility": "25.91 km", "Sunrise": "6:23 am", "Sunset": "5:46 pm", "Unit": "C", "Icon": "http://l.yimg.com/a/i/us/we/52/32.gif", "Country": "Zambia", "Region": " Copperbelt", "Lon": "28.640329", "Date": "Thu, 07 Jun 2018 01:00 PM CAT", "Lat": "-12.97334",}, "geometry": { "type": "Point", "coordinates": [28.640329,-12.97334]}
},
{ "type": "Feature", "properties": { "City": "Kafue", "Temp": "20", "Direction": "90 degrees", "Speed": "17.70 km/h", "Humidity": "40 %", "Pressure": "30646.83 hPa", "Visibility": "25.91 km", "Sunrise": "6:30 am", "Sunset": "5:43 pm", "Unit": "C", "Icon": "http://l.yimg.com/a/i/us/we/52/32.gif", "Country": "Zambia", "Region": " Lusaka", "Lon": "28.181499", "Date": "Thu, 07 Jun 2018 01:00 PM CAT", "Lat": "-15.77758",}, "geometry": { "type": "Point", "coordinates": [28.181499,-15.77758]}
},
{ "type": "Feature", "properties": { "City": "Kabwe", "Temp": "19", "Direction": "113 degrees", "Speed": "22.53 km/h", "Humidity": "38 %", "Pressure": "30172.73 hPa", "Visibility": "25.91 km", "Sunrise": "6:26 am", "Sunset": "5:44 pm", "Unit": "C", "Icon": "http://l.yimg.com/a/i/us/we/52/32.gif", "Country": "Zambia", "Region": " Central", "Lon": "28.446529", "Date": "Thu, 07 Jun 2018 01:00 PM CAT", "Lat": "-14.44717",}, "geometry": { "type": "Point", "coordinates": [28.446529,-14.44717]}
},
{ "type": "Feature", "properties": { "City": "Mufulira", "Temp": "21", "Direction": "113 degrees", "Speed": "17.70 km/h", "Humidity": "30 %", "Pressure": "29969.55 hPa", "Visibility": "25.91 km", "Sunrise": "6:24 am", "Sunset": "5:48 pm", "Unit": "C", "Icon": "http://l.yimg.com/a/i/us/we/52/32.gif", "Country": "Zambia", "Region": " Copperbelt", "Lon": "28.26041", "Date": "Thu, 07 Jun 2018 01:00 PM CAT", "Lat": "-12.55457",}, "geometry": { "type": "Point", "coordinates": [28.26041,-12.55457]}
},
{ "type": "Feature", "properties": { "City": "Kitwe", "Temp": "21", "Direction": "113 degrees", "Speed": "17.70 km/h", "Humidity": "30 %", "Pressure": "29969.55 hPa", "Visibility": "25.91 km", "Sunrise": "6:24 am", "Sunset": "5:48 pm", "Unit": "C", "Icon": "http://l.yimg.com/a/i/us/we/52/32.gif", "Country": "Zambia", "Region": " Copperbelt", "Lon": "28.21314", "Date": "Thu, 07 Jun 2018 01:00 PM CAT", "Lat": "-12.80383",}, "geometry": { "type": "Point", "coordinates": [28.21314,-12.80383]}
},
{ "type": "Feature", "properties": { "City": "Livingstone", "Temp": "19", "Direction": "113 degrees", "Speed": "17.70 km/h", "Humidity": "35 %", "Pressure": "31053.20 hPa", "Visibility": "25.91 km", "Sunrise": "6:43 am", "Sunset": "5:48 pm", "Unit": "C", "Icon": "http://l.yimg.com/a/i/us/we/52/32.gif", "Country": "Zambia", "Region": " Southern", "Lon": "25.85844", "Date": "Thu, 07 Jun 2018 01:00 PM CAT", "Lat": "-17.85771",}, "geometry": { "type": "Point", "coordinates": [25.85844,-17.85771]}
},
{ "type": "Feature", "properties": { "City": "Lusaka", "Temp": "18", "Direction": "90 degrees", "Speed": "17.70 km/h", "Humidity": "36 %", "Pressure": "29935.69 hPa", "Visibility": "25.91 km", "Sunrise": "6:29 am", "Sunset": "5:43 pm", "Unit": "C", "Icon": "http://l.yimg.com/a/i/us/we/52/32.gif", "Country": "Zambia", "Region": " Lusaka", "Lon": "28.2824", "Date": "Thu, 07 Jun 2018 01:00 PM CAT", "Lat": "-15.40884",}, "geometry": { "type": "Point", "coordinates": [28.2824,-15.40884]}
{ "type": "Feature", "properties": { "City": "Belgrade", "Temp": "27", "Direction": "105 degrees", "Speed": "11.27 km/h", "Humidity": "55 %", "Pressure": "33931.63 hPa", "Visibility": "25.91 km", "Sunrise": "4:53 am", "Sunset": "8:22 pm", "Unit": "C", "Icon": "http://l.yimg.com/a/i/us/we/52/34.gif", "Country": "Serbia", "Region": " Beograd", "Lon": "20.46414", "Date": "Thu, 07 Jun 2018 01:00 PM CEST", "Lat": "44.811871",}, "geometry": { "type": "Point", "coordinates": [20.46414,44.811871]}
},

]
@@ -229,7 +229,7 @@ def run(self):
self.dlg.closebutton.setEnabled(True)
self.dlg.toolButtonImport.setEnabled(True)
if self.csvFile==None:
self.csvFile = self.plugin_dir + '/database/World.txt'
self.csvFile = self.plugin_dir + '/World Capitals.txt'
self.dlg.imp.setText(self.csvFile)

self.dlg.progressBar.setValue(0)
@@ -238,11 +238,7 @@ def run(self):
self.customBox()

self.dlg.comboBox.clear()
db_list = ['World']
for root, dirnames, filenames in os.walk(self.plugin_dir+'\\database'):
for filename in filenames:
if filename.endswith(('.txt')):
db_list.append(os.path.basename(filename)[0:-4])
db_list = ['World Capitals','Afghanistan','Aland','Albania','Algeria','American Samoa','Andorra','Angola','Antarctica','Antigua and Barbuda','Argentina','Armenia','Aruba','Australia','Austria','Azerbaijan','Bahrain','Bangladesh','Barbados','Belarus','Belgium','Belize','Benin','Bermuda','Bhutan','Bolivia','Bosnia and Herzegovina','Botswana','Brazil','Brunei','Bulgaria','Burkina Faso','Burundi','Cambodia','Cameroon','Canada','Cape Verde','Cayman Islands','Central African Republic','Chad','Chile','China','Colombia','Comoros','Congo (Brazzaville)','Congo (Kinshasa)','Cook Islands','Costa Rica','Croatia','Cuba','Curacao','Cyprus','Czech Republic','Denmark','Djibouti','Dominica','Dominican Republic','East Timor','Ecuador','Egypt','El Salvador','Equatorial Guinea','Eritrea','Estonia','Ethiopia','Falkland Islands','Faroe Islands','Federated States of Micronesia','Fiji','Finland','France','French Polynesia','Gabon','Georgia','Germany','Ghana','Gibraltar','Greece','Greenland','Grenada','Guam','Guatemala','Guinea','Guinea Bissau','Guyana','Haiti','Honduras','Hong Kong S.A.R.','Hungary','Iceland','India','Indonesia','Iran','Iraq','Ireland','Isle of Man','Israel','Italy','Ivory Coast','Jamaica','Japan','Jordan','Kazakhstan','Kenya','Kiribati','Kosovo','Kuwait','Kyrgyzstan','Laos','Latvia','Lebanon','Lesotho','Liberia','Libya','Liechtenstein','Lithuania','Luxembourg','Macau S.A.R','Macedonia','Madagascar','Malawi','Malaysia','Maldives','Mali','Malta','Marshall Islands','Mauritania','Mauritius','Mexico','Moldova','Monaco','Mongolia','Montenegro','Morocco','Mozambique','Myanmar','Namibia','Nepal','Netherlands','New Caledonia','New Zealand','Nicaragua','Niger','Nigeria','North Korea','Northern Mariana Islands','Norway','Oman','Pakistan','Palau','Palestine','Panama','Papua New Guinea','Paraguay','Peru','Philippines','Poland','Portugal','Puerto Rico','Qatar','Romania','Russia','Rwanda','Saint Kitts and Nevis','Saint Lucia','Saint Vincent and the Grenadines','Samoa','San Marino','Sao Tome and Principe','Saudi Arabia','Senegal','Serbia','Seychelles','Sierra Leone','Singapore','Slovakia','Slovenia','Solomon Islands','Somalia','Somaliland','South Africa','South Georgia and the Islands','South Korea','South Sudan','Spain','Sri Lanka','Sudan','Suriname','Svalbard and Jan Mayen Islands','Swaziland','Sweden','Switzerland','Syria','Taiwan','Tajikistan','Tanzania','Thailand','The Bahamas','The Gambia','Togo','Tonga','Trinidad and Tobago','Tunisia','Turkey','Turkmenistan','Turks and Caicos Islands','Tuvalu','Uganda','Ukraine','United Arab Emirates','United Kingdom','United States Virgin Islands','United States of America','Uruguay','Uzbekistan','Vanuatu','Vatican (Holy Sea)','Venezuela','Vietnam','Western Sahara','Yemen','Zambia','Zimbabwe']

self.dlg.comboBox.addItems(db_list)
self.dlg.show()
@@ -279,8 +275,17 @@ def ok(self):
else:
self.reload = False

self.all_cities = []
if not self.dlg.checkBox.isChecked():
self.csvFile = self.plugin_dir + '\\database\\'+str(self.dlg.comboBox.currentText())+'.txt'
f_all = open(self.plugin_dir + '\\Countries.txt', 'r')
for line in f_all:
if (line.rstrip('\n').split()[-1]) == self.dlg.comboBox.currentText():
self.all_cities.append(line.rstrip('\n'))
print(self.all_cities)
else:
f = open(self.csvFile, 'r')
self.all_cities = [line.rstrip('\n').upper() for line in f]
f.close()

self.outQWeatherGeoJson = self.plugin_dir + '\\QWeather.geojson'
basename = os.path.basename(self.outQWeatherGeoJson)
@@ -301,9 +306,6 @@ def ok(self):
if self.iface.actionMapTips().isChecked() == False:
self.iface.actionMapTips().trigger()

f = open(self.csvFile, 'r')
self.all_cities = [line.rstrip('\n').upper() for line in f]
f.close()

f_QWeather = False
if len(self.all_cities)> 400:
File renamed without changes.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 08c2ddc

Please sign in to comment.
You can’t perform that action at this time.