View Single Post
Posts: 22 | Thanked: 123 times | Joined on Feb 2010
#49
Originally Posted by Ronaldo View Post
how do i reset the app?
To reset all settings to default values you can remove the config file /home/user/.config/BatteryGraph/BatteryGraph.ini

To reset the database you can remove the database file /home/user/.BatteryGraph/BatteryGraphDB.sqlite (but then you would probably have to reset your device before the background daemon will record new data).

You can also drop the tables from the database with the following commands in a terminal (or only 1 if you want to delete something specific):
Code:
sqlite3 /home/user/.BatteryGraph/BatteryGraphDB.sqlite "drop table data"
sqlite3 /home/user/.BatteryGraph/BatteryGraphDB.sqlite "drop table connection"
sqlite3 /home/user/.BatteryGraph/BatteryGraphDB.sqlite "drop table cpu"
sqlite3 /home/user/.BatteryGraph/BatteryGraphDB.sqlite "drop table charging"
After that you would only need to run BatteryGraph to automatically recreate the tables.

PS the above is untested but should work
__________________
Developer of BatteryGraph
 

The Following 3 Users Say Thank You to jwittema For This Useful Post: