Skip to content

Instantly share code, notes, and snippets.

@joefaron
joefaron / wsl.php
Last active August 9, 2023 02:21
WSL CS Odds Predictions (World Surf League - Challenger Series)
<PRE><?php
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ERROR);
ini_set('max_execution_time', 0);
?>
__ _______ _ ___ ___ ___ ____
\ \ / / ____| | |__ \ / _ \__ \|___ \
\ \ /\ / / (___ | | ______ ) | | | | ) | __) |
<?php
// host on own server, just replace getUrl() to properly get/cache html from magicseaweed which has closed down it's api
// create custom "My Data" function that calls this script.. works nice.
// https://developer.lametric.com/applications/createdisplay#create-popup
// Lametric TIME clock custom app for displaying surf swell, tide, sea temp data..
// smart clock: https://lametric.com/en-US
/* example return: (displays current sea temp, current swell, current wind, next best day in next 4 days)