maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] maeFat: Weight Tracking Tool (https://talk.maemo.org/showthread.php?t=70609)

Ken-Young 2011-03-03 12:57

[Announce] maeFat: Weight Tracking Tool
 
I've written (in C/gtk+) a simple little app I call maeFat, which is intended to help you keep track of how your weight is changing. It is currently in the Extras-devel repository, but I plan to push it into Extras-tesing in about a week.

maeFat is similar to the Hacker Diet tools, but it is optimized for the N900. It uses Hildon widgets, and the keyboard is not needed to enter daily weight data.

Documentation for the app is available in the Maemo wiki:

http://wiki.maemo.org/MaeFat

I hope this app is useful to someone besides me. If you use it and want some changes implemented, please let me know!

sondjata 2011-03-03 14:48

Re: [Announce] maeFat: Weight Tracking Tool
 
Mee-fat for Meego. lol

djdas 2011-03-03 14:49

Re: [Announce] maeFat: Weight Tracking Tool
 
Hi,
thank you very much for this application, I'm currently using WeightJinni but yours seems a bit more user friendly :)
I noticed two things:
1) in the Settings screen there are some problems editing values of height and target weight using hardware kbd (you have to enter data "from right to left" pointing the caret on the left of the last digit, otherwise current digits are overwritten by the new ones entered);
2) after closing and reopening (I entered only the settings and my current weight) the application doesn't do anything (only black screen, no graph display and it doesn't react to any input);
Keep up the good work :)
bye!

Ken-Young 2011-03-03 18:44

Re: [Announce] maeFat: Weight Tracking Tool
 
Quote:

Originally Posted by djdas (Post 959715)
Hi,
thank you very much for this application, I'm currently using WeightJinni but yours seems a bit more user friendly :)
I noticed two things:
1) in the Settings screen there are some problems editing values of height and target weight using hardware kbd (you have to enter data "from right to left" pointing the caret on the left of the last digit, otherwise current digits are overwritten by the new ones entered);

Yes, unfortunately this is a bug with the gtk widgets running on Maemo 5. I don't think I can fix it. Luckily, the on-screen keyboard works properly, and even if you must struggle with the hardware keyboard, you normally will not need to re-enter your height and traget weight very often.

Quote:

Originally Posted by djdas (Post 959715)
2) after closing and reopening (I entered only the settings and my current weight) the application doesn't do anything (only black screen, no graph display and it doesn't react to any input);
Keep up the good work :)
bye!

Hmmm - I've not seen that. Could you email me the contents of the settings file and data file (orrery.moko@gmail.com) so I can try to reproduce the bug and fix it (feel free to change the weight and height data!) ?

Also, if you can dump your data from WeightJinni, I can convert it to the format that maeFat uses, and send it back to you.

djdas 2011-03-04 08:58

Re: [Announce] maeFat: Weight Tracking Tool
 
Quote:

Originally Posted by Ken-Young (Post 959875)
Yes, unfortunately this is a bug with the gtk widgets running on Maemo 5. I don't think I can fix it. Luckily, the on-screen keyboard works properly, and even if you must struggle with the hardware keyboard, you normally will not need to re-enter your height and traget weight very often.

Why don't you use Hildon widgets instead of plain GTK widgets? I think the former should integrate better with the whole system. I'll download the source code and in my spare time (very low ATM) I could try to help you contributing some sources (I don't have the build system so I'll try to send some "blind" patches ;) )


Quote:

Originally Posted by Ken-Young (Post 959875)
Hmmm - I've not seen that. Could you email me the contents of the settings file and data file (orrery.moko@gmail.com) so I can try to reproduce the bug and fix it (feel free to change the weight and height data!) ?

Also, if you can dump your data from WeightJinni, I can convert it to the format that maeFat uses, and send it back to you.

Well, I think I have found the problem: enetering only ONE weight data (just one row in the data file) the program doesn't start correctly, I entered 2 or more items and everything worked well.
I noticed there could be two problems:
1) it seems if you don't enter any comment some char pointer goes in buffer overflow because all the other comments in the graph become crap strings (and the data file will be corrupted in strings);
2) there is a strange behaviour with weight amounts, I entered 4 values in 4 different dates but when I reopen the program these values are rounded or something else (i.e I entered 69,5 Kg on February 9th but when I reopen the program, the data chart and the log show only 69 Kg, the same for other values in other days so the log and the chart show uncorrect values);

