ok so this isn't very nifty or very challenging.. But for those eco minded office spaces here's one for you..
We have a ping sweep setup that logs back all PCs and associated users to a txt file.. This txt file is sent to our ECO Office reps.. Anyway,, until now they sort of sat on this data, and every now and then they would send out a please explain to the users in question.. At our office we have a 100% turn off desktops after workhours, unless you state you need to leave it on for some reason. Amazingly they have seen some quite good energy reducion from the the practice.. Anyway.. I digress...
What the eco office staff do now is enter in the amount of PCs left on over night into a SP list.. A nintex Workflow calculates the amount of black balloons it is (approx PCs times 34 - I'm unsure of the source of the information, it is what I was told)



In a content editor webpart, using the source window copy and paste the following (edit to suit)
<TABLE style='WIDTH: 100%' summary=''>
<TBODY>
<TR>
<TD style='WIDTH: 145px'><IMG style='BORDER-BOTTOM: 0px solid; BORDER-LEFT: 0px solid; BORDER-TOP: 0px solid; BORDER-RIGHT: 0px solid' border=0 alt='Black Balloons' src='http://<server>/PublishingImages/43099.jpg'></TD>
<TD>
<DIV style='BORDER-BOTTOM: 1px solid; TEXT-ALIGN: left; BORDER-LEFT: 1px solid; BACKGROUND-COLOR: #efefef; PADDING-LEFT: 0px; WIDTH: 180px; PADDING-RIGHT: 5px; FONT-FAMILY: Verdana; HEIGHT: 167px; COLOR: #006666; BORDER-TOP: 1px solid; BORDER-RIGHT: 1px solid;' id=blackballoons1>
<DIV>
<P>
<CENTER><B>Number of computers left on overnight:</B><BR>
<SPAN id=blackballoons><IMG src="http://<server>/Image%20Library/62.gif"></SPAN>
<P align=center><A title="Black Balloon Program" href="http://<server>/Resources/IntPrograms/ecooffice/Pages/BlackBalloonProgram.aspx" target=""><U>
<FONT color=#065077 style='font-size: xx-small'>Click here for more info</FONT></U></A></P>
<SCRIPT language=javascript type=text/javascript>
var BBListID = "{02340083-E51B-4E2A-9511-F7583B43F27E}";
var BBServerURL = "http://<server>/";
var BBSiteURL = "http://<server>/Resources/IntPrograms/ecooffice";
var URLprotocolURL = BBSiteURL + "/_vti_bin/owssvr.dll?Cmd=Display&XMLDATA=TRUE&List=" + BBListID;
var BBxmlhttp = null;
try
{
BBxmlhttp = new XMLHttpRequest();
}
catch (e)
{
try
{
BBxmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
}
catch (e)
{
try
{
BBxmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
}
catch (e)
{
alert("Your browser does not support XMLHTTP.");
}
}
}
BBxmlhttp.onreadystatechange = StateChange;
BBxmlhttp.open("GET", URLprotocolURL, true);
BBxmlhttp.send(null);
function StateChange() {
if (BBxmlhttp.readyState == 4) {
if (BBxmlhttp.status == 200) {
setInterval("DisplayBB()", 8000);
}
else {
alert("Problem retrieving XML data");
}
}
}
function DisplayBB() {
var BBxmlDoc = BBxmlhttp.responseXML;
var BBListItems = BBxmlDoc.getElementsByTagName("z:row") || xmlDoc.getElementsByTagNameNS("*", "row");
if (BBListItems.length > 0) {
var BBSelectedItem = BBListItems[0];
var BBNumber = BBSelectedItem.getAttribute("ows_LinkTitle");
var BBBalloons = BBSelectedItem.getAttribute("ows_Approx_x0020_Black_x0020_Balloon");
document.getElementById("blackballoons").innerHTML = '<h3>' + BBNumber + '</h3>approximately <b>' + BBBalloons + '</b> black balloons';
} else {
alert('No List Items were returned');
}
}
</SCRIPT>
</CENTER></DIV></DIV>
<P align=center><A title="Black Balloon Program" href="http://<server>/Resources/IntPrograms/ecooffice/Pages/BlackBalloonProgram.aspx" target=""></A> </P></TD></TR></TBODY></TABLE>