#!/usr/bin/env python import cgi import cgitb cgitb.enable() print "Content-type: text/html\n\n" f = open('/home/pi/mytherm/heaterStatus.txt', 'w') f.write('OFF') f.close() print "

The Heater is OFF

"