maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] BatteryGraph (https://talk.maemo.org/showthread.php?t=44831)

jwittema 2010-02-17 11:18

[Announce] BatteryGraph
 
1 Attachment(s)
I wrote a program BatteryGraph for monitoring battery status on a Nokia N900.

BatteryGraph will monitor the battery statistics and shows the results in a graph. Also monitors average cpu load and network connection.

It's available for download from http://maemo.jeroenwitteman.com/BatteryGraph/
(I'm trying to get it in the maemo extras repository)
EDIT: it is now available in Extras-testing and Extras.

As this is the first release the usual warnings apply, installing this program may harm your device in many ways (though it is running fine on my N900 :) )

All comments are welcome

Changelog v 0.3.2 - 2010 April 8
  • Changed fullscreen toggle to double click and menu option
  • Added option to configure drawing of charging bars
  • Small layout changes for upcoming Qt4.6

Changelog v 0.3.1 - 2010 March 28
  • Added option to export entire graph to png image file

Changelog v 0.3.0 - 2010 March 17
  • Changed background daemon to record battery status only on change instead of regular interval
  • Changed background daemon to record network connection status, charging status and average cpu load as well
  • Changed graph to display the new data sources (network connection, charging, cpuload)
  • Changed grid layout
  • Added kinetic scrolling
  • Added option to choose zoomfactor
  • Added option to disable/enable showing cpu load, network connection and charging status
  • Added preferences screen
  • Added option to limit maximum age of database records
  • Added option to select scrollback history size
  • Added option to configure colors of the different graph elements
  • Added option to configure cpu load scale
  • Optimized graph drawing code for kinetic scrolling performance
  • Rearranged main screen layout
  • Lots of small changes

Changelog v 0.2.2 - 2010 February 21
  • Added option to move forwards/backwards in time by clicking on the right/left side of the graph (clicking in the center will toggle fullscreen)
  • Added minimum and maximum value for voltage and charge in the graph
  • Added database statistics

nibbles 2010-02-17 12:21

Re: [Announce] BatteryGraph
 
very cool , will be incredibly useful, not sure if this much but if you could capture the 'top' information at that time in the log's or a way of seeing when certain process's where started. It would be cool to see the 30% battery drop in a time period was also in the period you started media player for example.

Corwin 2010-02-17 13:19

Re: [Announce] BatteryGraph
 
Sorry to spam, but if you like it, click 'Thanks' under jwittemas post :)

Spotfist 2010-02-21 10:34

Re: [Announce] BatteryGraph
 
where can i download? link is broke :(

jwittema 2010-02-21 15:00

Re: [Announce] BatteryGraph
 
Released a new version today with some updates.
Download from http://maemo.jeroenwitteman.com/BatteryGraph/ (for now)

I have uploaded it to extras-devel, but I'm not listed as the package maintainer (still pending :confused:) so I cannot promote it to testing.
Anyone knows how to fix that? See http://maemo.org/packages/view/batterygraph/

Changelog 0.2.2-1
  • Added option to move forwards/backwards in time by clicking on the right/left side of the graph (clicking in the center will toggle fullscreen)
  • Added minimum and maximum value for voltage and current in the graph
  • Added database statistics

gohan2091 2010-02-21 18:43

Re: [Announce] BatteryGraph
 
What's the difference between this and battery eye? Which is better?

ndi 2010-02-21 21:12

Re: [Announce] BatteryGraph
 
Didn't get battery graph, but i use battery-eye and it's very nice, better graph, one graph per detail (voltage, percent, mAh estimate), eats zero battery and the graph can be swooped back about a week or so ago. Kinetic scrolled and everything. Zero issues.

jwittema 2010-02-22 11:13

Re: [Announce] BatteryGraph
 
BatteryGraph version 0.2.2-1 is now in Extras-testing. You can vote for it here.

juise- 2010-02-23 12:03

Re: [Announce] BatteryGraph
 
Quote:

Originally Posted by jwittema (Post 531878)
I wrote a program BatteryGraph for monitoring battery status on a Nokia N900.

I was going to suggest that there used to be a similarly named app for Palm OS a long time ago. But it seems that it's made by you also.

I am currently developing quite similar app called battery-eye, and I must admit that it is inspired by a vague memory that I used to have something similar on my Palm m500 several years ago... ;)

