#!/bin/bash

echo -e 'Content-Type: text/html\r'
echo -e 'Cache-Control: no-cache\r'
echo -e '\r'

echo -e '<html><head><title>meteo france</title></head><body>'

wget -O - "http://marine.meteofrance.com/marine/accueil?MARINE_PORTLET.path=marinecotebulletin/COTE_CORSE" 2> /dev/null \
	| grep 'forecastBlock.*forecastTabs'  \
	| sed -e 's/^.*bulletinText">//' -e 's#</div>.*$##'

echo -e '</body></html>'
