Hello,
the whole script is quite short and I decided to copy it below. At some point there used to be a separate library (".pyd") but now it all is part of the python API - sysinfo.active_profile().
BR, risto
Code:
<html>
<head>
<title>Risto's phone status info</title>
<link rel="stylesheet" media="screen" type="text/css"
href="http://raccoon.openlaboratory.net/RaccoonOnMap/css/docs.css" />
</head>
<body>
<h1>My phone is in
<%
import sysinfo
pname = sysinfo.active_profile()
req.write("\n<em>")
req.write(pname)
req.write("</em>\n")
%>
mode</h1>
<p>
<dl>
<dt>General
<dd>I am currently in the office and you can call me now
<dt>Silent
<dd>I am currently in a quiet place, please do not call me now
<dt>Meeting
<dd>I am currently in a meeting; messaging is preferred over
voice calls
<dt>Outdoor
<dd>I am currently outdoor: on the road, shopping, sport
activities, etc, but I might answer to your call
<dt>Pager
<dd>I can read your messages but will not answer the phone (I
hardly ever use this one)
</dl>
</body>
</html>