We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
battery power (Read 434 times)
battery power
Apr 11th, 2010, 3:10am
 
Hi.

Can processing (probably through java) be made aware of system status variables such as remaining battery power, or if the host machine (a laptop in my case) is running on AC power? Other things like motherboard temperature would also be useful.  Does anyone know if this is possible and have any examples of its usage?

thanks
Jim
Re: battery power
Reply #1 - Apr 11th, 2010, 3:42am
 
There are low level, often system or even computer (driver) dependent functions. Java (thus Processing) is aiming to be system agnostic.
While it offers some access to low level functions, I am not sure if those you ask are available.
You should search a library doing that. If it exists, it probably relies on a C layer bound with JNI or JNA, to allow access to system drivers.
Page Index Toggle Pages: 1