<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Id Spot]]></title><description><![CDATA[<p dir="auto">Hi to all!</p>
<p dir="auto">I´m trying to get the right Id Spot for my location, but it´s being imposible at all.<br />
Could someone help me?<br />
The exact Spot is called Mundaka. Id??<br />
Thanks!</p>
]]></description><link>https://community.windy.com/topic/26318/id-spot</link><generator>RSS for Node</generator><lastBuildDate>Thu, 21 May 2026 13:20:05 GMT</lastBuildDate><atom:link href="https://community.windy.com/topic/26318.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 21 Jun 2023 16:53:50 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Id Spot on Tue, 27 Jun 2023 19:05:32 GMT]]></title><description><![CDATA[<p dir="auto">@Ondřej-Šutera Ah ok! I thought it was posible doing GET method.<br />
I have found an other option which allows me so.<br />
Thanks!</p>
]]></description><link>https://community.windy.com/post/148852</link><guid isPermaLink="true">https://community.windy.com/post/148852</guid><dc:creator><![CDATA[Borja Portuondo]]></dc:creator><pubDate>Tue, 27 Jun 2023 19:05:32 GMT</pubDate></item><item><title><![CDATA[Reply to Id Spot on Tue, 27 Jun 2023 07:12:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/borja-portuondo" aria-label="Profile: Borja-Portuondo">@<bdi>Borja-Portuondo</bdi></a> Unfortunately, our API is used with POST request only. Here is the sample from our colleagues</p>
<pre><code>curl -d '{"lat": 49.809, "lon": 16.787, "model": "gfs", "parameters": ["wind", "dewpoint", "rh", "pressure"], "levels": ["surface", "800h", "300h"], "key": "your_API_key"}' -H "Content-Type: application/json" -X POST https://api.windy.com/api/point-forecast/v2
</code></pre>
<p dir="auto">If you mean anything else, please send your API request directly so colleagues can take a look at the real piece of API request.</p>
]]></description><link>https://community.windy.com/post/148740</link><guid isPermaLink="true">https://community.windy.com/post/148740</guid><dc:creator><![CDATA[Suty]]></dc:creator><pubDate>Tue, 27 Jun 2023 07:12:07 GMT</pubDate></item><item><title><![CDATA[Reply to Id Spot on Mon, 26 Jun 2023 16:34:41 GMT]]></title><description><![CDATA[<p dir="auto">@Ondřej-Šutera Yes, I´m doing a GET method cause I need that info, waves and sea conditions.<br />
If I do a POST method, what I´m doing is updating your API, and that´s not my case.</p>
]]></description><link>https://community.windy.com/post/148668</link><guid isPermaLink="true">https://community.windy.com/post/148668</guid><dc:creator><![CDATA[Borja Portuondo]]></dc:creator><pubDate>Mon, 26 Jun 2023 16:34:41 GMT</pubDate></item><item><title><![CDATA[Reply to Id Spot on Mon, 26 Jun 2023 12:58:29 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/user/borja-portuondo" aria-label="Profile: Borja-Portuondo">@<bdi>Borja-Portuondo</bdi></a>, I forwarded this to colleagues and they told me that you try to send the GET method, instead of POST, which should be there, more info about that <a href="https://api.windy.com/point-forecast/docs" rel="nofollow ugc">here.</a></p>
]]></description><link>https://community.windy.com/post/148642</link><guid isPermaLink="true">https://community.windy.com/post/148642</guid><dc:creator><![CDATA[Suty]]></dc:creator><pubDate>Mon, 26 Jun 2023 12:58:29 GMT</pubDate></item><item><title><![CDATA[Reply to Id Spot on Sat, 24 Jun 2023 15:35:51 GMT]]></title><description><![CDATA[<p dir="auto">And I was using this other way also, and here is the issue with the spotId, Line 04</p>
<p dir="auto">// export default function LaMar() {<br />
//   const [waveData, setWaveData] = useState(null);<br />
//   const apiKey = '3dzxp6IkDLni8tjlwvflPvdmqRJhqPpS';<br />
//   const spotId = '621'; // ID del spot de Mundaka en Windy API</p>
<p dir="auto">//   useEffect(() =&gt; {<br />
//     fetch(<code>https://api.windy.com/api/webcams/v2/list/spots/${spotId}?show=wind&amp;key=${apiKey}</code>)<br />
//       .then(response =&gt; response.json())<br />
//       .then(data =&gt; {<br />
//         // Aquí puedes manejar los datos de respuesta<br />
//         setWaveData(data.result[0]); // Selecciona el primer resultado del array<br />
//       })<br />
//       .catch(error =&gt; {<br />
//         // Manejo de errores<br />
//         console.error(error);<br />
//       });<br />
//   }, []);</p>
<p dir="auto">//   if (!waveData) {<br />
//     return </p><div>Cargando...</div>;<br />
//   }<p></p>
<p dir="auto">//   return (<br />
//     </p><div><br />
//       <h2>Estado del mar y olas en Mundaka</h2><br />
//       {/* Aquí puedes mostrar los datos obtenidos, como la altura de las olas, dirección del viento, etc. <em>/}<br />
//       {/</em> Ejemplo: <em>/}<br />
//       <p>Altura de las olas: {waveData.waveHeight} metros</p><br />
//       <p>Dirección del viento: {waveData.windDirection}</p><br />
//       {/</em> Puedes personalizar cómo deseas mostrar los datos */}<br />
//     </div><br />
//   );<br />
// }<p></p>
]]></description><link>https://community.windy.com/post/148494</link><guid isPermaLink="true">https://community.windy.com/post/148494</guid><dc:creator><![CDATA[Borja Portuondo]]></dc:creator><pubDate>Sat, 24 Jun 2023 15:35:51 GMT</pubDate></item><item><title><![CDATA[Reply to Id Spot on Sat, 24 Jun 2023 15:33:07 GMT]]></title><description><![CDATA[<p dir="auto">@Ondřej-Šutera</p>
<p dir="auto">I´m trying to do a Fetch to your API. The Id issue is ok, I changed the way I´m doing it. But know I have an error I cannot solve, and it seems is something with the ApiKey itself, wich is the good one provided by Windy.</p>
<p dir="auto">I´m building a component in React to get some info, for personal training actaully.</p>
<p dir="auto">This is the code I´m using,</p>
<p dir="auto">import React, { useEffect, useState } from 'react';</p>
<p dir="auto">export default function LaMar () {</p>
<p dir="auto">const [seaConditions, setSeaConditions] = useState(null);<br />
const [lowTide, setLowTide] = useState(null);<br />
const [highTide, setHighTide] = useState(null);<br />
const [waveConditions, setWaveConditions] = useState(null);</p>
<p dir="auto">useEffect(() =&gt; {<br />
const fetchData = async () =&gt; {<br />
try {<br />
const response = await fetch('<a href="https://api.windy.com/api/forecast/v2?lat=43.4094&amp;lon=-2.6915&amp;key=3dzxp6IkDLni8tjlwvflPvdmqRJhqPpS" rel="nofollow ugc">https://api.windy.com/api/forecast/v2?lat=43.4094&amp;lon=-2.6915&amp;key=3dzxp6IkDLni8tjlwvflPvdmqRJhqPpS</a>');<br />
const data = await response.json();</p>
<pre><code>    // Extract the sea conditions, low and high tide, and wave conditions
    const seaConditionsData = data.forecast.sea;
    const lowTideData = data.forecast.tides.tide[0];
    const highTideData = data.forecast.tides.tide[1];
    const waveConditionsData = data.forecast.waves;

    // Update the state with the retrieved information
    setSeaConditions(seaConditionsData);
    setLowTide(lowTideData);
    setHighTide(highTideData);
    setWaveConditions(waveConditionsData);
  } catch (error) {
    console.log('Error:', error);
  }
};

fetchData();
</code></pre>
<p dir="auto">}, []);</p>
<p dir="auto">return (<br />
</p><div><br />
<h2>Sea Conditions: {seaConditions}</h2><br />
<h2>Low Tide: {lowTide}</h2><br />
<h2>High Tide: {highTide}</h2><br />
<h2>Wave Conditions: {waveConditions}</h2><br />
</div><br />
);<br />
};<p></p>
<p dir="auto">But I´m having this error :</p>
<p dir="auto">LaMar.jsx:111     GET <a href="https://api.windy.com/api/forecast/v2?lat=43.4094&amp;lon=-2.6915&amp;key=3dzxp6IkDLni8tjlwvflPvdmqRJhqPpS" rel="nofollow ugc">https://api.windy.com/api/forecast/v2?lat=43.4094&amp;lon=-2.6915&amp;key=3dzxp6IkDLni8tjlwvflPvdmqRJhqPpS</a> 404<br />
fetchData @ LaMar.jsx:111<br />
(anonymous) @ LaMar.jsx:130<br />
commitHookEffectListMount @ react-dom.development.js:23150<br />
invokePassiveEffectMountInDEV @ react-dom.development.js:25154<br />
invokeEffectsInDev @ react-dom.development.js:27351<br />
commitDoubleInvokeEffectsInDEV @ react-dom.development.js:27330<br />
flushPassiveEffectsImpl @ react-dom.development.js:27056<br />
flushPassiveEffects @ react-dom.development.js:26984<br />
commitRootImpl @ react-dom.development.js:26935<br />
commitRoot @ react-dom.development.js:26682<br />
performSyncWorkOnRoot @ react-dom.development.js:26117<br />
flushSyncCallbacks @ react-dom.development.js:12042<br />
(anonymous) @ react-dom.development.js:25651<br />
LaMar.jsx:126 Error: SyntaxError: Unexpected token '</p>
]]></description><link>https://community.windy.com/post/148493</link><guid isPermaLink="true">https://community.windy.com/post/148493</guid><dc:creator><![CDATA[Borja Portuondo]]></dc:creator><pubDate>Sat, 24 Jun 2023 15:33:07 GMT</pubDate></item><item><title><![CDATA[Reply to Id Spot on Thu, 22 Jun 2023 06:37:50 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/borja-portuondo" aria-label="Profile: Borja-Portuondo">@<bdi>Borja-Portuondo</bdi></a> Can you please let me know, what exactly do you mean by ID of the spot and where would you like to use the ID?</p>
]]></description><link>https://community.windy.com/post/148144</link><guid isPermaLink="true">https://community.windy.com/post/148144</guid><dc:creator><![CDATA[Suty]]></dc:creator><pubDate>Thu, 22 Jun 2023 06:37:50 GMT</pubDate></item></channel></rss>