webOS Nation Forums >  webOS Discussion >  webOS Discussion Lounge > [PC App] webOS Charge Monitor
[PC App] webOS Charge Monitor
  Reply
Like Tree8Likes
  • 6 Post By GMMan
  • 1 Post By Rnp
  • 1 Post By GMMan

 
Thread Tools Display Modes
Old 10/22/2012, 06:48 PM   #1 (permalink)
Member
 
GMMan's Avatar
 
Posts: 2,090
Default [PC App] webOS Charge Monitor

Here's a simple app I made in a day for the purpose of displaying charging status of attached webOS devices. It has been tested on the webOS 2.x emulator, and on my 3.0.5 TouchPad. That means it will work for Pre2, Veer, Pre3, and TouchPad. I have not tested it on any 1.x devices (I don't have any), but as long as those devices have the same service calls, the app should work with them.



This release is for PC only, because it relies on the .NET Framework. If you can get it working on Mono, good for you. You will also need a working copy of Novacom installed. Readme is included. Make sure you read it.

An interesting feature of this app is it can monitor battery status remotely. That is, if your system's Novacom service can detect your device, you can use this app with it, even if it is not connected directly via USB. Look at this thread for info on Novacom over network: https://developer.palm.com/distribut...?f=119&t=19787. If you decide to try this and bind Novacom to a different address/port, in the "Select Device..." dialog box is a "Controller..." button, where you can specify the address and port of the Novacom service.

Updated: fixed inconsistent status querying
Attached Files
File Type: zip NovaChargeMonitor.zip (396.5 KB, 41 views) Email Attachment
__________________
Contact: @GMMan_BZFlag (me on Twitter) | webOS onTap | @webOSonTap
webOS Releases: Change your App Catalog country: TouchPad/PC | TouchPad/webOS Resources | Search suggestion patch for browser | Cycling Email Notifications | Don't Doctor! Make a good support request. | How to post logs | webOS Charge Monitor

I will be busy, so I may not be able to provide private support.

Last edited by GMMan; 10/22/2012 at 07:12 PM.
GMMan is offline   Reply With Quote
Liked by Rnp, xandros9, kataran and 3 others like this.
Old 10/23/2012, 01:04 AM   #2 (permalink)
Member
 
Posts: 1,558
Default

nice one. if i would charge via usb, but sadly i'm too anxious using the usb port cause my pre- display failed after usbport crack.
gizmo21 is online now   Reply With Quote
Old 10/23/2012, 12:50 PM   #3 (permalink)
Member
 
GMMan's Avatar
 
Posts: 2,090
Default

I configured NovacomD according to the thread linked above, and here is a screenshot of the charge monitor getting charging status remotely.



I'll see if I can get a screenshot of charging via wall power some time.
__________________
Contact: @GMMan_BZFlag (me on Twitter) | webOS onTap | @webOSonTap
webOS Releases: Change your App Catalog country: TouchPad/PC | TouchPad/webOS Resources | Search suggestion patch for browser | Cycling Email Notifications | Don't Doctor! Make a good support request. | How to post logs | webOS Charge Monitor

I will be busy, so I may not be able to provide private support.
GMMan is offline   Reply With Quote
Old 10/23/2012, 01:55 PM   #4 (permalink)
Member
 
RumoredNow's Avatar
 
Posts: 1,757
Default

Outstanding.

That's a very outside the box idea. Love it, downloading it, plan to use it soon.

__________________
LG Nexus 4 rooted, unlocked, running Pure Google Jelly Bean 4.2.2 w/ franco.Kernel M2
Samsung Galaxy Nexus rooted, unlocked, testing Ubuntu Touch Developer Preview (dailies)
HP TouchPad running webOS 3.0.5 + UberKernel + LunaCE 4.9.5 Beta
RumoredNow is offline   Reply With Quote
Old 10/23/2012, 02:28 PM   #5 (permalink)
Rnp
Member
 
Rnp's Avatar
 
Posts: 1,092
Default

Wow! Close to perfect!

Better than this, only calibrating the devices!


Best Regards...
__________________
The Dog Is The Manīs Best Friend... Because Is The Only That Is Not Looking To Smartphone While We Talking!
Rnp is offline   Reply With Quote
Liked by RumoredNow likes this.
Old 10/23/2012, 06:19 PM   #6 (permalink)
Member
 
Posts: 45
Default

Does this work when the device is fully discharged? I'm wondering if it can help all of the people with dead touchpads that won't charge. Maybe this can give us some insight into what is going on.
tony20 is offline   Reply With Quote
Old 10/23/2012, 06:57 PM   #7 (permalink)
Member
 
GMMan's Avatar
 
Posts: 2,090
Default

Quote:
Originally Posted by tony20 View Post
Does this work when the device is fully discharged? I'm wondering if it can help all of the people with dead touchpads that won't charge. Maybe this can give us some insight into what is going on.
Sorry, no. I could implement polling charging info from the bootloader, but I'm not sure how stable my Novacom library is and I don't want to risk messing up anyone's device on a low level.
__________________
Contact: @GMMan_BZFlag (me on Twitter) | webOS onTap | @webOSonTap
webOS Releases: Change your App Catalog country: TouchPad/PC | TouchPad/webOS Resources | Search suggestion patch for browser | Cycling Email Notifications | Don't Doctor! Make a good support request. | How to post logs | webOS Charge Monitor

I will be busy, so I may not be able to provide private support.
GMMan is offline   Reply With Quote
Old 10/23/2012, 09:11 PM   #8 (permalink)
Member
 
Posts: 241
Default

Not to be overly critical, but wouldn't it have been better if you'd use enyojs instead of .net? That way it would be useable on stuff other than windows, and would kinda follow along with the whole webos thing a little more closely.
I would love to see more open standard coding in the future.
creepingmee is offline   Reply With Quote
Old 10/23/2012, 09:25 PM   #9 (permalink)
Member
 
GMMan's Avatar
 
Posts: 2,090
Default

Quote:
Originally Posted by creepingmee View Post
Not to be overly critical, but wouldn't it have been better if you'd use enyojs instead of .net? That way it would be useable on stuff other than windows, and would kinda follow along with the whole webos thing a little more closely.
I would love to see more open standard coding in the future.
In the usual case it should be done in Java. However, while Java and C# are similar in syntax, they are not completely the same and their libraries are different. I only know C#, and it'll take some effort for me to learn about Java libraries, so that's why you get .NET for now. Plus I don't know about how I'll distribute the Novacom library for Java, since Palm only has it with Novacom packages and you'd have to do some configuration to include it.

AFAIK Enyo doesn't do binary streams. The app uses a local socket connection to the Novacom server (the same way as regular Novacom does it), and there's some binary bit mangling and stuff like that necessary for the communications to work. Also, doing it in JavaScript would just be slow.
__________________
Contact: @GMMan_BZFlag (me on Twitter) | webOS onTap | @webOSonTap
webOS Releases: Change your App Catalog country: TouchPad/PC | TouchPad/webOS Resources | Search suggestion patch for browser | Cycling Email Notifications | Don't Doctor! Make a good support request. | How to post logs | webOS Charge Monitor

I will be busy, so I may not be able to provide private support.
GMMan is offline   Reply With Quote
Liked by Rnp likes this.
Thanked By: Rnp
Old 10/24/2012, 10:50 AM   #10 (permalink)
Member
 
kataran's Avatar
 
Posts: 550
Default

thank you.....it works great.....
__________________
32G Touchpad
iphone 5 on sprint wouldn't leave a good relationship
kataran is offline   Reply With Quote
Reply

 

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0