Get charge state remotely I want my desktop to check state of the phone and warn me at appropriate time (calculated on my presence at the desktop, phone charge, time of day and other criteria).

Is there a way to get my phone charge state remotely? What software/services should I use?

As programmer, I'd prefer a solution that would allow to script criteria and logic myself. All I need are means to access charge state remotely say through Google API's or web-published information.

I'm asking this question here as I believe there should be a ton of monitoring Android applications publishing state by various means.
There's an app here that allows you to do that according to the description (along with many more things): https://market.android.com/details?id=com.androidlost&amp;hl=en

If you want to code your own application then you'll want to check out this Intent and the two Intents below it (ACTION_BATTERY_LOW, ACTION_BATTERY_OKAY):
http://developer.android.com/reference/android/content/Intent.html#ACTION_BATTERY_CHANGED

And this class which has what the Intent contains: 
http://developer.android.com/reference/android/os/BatteryManager.html

You could have your application pick up the ACTION_BATTERY_LOW Intent and then send a message to you warning you about the status.

I'm assuming you've done some Android development before, if not then get the basics down before coming back and trying to code your battery app.