#!/opt/bin/bash

echo Content-type: text/html
echo ""

/bin/cat << EOM
<HTML>
<HEAD><TITLE>Toggle Office Lights</TITLE>
</HEAD>
<BODY bgcolor="#cccccc" text="#000000">
<P>
<SMALL>
<PRE>
EOM

SERVER=192.168.1.21
PORT=8123

echo "Sending request to ${SERVER}"

curl http://${SERVER}:${PORT}/api/webhook/toggle_bureau_lights -X POST

/bin/cat << EOM
</PRE>
</SMALL>
<P>
</BODY>
</HTML>
EOM



