Public
Back
Version 9
10/18/2023
const untitled_harlequinPanda = (async () => {
const surfForecast = await fetch(
"https://services.surfline.com/kbyg/spots/batch?units%5BswellHeight%5D=FT&units%5Btemperature%5D=F&units%5BtideHeight%5D=FT&units%5BwaveHeight%5D=FT&units%5BwindSpeed%5D=KTS&spotIds=5842041f4e65fad6a770883f,5842041f4e65fad6a77088af",
).then((r) => r.json()).then((d) => d.data);
// const simpleForecast = surfForecast.map((f) => ({
// name: f.name,
// waterTempF: f.waterTemp.min,
// windSpeedMph: f.wind.speed * 1.15078,
// windDirection: f.wind.directionType,
// waveHeight: `${f.waveheight.min}-${f.waveheight.max}ft`,
// rating: f.rating.key,
// }));
})();
Updated: October 23, 2023