Don't mind about my current data, I started my weight control program last month and I have only 4 samples :)
Thank you in advance, bye! :)

Ken-Young 2011-03-04 11:43

Re: [Announce] maeFat: Weight Tracking Tool
 
Quote:

Originally Posted by djdas (Post 960332)
Why don't you use Hildon widgets instead of plain GTK widgets? I think the former should integrate better with the whole system. I'll download the source code and in my spare time (very low ATM) I could try to help you contributing some sources (I don't have the build system so I'll try to send some "blind" patches ;) )

I use Hildon widgets for everything except the height and target weight. The problem with Hildon widgets for entering a floating point value is that you must anticipate the full range of permissible values, and the granularity with which one might want to enter the data, and then populate an enormous scrolling widget with every possible value. For the daily weight, I can use the last weight as a guess. But I have no initial guess for the height and target weight.


Quote:

Originally Posted by djdas (Post 960332)
Well, I think I have found the problem: enetering only ONE weight data (just one row in the data file) the program doesn't start correctly, I entered 2 or more items and everything worked well.
I noticed there could be two problems:
1) it seems if you don't enter any comment some char pointer goes in buffer overflow because all the other comments in the graph become crap strings (and the data file will be corrupted in strings);

I don't see that behavior - I only have a few comments in my table, and it works properly. Could you email me an example of a table that exibits the bad behavior?

Quote:

Originally Posted by djdas (Post 960332)
2) there is a strange behaviour with weight amounts, I entered 4 values in 4 different dates but when I reopen the program these values are rounded or something else (i.e I entered 69,5 Kg on February 9th but when I reopen the program, the data chart and the log show only 69 Kg, the same for other values in other days so the log and the chart show uncorrect values);

Don't mind about my current data, I started my weight control program last month and I have only 4 samples :)
Thank you in advance, bye! :)

Thanks for the detailed error report. I don't use metric units myself, so there may be bugs I have not tracked down. I'll try to find the rounding problem you mentioned. I found another couple of very minor bugs, so I'll be uploading a new version in a few days.

Thanks again for giving the app a try. I hope I can whip it into good enough shape for it to be useful to at least one other person.

morto 2011-03-04 14:47

Re: [Announce] maeFat: Weight Tracking Tool
 
Quote:

Originally Posted by djdas (Post 960332)
2) there is a strange behaviour with weight amounts, I entered 4 values in 4 different dates but when I reopen the program these values are rounded or something else (i.e I entered 69,5 Kg on February 9th but when I reopen the program, the data chart and the log show only 69 Kg, the same for other values in other days so the log and the chart show uncorrect values)

I had the same problem and I think changing the decimal mark of the data from comma to point has solved it.

EDIT: Hmm, It seems that it did not entirely solve the problem. Is it possible that maefat uses only point when parsing the data and writing data with regional standard decimal mark? I've changed my regional settings to a country in which point is a standard and now it seems to be fine.

Ken-Young 2011-03-07 04:34

Re: [Announce] maeFat: Weight Tracking Tool
 
I've uploaded a new version with some bug fixes.

tplastic 2011-03-07 12:37

Re: [Announce] maeFat: Weight Tracking Tool
 
Couple of bugs I've found:
* If I add weight points in non-chronological order, for example a data point today then a data point from week back, the graph becomes messy zig-zag. The program does not sort the data timewise before drawing the graph?
* If I try to delete the last data point from log-screen, the program just shuts down and does not remove the selected data point. Could this possibly be related to a comma/dot separator problem?

Also the two bugs already mentioned seems to be still present in the latest version:
* When using SI-units (kg's, cm's) and/or comma as a separator, the entered weights get rounded into full integers.
* Setting the height and target weight is a pain with the physical keyboard. I prefer to have the on-screen keyboard disabled.

Thanks anyway for the good work! I'll be waiting for the next version.

n-mi 2011-03-07 18:22

Re: [Announce] maeFat: Weight Tracking Tool
 
Hi,

Do you have plans to add translations to maeFat ? If so, I could do a french translation (my gf has a N900 too but doesn't read english, and this app would be interesting for her).


All times are GMT. The time now is 13:05.

vBulletin® Version 3.8.8