Jump to content

Web Service


mmacedo

Recommended Posts

Bem, fui ao site do instituto de meteorologia e vi que eles usam um Flash para mostrar a previsão do tempo, que são pedidos à URL: http://www.meteo.pt/extdatasource/prev_locais.jsp?dayPrev=0

Aqui fica um exemplo do resultado:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<report creating-authority="Instituto de Meteorologia" creating-user="IM" creation-time="2009-12-16T19:52:25">
<forecast dayPrev="2009-12-16" updateTime="2009-12-16T09:24:06">
	<land fullMapShow="0" lat="40.63529722" localID="1" lon="-8.65958333" name="Aveiro" periodID="2">
		<landWeather end-time="2009-12-16T23:59:59" start-time="2009-12-16T12:00:00">
			<temp>
				<tempMin>7</tempMin>
				<tempMax>13</tempMax>
			</temp>

			<currentWeather symbolID="11">
				<symbolDesc>Chuva forte</symbolDesc>
			</currentWeather>
			<wind windSymbolID="22">
				<windDirectionDescription>Sul</windDirectionDescription>
				<windDirectionResume>S</windDirectionResume>
				<windSpeed>Vento moderado</windSpeed>

			</wind>
		</landWeather>
	</land>
	<sea fullMapShow="0" lat="40.8" localID="1" lon="-8.9" name="Aveiro" periodID="2">
		<seaWeather end-time="2009-12-16T23:59:59" start-time="2009-12-16T12:00:00">
			<waterTemp>14</waterTemp>
			<waveHigh waveHighID="3">
				<waveHighDesc>3-4</waveHighDesc>

			</waveHigh>
			<waveDir waveDirID="8">
				<waveDirDesc>Sudoeste</waveDirDesc>
				<waveDirResume>SW</waveDirResume>
			</waveDir>
		</seaWeather>
	</sea>
	<land fullMapShow="1" lat="38.02493056" localID="2" lon="-7.867275" name="Beja" periodID="2">

		<landWeather end-time="2009-12-16T23:59:59" start-time="2009-12-16T12:00:00">
			<temp>
				<tempMin>3</tempMin>
				<tempMax>15</tempMax>
			</temp>
			<currentWeather symbolID="10">
				<symbolDesc>Chuva fraca</symbolDesc>

			</currentWeather>
			<wind windSymbolID="82">
				<windDirectionDescription>Sudoeste</windDirectionDescription>
				<windDirectionResume>SW</windDirectionResume>
				<windSpeed>Vento moderado</windSpeed>
			</wind>
		</landWeather>

	</land>
	<land fullMapShow="1" lat="41.80388889" localID="3" lon="-6.74283889" name="Bragança" periodID="2">
		<landWeather end-time="2009-12-16T23:59:59" start-time="2009-12-16T12:00:00">
			<temp>
				<tempMin>-3</tempMin>
				<tempMax>4</tempMax>
			</temp>
			<currentWeather symbolID="18">

				<symbolDesc>Neve</symbolDesc>
			</currentWeather>
			<wind windSymbolID="91">
				<windDirectionDescription>Variável</windDirectionDescription>
				<windDirectionResume>VV</windDirectionResume>
				<windSpeed>Vento fraco</windSpeed>
			</wind>

		</landWeather>
	</land>
	<uv fullMapShow="1" lat="41.8038888" localID="3" lon="-6.74283888" name="Bragança" periodID="2">
		<uvForecast end-time="2009-12-16T23:59:59" start-time="2009-12-16T12:00:00">
			<iUv>0.7</iUv>
			<iUvHora>13h-13h</iUvHora>
		</uvForecast>
	</uv>

	<land fullMapShow="1" lat="41.56678056" localID="4" lon="-8.45003056" name="Braga" periodID="2">
		<landWeather end-time="2009-12-16T23:59:59" start-time="2009-12-16T12:00:00">
			<temp>
				<tempMin>6</tempMin>
				<tempMax>8</tempMax>
			</temp>
			<currentWeather symbolID="11">
				<symbolDesc>Chuva forte</symbolDesc>

			</currentWeather>
			<wind windSymbolID="72">
				<windDirectionDescription>Sudeste</windDirectionDescription>
				<windDirectionResume>SE</windDirectionResume>
				<windSpeed>Vento moderado</windSpeed>
			</wind>
		</landWeather>

	</land>
	<land fullMapShow="1" lat="39.83339444" localID="5" lon="-7.46678889" name="Castelo Branco" periodID="2">
		<landWeather end-time="2009-12-16T23:59:59" start-time="2009-12-16T12:00:00">
			<temp>
				<tempMin>2</tempMin>
				<tempMax>10</tempMax>
			</temp>
			<currentWeather symbolID="9">

				<symbolDesc>Chuva moderada</symbolDesc>
			</currentWeather>
			<wind windSymbolID="21">
				<windDirectionDescription>Sul</windDirectionDescription>
				<windDirectionResume>S</windDirectionResume>
				<windSpeed>Vento fraco</windSpeed>
			</wind>

		</landWeather>
	</land>
	<land fullMapShow="1" lat="40.1500694" localID="6" lon="-8.46669167" name="Coimbra" periodID="2">
		<landWeather end-time="2009-12-16T23:59:59" start-time="2009-12-16T12:00:00">
			<temp>
				<tempMin>6</tempMin>
				<tempMax>12</tempMax>
			</temp>

			<currentWeather symbolID="9">
				<symbolDesc>Chuva moderada</symbolDesc>
			</currentWeather>
			<wind windSymbolID="22">
				<windDirectionDescription>Sul</windDirectionDescription>
				<windDirectionResume>S</windDirectionResume>
				<windSpeed>Vento moderado</windSpeed>

			</wind>
		</landWeather>
	</land>
	<uv fullMapShow="1" lat="40.2500694" localID="6" lon="-8.36669167" name="Coimbra" periodID="2">
		<uvForecast end-time="2009-12-16T23:59:59" start-time="2009-12-16T12:00:00">
			<iUv>1.2</iUv>
			<iUvHora>13h-13h</iUvHora>
		</uvForecast>

	</uv>
	<land fullMapShow="1" lat="38.53336389" localID="7" lon="-7.88338056" name="Évora" periodID="2">
		<landWeather end-time="2009-12-16T23:59:59" start-time="2009-12-16T12:00:00">
			<temp>
				<tempMin>4</tempMin>
				<tempMax>14</tempMax>
			</temp>
			<currentWeather symbolID="10">

				<symbolDesc>Chuva fraca</symbolDesc>
			</currentWeather>
			<wind windSymbolID="82">
				<windDirectionDescription>Sudoeste</windDirectionDescription>
				<windDirectionResume>SW</windDirectionResume>
				<windSpeed>Vento moderado</windSpeed>
			</wind>

		</landWeather>
	</land>
	<uv fullMapShow="1" lat="38.63" localID="7" lon="-7.6" name="Évora" periodID="2">
		<uvForecast end-time="2009-12-16T23:59:59" start-time="2009-12-16T12:00:00">
			<iUv>1.6</iUv>
			<iUvHora>13h-13h</iUvHora>
		</uvForecast>
	</uv>

	<land fullMapShow="1" lat="37.016579" localID="8" lon="-7.971953" name="Faro" periodID="2">
		<landWeather end-time="2009-12-16T23:59:59" start-time="2009-12-16T12:00:00">
			<temp>
				<tempMin>9</tempMin>
				<tempMax>16</tempMax>
			</temp>
			<currentWeather symbolID="3">
				<symbolDesc>Céu com períodos de muito nublado</symbolDesc>

			</currentWeather>
			<wind windSymbolID="82">
				<windDirectionDescription>Sudoeste</windDirectionDescription>
				<windDirectionResume>SW</windDirectionResume>
				<windSpeed>Vento moderado</windSpeed>
			</wind>
		</landWeather>

	</land>
	<sea fullMapShow="1" lat="37" localID="8" lon="-7.9" name="Faro" periodID="2">
		<seaWeather end-time="2009-12-16T23:59:59" start-time="2009-12-16T12:00:00">
			<waterTemp>17</waterTemp>
			<waveHigh waveHighID="3">
				<waveHighDesc>3-4</waveHighDesc>
			</waveHigh>
			<waveDir waveDirID="8">

				<waveDirDesc>Sudoeste</waveDirDesc>
				<waveDirResume>SW</waveDirResume>
			</waveDir>
		</seaWeather>
	</sea>
	<uv fullMapShow="1" lat="37.016579" localID="8" lon="-7.8" name="Faro" periodID="2">
		<uvForecast end-time="2009-12-16T23:59:59" start-time="2009-12-16T12:00:00">
			<iUv>1.9</iUv>

			<iUvHora>13h-13h</iUvHora>
		</uvForecast>
	</uv>
	<land fullMapShow="1" lat="32.647525" localID="9" lon="-16.892484" name="Funchal" periodID="2">
		<landWeather end-time="2009-12-16T23:59:59" start-time="2009-12-16T12:00:00">
			<temp>
				<tempMin>17</tempMin>
				<tempMax>23</tempMax>

			</temp>
			<currentWeather symbolID="4">
				<symbolDesc>Céu muito nublado</symbolDesc>
			</currentWeather>
			<wind windSymbolID="82">
				<windDirectionDescription>Sudoeste</windDirectionDescription>
				<windDirectionResume>SW</windDirectionResume>

				<windSpeed>Vento moderado</windSpeed>
			</wind>
		</landWeather>
	</land>
	<sea fullMapShow="1" lat="32.7" localID="9" lon="-16.8" name="Funchal" periodID="2">
		<seaWeather end-time="2009-12-16T23:59:59" start-time="2009-12-16T12:00:00">
			<waterTemp>20</waterTemp>
			<waveHigh waveHighID="3">

				<waveHighDesc>2-3</waveHighDesc>
			</waveHigh>
			<waveDir waveDirID="8">
				<waveDirDesc>Sudoeste</waveDirDesc>
				<waveDirResume>SW</waveDirResume>
			</waveDir>
		</seaWeather>

	</sea>
	<uv fullMapShow="1" lat="32.647525" localID="9" lon="-16.75" name="Funchal" periodID="2">
		<uvForecast end-time="2009-12-16T23:59:59" start-time="2009-12-16T12:00:00">
			<iUv>3</iUv>
			<iUvHora>14h-14h</iUvHora>
		</uvForecast>
	</uv>
	<land fullMapShow="1" lat="40.53333333" localID="10" lon="-7.26666667" name="Guarda" periodID="2">

		<landWeather end-time="2009-12-16T23:59:59" start-time="2009-12-16T12:00:00">
			<temp>
				<tempMin>-2</tempMin>
				<tempMax>4</tempMax>
			</temp>
			<currentWeather symbolID="18">
				<symbolDesc>Neve</symbolDesc>

			</currentWeather>
			<wind windSymbolID="82">
				<windDirectionDescription>Sudoeste</windDirectionDescription>
				<windDirectionResume>SW</windDirectionResume>
				<windSpeed>Vento moderado</windSpeed>
			</wind>
		</landWeather>

	</land>
	<land fullMapShow="1" lat="39.744764" localID="11" lon="-8.810466" name="Leiria" periodID="2">
		<landWeather end-time="2009-12-16T23:59:59" start-time="2009-12-16T12:00:00">
			<temp>
				<tempMin>6</tempMin>
				<tempMax>13</tempMax>
			</temp>
			<currentWeather symbolID="9">

				<symbolDesc>Chuva moderada</symbolDesc>
			</currentWeather>
			<wind windSymbolID="22">
				<windDirectionDescription>Sul</windDirectionDescription>
				<windDirectionResume>S</windDirectionResume>
				<windSpeed>Vento moderado</windSpeed>
			</wind>

		</landWeather>
	</land>
	<land fullMapShow="1" lat="38.76662222" localID="12" lon="-9.12830278" name="Lisboa" periodID="2">
		<landWeather end-time="2009-12-16T23:59:59" start-time="2009-12-16T12:00:00">
			<temp>
				<tempMin>6</tempMin>
				<tempMax>14</tempMax>
			</temp>

			<currentWeather symbolID="9">
				<symbolDesc>Chuva moderada</symbolDesc>
			</currentWeather>
			<wind windSymbolID="82">
				<windDirectionDescription>Sudoeste</windDirectionDescription>
				<windDirectionResume>SW</windDirectionResume>
				<windSpeed>Vento moderado</windSpeed>

			</wind>
		</landWeather>
	</land>
	<sea fullMapShow="1" lat="38.6" localID="12" lon="-9.4" name="Lisboa" periodID="2">
		<seaWeather end-time="2009-12-16T23:59:59" start-time="2009-12-16T12:00:00">
			<waterTemp>15</waterTemp>
			<waveHigh waveHighID="3">
				<waveHighDesc>3-4</waveHighDesc>

			</waveHigh>
			<waveDir waveDirID="8">
				<waveDirDesc>Sudoeste</waveDirDesc>
				<waveDirResume>SW</waveDirResume>
			</waveDir>
		</seaWeather>
	</sea>
	<uv fullMapShow="1" lat="38.7666222" localID="12" lon="-9.12830277" name="Lisboa" periodID="2">

		<uvForecast end-time="2009-12-16T23:59:59" start-time="2009-12-16T12:00:00">
			<iUv>1.4</iUv>
			<iUvHora>14h-14h</iUvHora>
		</uvForecast>
	</uv>
	<land fullMapShow="0" lat="40.41136667" localID="13" lon="-7.55865278" name="Penhas Douradas" periodID="2">
		<landWeather end-time="2009-12-16T23:59:59" start-time="2009-12-16T12:00:00">
			<temp>

				<tempMin>-4</tempMin>
				<tempMax>2</tempMax>
			</temp>
			<currentWeather symbolID="18">
				<symbolDesc>Neve</symbolDesc>
			</currentWeather>
			<wind windSymbolID="83">

				<windDirectionDescription>Sudoeste</windDirectionDescription>
				<windDirectionResume>SW</windDirectionResume>
				<windSpeed>Vento forte</windSpeed>
			</wind>
		</landWeather>
	</land>
	<uv fullMapShow="0" lat="40.5" localID="13" lon="-7.45" name="Penhas Douradas" periodID="2">

		<uvForecast end-time="2009-12-16T23:59:59" start-time="2009-12-16T12:00:00">
			<iUv>1.4</iUv>
			<iUvHora>13h-13h</iUvHora>
		</uvForecast>
	</uv>
	<land fullMapShow="1" lat="41.233502" localID="14" lon="-8.681332" name="Porto" periodID="2">
		<landWeather end-time="2009-12-16T23:59:59" start-time="2009-12-16T12:00:00">
			<temp>

				<tempMin>6</tempMin>
				<tempMax>12</tempMax>
			</temp>
			<currentWeather symbolID="11">
				<symbolDesc>Chuva forte</symbolDesc>
			</currentWeather>
			<wind windSymbolID="72">

				<windDirectionDescription>Sudeste</windDirectionDescription>
				<windDirectionResume>SE</windDirectionResume>
				<windSpeed>Vento moderado</windSpeed>
			</wind>
		</landWeather>
	</land>
	<sea fullMapShow="1" lat="41.1" localID="14" lon="-8.7" name="Porto" periodID="2">

		<seaWeather end-time="2009-12-16T23:59:59" start-time="2009-12-16T12:00:00">
			<waterTemp>14</waterTemp>
			<waveHigh waveHighID="3">
				<waveHighDesc>3-4</waveHighDesc>
			</waveHigh>
			<waveDir waveDirID="8">
				<waveDirDesc>Sudoeste</waveDirDesc>

				<waveDirResume>SW</waveDirResume>
			</waveDir>
		</seaWeather>
	</sea>
	<land fullMapShow="1" lat="39.29546944" localID="15" lon="-7.41996944" name="Portalegre" periodID="2">
		<landWeather end-time="2009-12-16T23:59:59" start-time="2009-12-16T12:00:00">
			<temp>
				<tempMin>1</tempMin>

				<tempMax>9</tempMax>
			</temp>
			<currentWeather symbolID="9">
				<symbolDesc>Chuva moderada</symbolDesc>
			</currentWeather>
			<wind windSymbolID="83">
				<windDirectionDescription>Sudoeste</windDirectionDescription>

				<windDirectionResume>SW</windDirectionResume>
				<windSpeed>Vento forte</windSpeed>
			</wind>
		</landWeather>
	</land>
	<land fullMapShow="0" lat="33.071125" localID="16" lon="-16.34906" name="Porto Santo" periodID="2">
		<landWeather end-time="2009-12-16T23:59:59" start-time="2009-12-16T12:00:00">
			<temp>

				<tempMin>17</tempMin>
				<tempMax>21</tempMax>
			</temp>
			<currentWeather symbolID="4">
				<symbolDesc>Céu muito nublado</symbolDesc>
			</currentWeather>
			<wind windSymbolID="82">

				<windDirectionDescription>Sudoeste</windDirectionDescription>
				<windDirectionResume>SW</windDirectionResume>
				<windSpeed>Vento moderado</windSpeed>
			</wind>
		</landWeather>
	</land>
	<sea fullMapShow="0" lat="32.97" localID="16" lon="-16.35" name="Porto Santo" periodID="2">

		<seaWeather end-time="2009-12-16T23:59:59" start-time="2009-12-16T12:00:00">
			<waterTemp>20</waterTemp>
			<waveHigh waveHighID="3">
				<waveHighDesc>3-4</waveHighDesc>
			</waveHigh>
			<waveDir waveDirID="6">
				<waveDirDesc>Noroeste</waveDirDesc>

				<waveDirResume>NW</waveDirResume>
			</waveDir>
		</seaWeather>
	</sea>
	<land fullMapShow="1" lat="37.012835" localID="17" lon="-8.949089" name="Sagres" periodID="2">
		<landWeather end-time="2009-12-16T23:59:59" start-time="2009-12-16T12:00:00">
			<temp>
				<tempMin>14</tempMin>

				<tempMax>17</tempMax>
			</temp>
			<currentWeather symbolID="4">
				<symbolDesc>Céu muito nublado</symbolDesc>
			</currentWeather>
			<wind windSymbolID="83">
				<windDirectionDescription>Sudoeste</windDirectionDescription>

				<windDirectionResume>SW</windDirectionResume>
				<windSpeed>Vento forte</windSpeed>
			</wind>
		</landWeather>
	</land>
	<sea fullMapShow="1" lat="37.01" localID="17" lon="-8.9" name="Sagres" periodID="2">
		<seaWeather end-time="2009-12-16T23:59:59" start-time="2009-12-16T12:00:00">
			<waterTemp>16</waterTemp>

			<waveHigh waveHighID="3">
				<waveHighDesc>3-4</waveHighDesc>
			</waveHigh>
			<waveDir waveDirID="8">
				<waveDirDesc>Sudoeste</waveDirDesc>
				<waveDirResume>SW</waveDirResume>
			</waveDir>

		</seaWeather>
	</sea>
	<land fullMapShow="0" lat="39.201216" localID="18" lon="-8.736656" name="Santarém" periodID="2">
		<landWeather end-time="2009-12-16T23:59:59" start-time="2009-12-16T12:00:00">
			<temp>
				<tempMin>4</tempMin>
				<tempMax>14</tempMax>
			</temp>

			<currentWeather symbolID="9">
				<symbolDesc>Chuva moderada</symbolDesc>
			</currentWeather>
			<wind windSymbolID="82">
				<windDirectionDescription>Sudoeste</windDirectionDescription>
				<windDirectionResume>SW</windDirectionResume>
				<windSpeed>Vento moderado</windSpeed>

			</wind>
		</landWeather>
	</land>
	<land fullMapShow="0" lat="38.54846667" localID="19" lon="-8.89066111" name="Setúbal" periodID="2">
		<landWeather end-time="2009-12-16T23:59:59" start-time="2009-12-16T12:00:00">
			<temp>
				<tempMin>6</tempMin>
				<tempMax>15</tempMax>

			</temp>
			<currentWeather symbolID="9">
				<symbolDesc>Chuva moderada</symbolDesc>
			</currentWeather>
			<wind windSymbolID="82">
				<windDirectionDescription>Sudoeste</windDirectionDescription>
				<windDirectionResume>SW</windDirectionResume>

				<windSpeed>Vento moderado</windSpeed>
			</wind>
		</landWeather>
	</land>
	<sea fullMapShow="0" lat="38.5" localID="19" lon="-8.9" name="Setúbal" periodID="2">
		<seaWeather end-time="2009-12-16T23:59:59" start-time="2009-12-16T12:00:00">
			<waterTemp>15</waterTemp>
			<waveHigh waveHighID="3">

				<waveHighDesc>3-4</waveHighDesc>
			</waveHigh>
			<waveDir waveDirID="8">
				<waveDirDesc>Sudoeste</waveDirDesc>
				<waveDirResume>SW</waveDirResume>
			</waveDir>
		</seaWeather>

	</sea>
	<land fullMapShow="1" lat="37.954504" localID="20" lon="-8.838271" name="Sines" periodID="2">
		<landWeather end-time="2009-12-16T23:59:59" start-time="2009-12-16T12:00:00">
			<temp>
				<tempMin>7</tempMin>
				<tempMax>16</tempMax>
			</temp>
			<currentWeather symbolID="10">

				<symbolDesc>Chuva fraca</symbolDesc>
			</currentWeather>
			<wind windSymbolID="82">
				<windDirectionDescription>Sudoeste</windDirectionDescription>
				<windDirectionResume>SW</windDirectionResume>
				<windSpeed>Vento moderado</windSpeed>
			</wind>

		</landWeather>
	</land>
	<sea fullMapShow="1" lat="37.9" localID="20" lon="-8.9" name="Sines" periodID="2">
		<seaWeather end-time="2009-12-16T23:59:59" start-time="2009-12-16T12:00:00">
			<waterTemp>16</waterTemp>
			<waveHigh waveHighID="3">
				<waveHighDesc>3-4</waveHighDesc>
			</waveHigh>

			<waveDir waveDirID="8">
				<waveDirDesc>Sudoeste</waveDirDesc>
				<waveDirResume>SW</waveDirResume>
			</waveDir>
		</seaWeather>
	</sea>
	<uv fullMapShow="1" lat="37.98" localID="20" lon="-8.7" name="Sines" periodID="2">
		<uvForecast end-time="2009-12-16T23:59:59" start-time="2009-12-16T12:00:00">

			<iUv>1.8</iUv>
			<iUvHora>14h-14h</iUvHora>
		</uvForecast>
	</uv>
	<land fullMapShow="1" lat="41.7" localID="21" lon="-8.8" name="Viana do Castelo" periodID="2">
		<landWeather end-time="2009-12-16T23:59:59" start-time="2009-12-16T12:00:00">
			<temp>
				<tempMin>5</tempMin>

				<tempMax>12</tempMax>
			</temp>
			<currentWeather symbolID="11">
				<symbolDesc>Chuva forte</symbolDesc>
			</currentWeather>
			<wind windSymbolID="72">
				<windDirectionDescription>Sudeste</windDirectionDescription>

				<windDirectionResume>SE</windDirectionResume>
				<windSpeed>Vento moderado</windSpeed>
			</wind>
		</landWeather>
	</land>
	<sea fullMapShow="1" lat="41.7" localID="21" lon="-8.9" name="Viana do Castelo" periodID="2">
		<seaWeather end-time="2009-12-16T23:59:59" start-time="2009-12-16T12:00:00">
			<waterTemp>14</waterTemp>

			<waveHigh waveHighID="3">
				<waveHighDesc>3-4</waveHighDesc>
			</waveHigh>
			<waveDir waveDirID="8">
				<waveDirDesc>Sudoeste</waveDirDesc>
				<waveDirResume>SW</waveDirResume>
			</waveDir>

		</seaWeather>
	</sea>
	<uv fullMapShow="1" lat="41.648875" localID="21" lon="-8.6" name="Viana do Castelo" periodID="2">
		<uvForecast end-time="2009-12-16T23:59:59" start-time="2009-12-16T12:00:00">
			<iUv>0.8</iUv>
			<iUvHora>14h-14h</iUvHora>
		</uvForecast>
	</uv>

	<land fullMapShow="0" lat="40.71492222" localID="22" lon="-7.89592222" name="Viseu" periodID="2">
		<landWeather end-time="2009-12-16T23:59:59" start-time="2009-12-16T12:00:00">
			<temp>
				<tempMin>1</tempMin>
				<tempMax>7</tempMax>
			</temp>
			<currentWeather symbolID="9">
				<symbolDesc>Chuva moderada</symbolDesc>

			</currentWeather>
			<wind windSymbolID="82">
				<windDirectionDescription>Sudoeste</windDirectionDescription>
				<windDirectionResume>SW</windDirectionResume>
				<windSpeed>Vento moderado</windSpeed>
			</wind>
		</landWeather>

	</land>
	<land fullMapShow="1" lat="41.27418611" localID="23" lon="-7.7171" name="Vila Real" periodID="2">
		<landWeather end-time="2009-12-16T23:59:59" start-time="2009-12-16T12:00:00">
			<temp>
				<tempMin>0</tempMin>
				<tempMax>7</tempMax>
			</temp>
			<currentWeather symbolID="9">

				<symbolDesc>Chuva moderada</symbolDesc>
			</currentWeather>
			<wind windSymbolID="82">
				<windDirectionDescription>Sudoeste</windDirectionDescription>
				<windDirectionResume>SW</windDirectionResume>
				<windSpeed>Vento moderado</windSpeed>
			</wind>

		</landWeather>
	</land>
	<land fullMapShow="1" lat="39.45" localID="24" lon="-31.11683333" name="Santa Cruz" periodID="2">
		<landWeather end-time="2009-12-16T23:59:59" start-time="2009-12-16T12:00:00">
			<temp>
				<tempMin>10</tempMin>
				<tempMax>15</tempMax>
			</temp>

			<currentWeather symbolID="20">
				<symbolDesc>Aguaceiros e trovoada</symbolDesc>
			</currentWeather>
			<wind windSymbolID="43">
				<windDirectionDescription>Oeste</windDirectionDescription>
				<windDirectionResume>W</windDirectionResume>
				<windSpeed>Vento forte</windSpeed>

			</wind>
		</landWeather>
	</land>
	<sea fullMapShow="1" lat="39.5" localID="24" lon="-31.2" name="Santa Cruz" periodID="2">
		<seaWeather end-time="2009-12-16T23:59:59" start-time="2009-12-16T12:00:00">
			<waterTemp>17</waterTemp>
			<waveHigh waveHighID="3">
				<waveHighDesc>5</waveHighDesc>

			</waveHigh>
			<waveDir waveDirID="4">
				<waveDirDesc>Oeste</waveDirDesc>
				<waveDirResume>W</waveDirResume>
			</waveDir>
		</seaWeather>
	</sea>
	<uv fullMapShow="1" lat="39.45" localID="24" lon="-31.11683333" name="Santa Cruz" periodID="2">

		<uvForecast end-time="2009-12-16T23:59:59" start-time="2009-12-16T12:00:00">
			<iUv>0.9</iUv>
			<iUvHora>14h-14h</iUvHora>
		</uvForecast>
	</uv>
	<land fullMapShow="0" lat="38.52084" localID="25" lon="-28.711481" name="Horta" periodID="2">
		<landWeather end-time="2009-12-16T23:59:59" start-time="2009-12-16T12:00:00">
			<temp>

				<tempMin>11</tempMin>
				<tempMax>16</tempMax>
			</temp>
			<currentWeather symbolID="20">
				<symbolDesc>Aguaceiros e trovoada</symbolDesc>
			</currentWeather>
			<wind windSymbolID="43">

				<windDirectionDescription>Oeste</windDirectionDescription>
				<windDirectionResume>W</windDirectionResume>
				<windSpeed>Vento forte</windSpeed>
			</wind>
		</landWeather>
	</land>
	<sea fullMapShow="0" lat="38.5" localID="25" lon="-28.8" name="Horta" periodID="2">

		<seaWeather end-time="2009-12-16T23:59:59" start-time="2009-12-16T12:00:00">
			<waterTemp>17</waterTemp>
			<waveHigh waveHighID="3">
				<waveHighDesc>5</waveHighDesc>
			</waveHigh>
			<waveDir waveDirID="6">
				<waveDirDesc>Noroeste</waveDirDesc>

				<waveDirResume>NW</waveDirResume>
			</waveDir>
		</seaWeather>
	</sea>
	<land fullMapShow="1" lat="38.66666667" localID="26" lon="-27.21666667" name="Angra do Heroísmo" periodID="2">
		<landWeather end-time="2009-12-16T23:59:59" start-time="2009-12-16T12:00:00">
			<temp>
				<tempMin>12</tempMin>

				<tempMax>15</tempMax>
			</temp>
			<currentWeather symbolID="20">
				<symbolDesc>Aguaceiros e trovoada</symbolDesc>
			</currentWeather>
			<wind windSymbolID="43">
				<windDirectionDescription>Oeste</windDirectionDescription>

				<windDirectionResume>W</windDirectionResume>
				<windSpeed>Vento forte</windSpeed>
			</wind>
		</landWeather>
	</land>
	<sea fullMapShow="1" lat="38.65" localID="26" lon="-27.2" name="Angra do Heroísmo" periodID="2">
		<seaWeather end-time="2009-12-16T23:59:59" start-time="2009-12-16T12:00:00">
			<waterTemp>17</waterTemp>

			<waveHigh waveHighID="3">
				<waveHighDesc>5</waveHighDesc>
			</waveHigh>
			<waveDir waveDirID="6">
				<waveDirDesc>Noroeste</waveDirDesc>
				<waveDirResume>NW</waveDirResume>
			</waveDir>

		</seaWeather>
	</sea>
	<uv fullMapShow="1" lat="38.66666667" localID="26" lon="-27.21666667" name="Angra do Heroísmo" periodID="2">
		<uvForecast end-time="2009-12-16T23:59:59" start-time="2009-12-16T12:00:00">
			<iUv>1.4</iUv>
			<iUvHora>14h-14h</iUvHora>
		</uvForecast>
	</uv>

	<land fullMapShow="1" lat="37.74414" localID="27" lon="-25.696864" name="P. Delgada" periodID="2">
		<landWeather end-time="2009-12-16T23:59:59" start-time="2009-12-16T12:00:00">
			<temp>
				<tempMin>14</tempMin>
				<tempMax>16</tempMax>
			</temp>
			<currentWeather symbolID="20">
				<symbolDesc>Aguaceiros e trovoada</symbolDesc>

			</currentWeather>
			<wind windSymbolID="43">
				<windDirectionDescription>Oeste</windDirectionDescription>
				<windDirectionResume>W</windDirectionResume>
				<windSpeed>Vento forte</windSpeed>
			</wind>
		</landWeather>

	</land>
	<sea fullMapShow="1" lat="37.7" localID="27" lon="-25.6" name="P. Delgada" periodID="2">
		<seaWeather end-time="2009-12-16T23:59:59" start-time="2009-12-16T12:00:00">
			<waterTemp>17</waterTemp>
			<waveHigh waveHighID="3">
				<waveHighDesc>5</waveHighDesc>
			</waveHigh>
			<waveDir waveDirID="4">

				<waveDirDesc>Oeste</waveDirDesc>
				<waveDirResume>W</waveDirResume>
			</waveDir>
		</seaWeather>
	</sea>
	<uv fullMapShow="1" lat="37.74414" localID="27" lon="-25.696864" name="P. Delgada" periodID="2">
		<uvForecast end-time="2009-12-16T23:59:59" start-time="2009-12-16T12:00:00">
			<iUv>1.7</iUv>

			<iUvHora>14h-14h</iUvHora>
		</uvForecast>
	</uv>