Mr. Incredible 2010-02-23 14:28

Re: [Announce] BatteryGraph
 
I'm also using battery-eye. It runs without problems and is pretty nice.

jwittema 2010-02-24 15:56

Re: [Announce] BatteryGraph
 
Quote:

Originally Posted by juise- (Post 542521)
I was going to suggest that there used to be a similarly named app for Palm OS a long time ago. But it seems that it's made by you also.

BatteryGraph for PalmOS is indeed also made by me (and is still available)
I have been using my Sony Clie TH-55 until I got my N900 and still use some Palm apps (still no good alternative for DateBk5) with Garnet VM on the N900.

ndi 2010-02-24 19:22

Re: [Announce] BatteryGraph
 
Small world, I guess.

les_garten 2010-02-24 20:08

Re: [Announce] BatteryGraph
 
Quote:

Originally Posted by jwittema (Post 544518)
BatteryGraph for PalmOS is indeed also made by me (and is still available)
I have been using my Sony Clie TH-55 until I got my N900 and still use some Palm apps (still no good alternative for DateBk5) with Garnet VM on the N900.

Hey, not clear how to get GarnetVM on the N900. I didn't see it in the repositories. Do you go to that site and install the OS2008 version?

Rob1n 2010-02-24 20:56

Re: [Announce] BatteryGraph
 
Quote:

Originally Posted by les_garten (Post 544832)
Hey, not clear how to get GarnetVM on the N900. I didn't see it in the repositories. Do you go to that site and install the OS2008 version?

Yes, there's no Maemo5 version but the OS2008 seems to be working fine.

jr1415us 2010-02-24 23:31

Re: [Announce] BatteryGraph
 
is GarnetVM optified?

Rob1n 2010-02-25 09:03

Re: [Announce] BatteryGraph
 
Quote:

Originally Posted by jr1415us (Post 545111)
is GarnetVM optified?

No - it takes up about 3M of rootfs space. I optified it manually:
Code:

sudo gainroot
mv /usr/bin/gvm /opt
ln -s /opt/gvm /usr/bin/gvm


Helmuth 2010-03-03 15:41

Re: [Announce] BatteryGraph
 
Great work! :)

Some small bugs, but it seems okay. Keep going! :)

Oh, and please. The text for the current seems to be to darkly tinted. It's hard to read on the black background. Could it be a good idea to have here a light blue?

Or perhaps more technical colors... during my studies Voltage was ever blue, Current ever red. You could use green for the percentage.
But, thats only colors... not so important. :rolleyes:

Patroclo 2010-03-08 19:33

Re: [Announce] BatteryGraph
 
Hi, I guess that the graphs are done reading some data files. I would like to ask in which directory the data files are written and if the old ones can be deleted, and, eventually, if they are to be deleted by hand or if it is performed automatically.

jwittema 2010-03-09 09:39

Re: [Announce] BatteryGraph
 
Data is stored in a sqlite database which is located in the file /home/user/.BatteryGraph/BatteryGraphDB.sqlite

Currently the database is not cleaned automatically. In the next version of BatteryGraph you will be able to limit the maximum age of records in the database.

les_garten 2010-03-09 16:50

Re: [Announce] BatteryGraph
 
Quote:

Originally Posted by jwittema (Post 560939)
Data is stored in a sqlite database which is located in the file /home/user/.BatteryGraph/BatteryGraphDB.sqlite

Currently the database is not cleaned automatically. In the next version of BatteryGraph you will be able to limit the maximum age of records in the database.

Can you delete a file and start the db over again?

jwittema 2010-03-10 09:58

Re: [Announce] BatteryGraph
 
Quote:

Originally Posted by les_garten (Post 561427)
Can you delete a file and start the db over again?

Yes, you can delete the database file

Mazi 2010-03-10 10:09

Re: [Announce] BatteryGraph
 
