You could get one of these and wire it to the mains http://www.youtube.com/watch?v=lTzByQTeyJQ
On Wed, Jan 26, 2011 at 4:46 PM, Chris G cl@isbd.net wrote:
On Wed, Jan 26, 2011 at 04:05:42PM +0000, John Woodard wrote:
On 26 January 2011 15:51, samwise samwise@bagshot-row.org wrote:
Chris,
Shouldn't you be able to get this info from your computer itself?
Something like:
cat /proc/acpi/battery/BAT0/state
Or maybe google for acpi or acm ... ?
The battery widgets which show you whether your battery is in use or charging, must make use of this info.
Peter
No need for such complexities, use a web cam pointing at the little red power light.... I'll get my coat..... :-)
I do already have a webcam, and it's just about working. However it's not very clever for a programmatic check on mains power! :-)
-- Chris Green
main@lists.alug.org.uk http://www.alug.org.uk/ http://lists.alug.org.uk/mailman/listinfo/main Unsubscribe? See message headers or the web site above!