Endurance runner, productivity geek and bio-hacker

Matt Smallman

Category: Uncategorized

Justgiving.com Totaliser

I used this code to create the Statusboard panel with my current justgiving.com fundraising total during my 12 week challenge to complete the 2013 London Marathon for help the hospices

You need to have an API developer account at justgiving.com, insert your details in the script as appropriate and put the page somewhere publicly accessible (as it’s .html this could even be dropbox or google drive) but otherwise, it should be self-explanatory then point your status

<html>
<head>
<!-- 
Shows total of funds raised, on and offline including gift aid (UK Tax refund) from justgiving.com on Panic Status Board: http://panic.com/statusboard/
Instructions:
1. Register for an API key and access at: https://api.justgiving.com/docs
2. Replace: https://api.justgiving.com/your-api-key/v1/fundraising/pages/your-page-name with the appropriate api-key and your-page-name
3. Place the page on an accessible web server
4. Install into Status Board using the DIY option
-->


  <title>Justgiving.com Totaliser</title>
   <meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0">
   <script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.6.2.min.js"></script>
   <script>
    $(document).ready(function(){
  	  update();
		  setInterval(function(){update()},6000);
	  });



    function update() 
    	{
         	$.getJSON("https://api.justgiving.com/your-api-key/v1/fundraising/pages/your-page-name", {},  function (data) { 
         		var total = Number(data.totalRaisedOnline) + Number(data.totalRaisedOffline) + Number(data.totalEstimatedGiftAid) ;        
                $('#raised').html(total);
            })
            
      };


</script>

</head>
	<body>
	  <table style='border-spacing:0; border-collapse:collapse; width:100%; height:100%;'>
		  <tr>
			  <td style='padding-left:10px; font-size:36px; '> FUNDRAISING:</td>
				<td style='font-size:36px; text-align:right;'> &pound <span id='raised'></span></div>
				</td>
			 </tr>
		</table>
	</body>

My Home Server – Part 1

As Home Server gen 4 is now up and running I’ve decided it’s time to clear out all the old bits of computer that have been hanging around for several years

  • 2007 – XBMC and NSLU2
  • 2009 – Ubuntu HTPC
  • 2010 – 2012 – Windows HTPC Server
  • 2013 – Ubuntu Netbook Server
  • 2014 – ESXi Beast
  • 2016 – QNAP NAS
  • 2018- Ebay ProxMox

Powered by WordPress & Theme by Anders Norén