ppm
Install your own CO2unter
It's dead easy to put a CO2UNTER on your own website.
The simple way (for blogs)
The counter should work if you simply cut and paste the following into a blog post or webpage where you want the concentration to appear. It has all the line breaks and comments stripped out as they cause problems with some blogging software. Note for blog posts you'll have to use the 'edit html' option rather than the WYSIWYG editor.
The better way
If you have full control over your webpage layout, it's neater and more correct to put the main call to the script in the <head> section of your html document, and place just the <span> tag with the CO2 concentration in the right place in the <body> part of the document.
So the following goes somewhere in the <head> section:
Then, in the <body> section include the following <span> tag where you want the concentration of CO2 to appear. The script just writes the number by the way - you should probably add 'parts per million' afterwards to make clear what the units are!
It's optional, but visitors to your site might wonder where you are getting the values from, so a link back to this site is a good idea (and we always appreciate one). Feel free to style it however you like, or just cut and paste the following:
That's it! Give it a try.
Advanced
If you're feeling ambitious, there are a few things the script can display as well as the estimated current CO2 concentration:
Inserting <span id="last_measurement_co2">loading...</span> in your html will display the most recent measured CO2 level. This is usually a couple of months old.
<span id="last_measurement_date">loading...</span> will display the date of the last measurement.
<span id="elapsed">loading...</span> will display the time in days since the last measurement
<span id="growth_rate">loading...</span> will display the average daily rate of increase of CO2 over the last five years. The "current_co2" value is calculated using the last measurement value, plus an increase estimated from this rate of change multiplied by the elapsed time since the last measurement.
You can also tweak some variables in the code. RefreshRate changes how often the display refreshes, and you can change the number of decimal places that are displayed for the various parameters with the 'Precision' variables. Having more decimal places and faster updates will give more visual impact to your ticker - but can be distracting. Play around and see what suits you best. One word of warning though - set RefreshRate too slow, and it won't give enough time for the script to execute fully before it resets itself, which can lead to some bizarre results. Probably best not to venture much below 250 milliseconds, or older computers won't run the script properly.