</forecast>
</report>

Agora, não sei se isto te serve e principalmente, não sei se podes usá-los, visto que não é propriamente suposto aceder-se directamente. Se te interessar, deverias contactar o Instituto.

EDIT: também há versões html (http://www.meteo.pt/pt/html.jsp), poderias fazer parsing a isto, mas provavelmente o XML é mais detalhado e dá mais jeito.

❝The idea that I can be presented with a problem, set out to logically solve it with the tools at hand, and wind up with a program that could not be legally used because someone else followed the same logical steps some years ago and filed for a patent on it is horrifying.❞- John Carmack on software patents

A list  of command line apps

Link to comment
Share on other sites

Isso não é um webservice, isso é um módulo do Joomla que vai buscar os dados a um Webservice e os mostra na página.

Provavelmente é este: http://www.joomla-penguin.com/joomla-msn-weather-module.html

Mas só funciona se usares Joomla no teu site.

Se não, podes usar algo como estes, que te permitem incorporar facilmente em qualquer site, exemplo:

08532.gif

Vai a este link: http://www.wunderground.com/global/PO.html

Escolhe a cidade, clica em "Free Weather Stickers® for Your Homepage!" e depois escolhe o estilo que gostares mais.

Se não gostares desses, procura por "weather in my home page", és capaz de encontrar mais.

❝The idea that I can be presented with a problem, set out to logically solve it with the tools at hand, and wind up with a program that could not be legally used because someone else followed the same logical steps some years ago and filed for a patent on it is horrifying.❞- John Carmack on software patents

A list  of command line apps

Link to comment
Share on other sites

Há este, do Weather.com: http://www.weather.com/services/weather-gadgets/?from=hp%5Ftools

De resto não conheço mais nada.

❝The idea that I can be presented with a problem, set out to logically solve it with the tools at hand, and wind up with a program that could not be legally used because someone else followed the same logical steps some years ago and filed for a patent on it is horrifying.❞- John Carmack on software patents

A list  of command line apps

Link to comment
Share on other sites

Boas,

Arranjei uma aplicaçao do google k m da o k eu kria, so k apenas para uma cidade..Existe uma variavel no codigo nomeadamente a "up_cidade" k s eu a alterar no codigo mudo tb a cidade escollhida..O k kria saber e s existe maneira d eu atraves de uma caixa de texto,por exemplo, inserir uma cidade diferente e alterar tambem no codigo..

Ha maneira??

aqui fica o codigo :

<script src="http://www.gmodules.com/ig/ifr?url=http://home.joaquim.org/tempo/tempo.xml&up_cidade=Lisboa&up_tema=Mini&synd=open&w=250&h=250&title=O+Tempo&border=%23ffffff%7C0px%2C1px+solid+%2382CAFA%7C0px%2C2px+solid+%23BDEDFF%7C0px%2C3px+solid+%23E0FFFF&output=js"></script>

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.