First of all apologies if I am asking for something I should be able to do myself but can I suggest a change to both EMON.CCP and EMON.H which are included in some versions of the EmonTX Firmware packages, specifically the 2CT and 3CT with Voltage option.
It appears since Arduino version 1.0 came out Wprogram.h has been replaced by Arduino.h
If the #include "Wprogram.h" statement is replaced with:-
#if defined(ARDUINO) && ARDUINO >= 100
#include "Arduino.h"
#else
#include "WProgram.h"
#endif
It should hopefully work in both Version 1.0 and below.
Re: Changes to Emon.cpp and Emon.h
Good suggestion. It has been implemented. Get the latest code from our github: http://github.com/openenergymonitor
It would be possible for you to do it yourself by creating a github account then forking the the emonTx examples. Then you can make the changes on your fork and send us a 'pull request' with the change. It can be a bit tricky to get used to but is very powerfull.
Once your setup with git you shoud be able to do a 'git pull' to keep upto date with examples.
Some good information on how github can be usefull here: http://jeelabs.org/2011/12/27/the-convenience-of-git/
Re: Changes to Emon.cpp and Emon.h
Thanks for that, I will have a look at creating a github account, I am currently looking into pulling the current time off an NTP server using the emonbase and then transmitting it so the emonGLCD can keep in step even after a power cut.
Also I am wondering if it's possible to use the reset switch on the GLCD to cycle around different information a bit like the dashboard on emoncms, for example, 1 press shows you the last hour of solar power generation in a graph ?? type format, the next press shows you the power usage, the next press could take you back to the original screen etc.