really great app// love this..

thanx for that...

jwittema 2010-03-17 11:15

Re: [Announce] BatteryGraph
 
1 Attachment(s)
Released a major update today.
Version 0.3.0 can be found in extras testing
See the website for more information (faq, manual, screenshots)

Changelog
  • Changed background daemon to record battery status only on change instead of regular interval
  • Changed background daemon to record network connection status, charging status and average cpu load as well
  • Changed graph to display the new data sources (network connection, charging, cpuload)
  • Changed grid layout
  • Added kinetic scrolling
  • Added option to choose zoomfactor
  • Added option to disable/enable showing cpu load, network connection and charging status
  • Added preferences screen
  • Added option to limit maximum age of database records
  • Added option to select scrollback history size
  • Added option to configure colors of the different graph elements
  • Added option to configure cpu load scale
  • Optimized graph drawing code for kinetic scrolling performance
  • Rearranged main screen layout
  • Lots of small changes

Helmuth 2010-03-17 20:52

Re: [Announce] BatteryGraph
 
Wow, locks great! :)

I installed it a couple of minutes ago. So far so good. Seems to work fine.

I've got just one small Problem:
1. go to the Options menu
2. tab on the "Database age limit" Dropdown Menu

Expected outcom:
the before selected Option should be selected as default

Actual outcom:
always the first Option is selected

The same problem with the "Scrollback history".

But everyting else works just fine! :) I think I will vote soon.

R.Habrat 2010-03-17 21:26

Re: [Announce] BatteryGraph
 
Thanks for developing that!

I would like to ask for a small enhancement:
It would be nice to have the possibility of turning off the graph lines for Percent and Volts during the charge period (instead of leaving them at last value level and then making them jump at the end of charging).

jwittema 2010-03-18 18:55

Re: [Announce] BatteryGraph
 
Quote:

Originally Posted by Helmuth (Post 571036)
Actual outcom:
always the first Option is selected

The same problem with the "Scrollback history".

Hmm, weird. I can only reproduce this for "Database age limit".
For scrollback history the correct option is always highlighted on my device.

The weird thing is, when you scroll down the options dialog a little bit (still leaving the option "Database age limit" in view) it works like it should for "Database age limit".

Looks like a Qt bug to me :confused:

Quote:

Originally Posted by R.Habrat (Post 571089)
I would like to ask for a small enhancement:
It would be nice to have the possibility of turning off the graph lines for Percent and Volts during the charge period (instead of leaving them at last value level and then making them jump at the end of charging).

In version 0.3.0 this has already changed because the background daemon no longer polls the battery status on a regular interval. Instead it receives a dbus event when the values change resulting in a diagonal line for percentage and voltage during charge.

R.Habrat 2010-03-20 18:11

Re: [Announce] BatteryGraph
 
I see it works way better than with pure diagonal: if the device is used during charging, the voltage goes up with real values - surely there are many dbus events. It's easy to see it with zoom 0.5. The diagonal is used only when the device is idle.

F2thaK 2010-03-22 09:23

Re: [Announce] BatteryGraph
 
Check out my Youtube vid for this app:

http://i1.ytimg.com/vi/p7K5fJ7-JoM/hqdefault.jpg

jwittema 2010-03-27 13:00

Re: [Announce] BatteryGraph
 
BatteryGraph version 0.3.0 is now available in Extras.

Thanks to all testers/voters!

Spotfist 2010-03-27 15:22

Re: [Announce] BatteryGraph
 
any ideaas on how I could get the data into excel or even txt? maybe like an output option?

jwittema 2010-03-27 15:32

Re: [Announce] BatteryGraph
 
Quote:

Originally Posted by Spotfist (Post 584325)
any ideaas on how I could get the data into excel or even txt? maybe like an output option?

The answer to your question can be found in the FAQ

Spotfist 2010-03-27 17:35

Re: [Announce] BatteryGraph
 
sorry, I am a complete dunce.

In my defenece I did search ;)

jwittema 2010-03-28 11:51

Re: [Announce] BatteryGraph
 
BatteryGraph version 0.3.1 can now be found in Extras-Testing

Changelog
  • Added option to export entire graph to png image file

The entire graph will be saved as a (very wide) png image in /home/user/MyDocs/.images/BatteryGraph

Too bad you can't attach images this wide on this forum :(
Look here for an example image.

Robb 2010-04-03 14:16

Re: [Announce] BatteryGraph
 
Using 0.3.1.

I must say, you have done a great job.

I have an issue with switching the graph to dispaly in full or partial screen mode.
The problem is that when sliding the graph left & right it will sometimes switch between these modes (full / partial) all by itself.
And every time it switches modes I have to scroll from the beginning to find the interesting spot.

So this is 2 problems:
1) accidental switching.
2) after switching - graph is reset to beggining.

fms 2010-04-03 15:02

Re: [Announce] BatteryGraph
 
One tiny request:
Could you *not* draw the Charger status on the graph? It appears to be a binary value anyway, so it is sufficient to show it by marking time axis in green.

lcuk 2010-04-03 15:26

Re: [Announce] BatteryGraph
 
hey :)
cool looking app, do I need to keep it open/running to monitor the battery, or is it performed by a daemon in the background?

Helmuth 2010-04-03 15:29

Re: [Announce] BatteryGraph
 
Quote:

Originally Posted by lcuk (Post 593832)
hey :)
cool looking app, do I need to keep it open/running to monitor the battery, or is it performed by a daemon in the background?

There is a daemon in the background. :)

jwittema 2010-04-04 12:36

Re: [Announce] BatteryGraph
 
Quote:

Originally Posted by Robb (Post 593769)
I have an issue with switching the graph to dispaly in full or partial screen mode.
The problem is that when sliding the graph left & right it will sometimes switch between these modes (full / partial) all by itself.
And every time it switches modes I have to scroll from the beginning to find the interesting spot.

So this is 2 problems:
1) accidental switching.
2) after switching - graph is reset to begining.

I was annoyed by this too :). So this behavior will be changed in next release. It will require a double click to toggle fullscreen mode and there will also be a menu option to toggle fullscreen (for those who can't doubleclick :) )

Quote:

Originally Posted by fms (Post 593815)
One tiny request:
Could you *not* draw the Charger status on the graph? It appears to be a binary value anyway, so it is sufficient to show it by marking time axis in green.

This will be configurable in next release.

Thank you for your suggestions.

exe 2010-04-05 18:55

Re: [Announce] BatteryGraph
 
Quote:

Originally Posted by jwittema (Post 594858)
I was annoyed by this too :). So this behavior will be changed in next release.

Was about to comment on this, good to know you are aware :)

A few possible suggestions:

- Add a legend for colors in the exported image, as it is now i wouldnt know if a user set a color for something i cannot see (not too important)

- Add a background color selection (could be easier to adjust colors for the colorblind like me lol), and also allow for adjusting transparency values (if possible, it would be nice to have a transparent wifi/grps such that colors dont interfere with each other)

- Allow for splitting the exported graph into chunks (as a programmer i realize that to make this really versatile, you would have to define a start time and a period for each of the chunks but it would primarily be helpful to compare day-by-day battery consumption so a fixed daily period would do wonders for a start ;)

Thanks very much for the great program :)

gaute 2010-04-06 09:50

Three suggestions: network traffic, call duration and cell signal strength
 
I have three suggestions:

- Logging network traffic on either interface (GPRS/3G and WLAN, i.e. two graphs: one for 3G/GPRS and one for WLAN, both combining RX and TX bytes)
- Logging call duration
- Logging cell signal strength

I posted them with somewhat more info here:
https://garage.maemo.org/tracker/ind...1351&atid=5007

As to how to represent them in the graph... cell signal strength is obvious, a line. Call duration and network traffic is somewhat similar, could be a line or bar to show bytes/minutes per interval/period (fixed/user configured/dynamic according to zoom level), or (esp. for call duration) it could be a line showing accumulated call time since the previous (full) charge, as this is a value commonly advertised.


All times are GMT. The time now is 15:59.

vBulletin® Version 3.8.8