webOS Nation Forums >  Homebrew >  webOS homebrew apps > Better BAC
Better BAC

  Reply
 
LinkBack Thread Tools Display Modes
Old 01/27/2010, 06:53 PM   #1 (permalink)
Member
 
Join Date: Aug 2009
Posts: 13
Likes Received: 0
Thanks: 3
Thanked 4 Times in 4 Posts
Default Better BAC

***The newest version (0.9.3 as of this writing) is available as a Beta Application. I do not plan to upload this or any future version as homebrew.***

Right now, it's in private beta (not in the RSS feeds), but if you're reading this, you're welcome to download it.

If, for some reason, you really want this version as homebrew, let me know and I can upload it.

Special thanks to everyone who downloaded my app here, and to Precentral for hosting it.

Below is the information on the last homebrew version:

Better BAC
This app calculates and keeps track of your estimated BAC in real time. Add the drinks you've had, and the app will do the rest!

Download this app in the PreCentral Homebrew App Gallery

Features
  • Real-time, always updated BAC estimate
  • Calculated time until BAC is at the a predefined limit
  • Calculated time until BAC is at zero
  • List of drinks that are still "in your system"
  • *NEW* List of drinks that are no longer in your system going back a predefined number of days or drinks
  • *NEW* Graph your BAC over 24 hours, or through all your saved drinks!
  • *NEW* Add drinks from any time in the last 24 hours
  • Tap a drink in your list to "have another" with the same volume and abv
  • Swipe drinks to remove from list if entered in error
  • Two calculation methods: Widmark or Watson (experimental)

This program is licensed under the GPL version 3.

This program will always be free of charge. I made this app for fun, not for profit. If you appreciate this app, then give your cab driver or designated driver a few extra bucks.

Special thanks to Chelsea Riedy for making the app icon! The icon is licensed under the
Creative Commons Attribution-Noncommercial-Share
Alike 3.0 United States License

All values calculated by this program are estimated.

Changelog since 0.6.0
Version 0.8.2
Auto-refresh interval set to 30 seconds
Event listeners are now correctly cleared
Fixed a bug that prevented the app from auto refreshing when first opened
pop-up dialogs are displayed for database errors and invalid inputs
Removed "Graph Drinks" from the app menu
Rearranged menu items
Preferences "Save" button now reads "Done"
Changed default height to 68
Moved "Add drink" to footer and added "Graph" button in footer
Added 12 hour graph period, which is now the default

Version 0.7.3
Each scene has it's own help page.
Fixed a bug that prevented history from being cleared.

Version 0.7.2 (unreleased)
Removed "Add a drink" from list widget
Added "Add a drink" button between the status box and the drink list
"Graph drinks" menu item renamed to "Graph BAC"

Version 0.7.1 (unreleased)
All drinks are in a single list
List is divided into current/history by a divider function
Drinks at the top are the newest drinks
Drinks may be graphed (all or 24h)
Time to zero/limit is displayed as #h #m instead of just total minutes
Added history preferences (max days / max drinks)

Version 0.7.0 (unreleased)
New app ID in anticipation of eventual app catalog release
App no longer continues to refresh while minimized
Added ability to add drinks from the past
Using Depot DB

Features planned for the next version
  • Put "Add drink" in floating footer
  • Add popups for feedback (on invalid drinks etc)
  • Add alarms on reaching limit/zero (can be turned off in prefs)

Known Issues
  • Due to rounding, the total of the individual drink BACs do not always equal the total BAC. This is only a display issue. The internal numbers are correct as far as I know.
  • I might have screwed something up with the Watson calculation. It gives reasonable values, but it doesn't seem right to me. It would be awesome if anyone who is good with numbers (especially unit conversions--that's where I get confused) and wants to take a peak at the source (if you can't read code, but still want to help, just let me know and I'll write it all out for you).

To do someday
  • Allow manual setting of Widmark constant
  • Save "favorite" drink templates

Last edited by thoughtcriminal; 08/06/2010 at 10:06 PM. Reason: Announced beta version
thoughtcriminal is offline   Reply With Quote
Old 01/29/2010, 05:15 PM   #2 (permalink)
Member
 
Join Date: Aug 2009
Posts: 13
Likes Received: 0
Thanks: 3
Thanked 4 Times in 4 Posts
Default Better BAC

This was a double post of the main post.

Last edited by thoughtcriminal; 02/05/2010 at 09:35 PM. Reason: Cut duplicate text to one line to save thread space
thoughtcriminal is offline   Reply With Quote
Old 02/05/2010, 04:46 PM   #3 (permalink)
Tazmorator (Chief Mod)
 
berdinkerdickle's Avatar
 
Join Date: Dec 2005
Location: P|C when the light below is green. Otherwise; I could be just about anywhere.
Posts: 10,721
Likes Received: 223
Thanks: 3,116
Thanked 2,773 Times in 1,851 Posts
Default

Sorry you were having trouble with your posts.

I had to remove some of the links, but they're in my quote of your post below.

Hopefully it's up now.

Quote:
Originally Posted by thoughtcriminal View Post
Better BAC
I made this app because I think it's better than most BAC calculators out there.

This program is licensed under the GPL version 3.

This program will always be free of charge. I made this app for fun, not for profit. If you appreciate this app, then give your cab driver or designated driver a few extra bucks.

Special thanks to Chelsea Riedy for making the app icon! The icon is licensed under the
Creative Commons Attribution-Noncommercial-Share
Alike 3.0 United States License


I probably should mention that this is a program for estimating your blood alcohol level. It should never be considered proof that you are able to safely or legally operate a motor vehicle. When in doubt, always use a designated driver.

Changelog

Version 0.6.0 (01/27/2010)
  • Added "Watson" method of calculation (experimental)

Version 0.5.1 (unreleased)
  • Updated about/help to use proper css

Version 0.5.0 (unreleased)
  • Added a proper icon
  • Removed "Preferences" button and added "Preferences" to app menu
  • Added an "About" page available via the app menu.
  • Added a "Help" page available via the app menu.

Version 0.4.2 (unreleased)
  • Fixed a bug that prevented obsolete drinks from being removed from the list
  • Fixed a bug that prevented the bacDelta from being applied past the first drink

Version 0.4.1 (unreleased)
  • Fixed a bug that would drop the remainder of a bacDelta after removing a drink
  • Refactored lots of disorganized code
  • Individual drink BAC is now shown as "bac/originalBac"

Version 0.4.0 (unreleased)
  • Status automatically updates every minute
  • "Update Status" button has been removed
  • Drink list entry format has been rearranged and now includes the drink's individual BAC
  • Whenever BAC is decreased, the BAC of the oldest drink in the list is decreased
  • When the oldest drink's BAC reaches zero, it is removed from the list

Version 0.3.0 (unreleased)
  • Tapping a drink loads it as a new drink template
  • New drink scene includes BAC/time previews

Version 0.2.0 (unreleased)
  • Drink times are displayed in drink list
  • State is now stored via cookie
  • Drinks can no longer be re-ordered
  • Drink list is cleared when BAC is zero

Version 0.1.0 (unreleased)
  • Initial build
  • Preferences including gender, weight, legal limit
  • BAC calculation that can be manually updated via button press
  • Calculated time (in minutes) until BAC will equal the legal limit
  • Calculated time (in minutes) until BAC will equal zero
  • List of drinks displayed
  • Drinks can be re-ordered/deleted
  • Deleted drinks are removed from the current BAC calculation

Known Issues
  • Due to rounding, the total of the individual drink BACs do not always equal the total BAC. This is only a display issue. The internal numbers are correct as far as I know.
  • I might have screwed something up with the Watson calculation. It gives reasonable values, but it doesn't seem right to me. It would be awesome if anyone who is good with numbers (especially unit conversions) and wants to take a peak at the source (if you can't read code, but still want to help, just let me know and I'll write it all out for you).

TODO
  • Include in the about page a list of reasons the calculations are not (and cannot) be completely accurate.
  • Enter a drink time other than the current time
  • Allow manual setting of Widmark constant
  • Save "favorite" drink templates
  • Put "new drink" and "new drink from template" buttons in floating footer???



Quote:
Originally Posted by thoughtcriminal View Post
Better BAC
I made this app because I think it's better than most BAC calculators out there.

Check the "About" and "Help" sections in the app menu for more information.

This program is licensed under the GPL version 3.

This program will always be free of charge. I made this app for fun, not for profit. If you appreciate this app, then give your cab driver or designated driver a few extra bucks.

Special thanks to Chelsea Riedy for making the app icon! The icon is licensed under the
Creative Commons Attribution-Noncommercial-Share
Alike 3.0 United States License


I probably should mention that this is a program for estimating your blood alcohol level. It should never be considered proof that you are able to safely operate a motor vehicle. When in doubt, always use a designated driver.

Changelog

Version 0.6.0 (01/27/2010)
  • Added "Watson" method of calculation (experimental)

Version 0.5.1 (unreleased)
  • Updated about/help to use proper css

Version 0.5.0 (unreleased)
  • Added a proper icon
  • Removed "Preferences" button and added "Preferences" to app menu
  • Added an "About" page available via the app menu.
  • Added a "Help" page available via the app menu.

Version 0.4.2 (unreleased)
  • Fixed a bug that prevented obsolete drinks from being removed from the list
  • Fixed a bug that prevented the bacDelta from being applied past the first drink

Version 0.4.1 (unreleased)
  • Fixed a bug that would drop the remainder of a bacDelta after removing a drink
  • Refactored lots of disorganized code
  • Individual drink BAC is now shown as "bac/originalBac"

Version 0.4.0 (unreleased)
  • Status automatically updates every minute
  • "Update Status" button has been removed
  • Drink list entry format has been rearranged and now includes the drink's individual BAC
  • Whenever BAC is decreased, the BAC of the oldest drink in the list is decreased
  • When the oldest drink's BAC reaches zero, it is removed from the list

Version 0.3.0 (unreleased)
  • Tapping a drink loads it as a new drink template
  • New drink scene includes BAC/time previews

Version 0.2.0 (unreleased)
  • Drink times are displayed in drink list
  • State is now stored via cookie
  • Drinks can no longer be re-ordered
  • Drink list is cleared when BAC is zero

Version 0.1.0 (unreleased)
  • Initial build
  • Preferences including gender, weight, legal limit
  • BAC calculation that can be manually updated via button press
  • Calculated time (in minutes) until BAC will equal the legal limit
  • Calculated time (in minutes) until BAC will equal zero
  • List of drinks displayed
  • Drinks can be re-ordered/deleted
  • Deleted drinks are removed from the current BAC calculation

Known Issues
  • Due to rounding, the total of the individual drink BACs do not always equal the total BAC. This is only a display issue. The internal numbers are correct as far as I know.
  • I might have screwed something up with the Watson calculation. It gives reasonable values, but it doesn't seem right to me. It would be awesome if anyone who is good with numbers (especially unit conversions) and wants to take a peak at the source (if you can't read code, but still want to help, just let me know and I'll write it all out for you). Otherwise, I'll sit down and figure it all out eventually.

TODO
  • Include in the about page a list of reasons the calculations are not (and cannot) be completely accurate.
  • Enter a drink time other than the current time
  • Allow manual setting of Widmark constant
  • Save "favorite" drink templates
  • Put "new drink" and "new drink from template" buttons in floating footer???
__________________

Just call me Berd.

Last edited by berdinkerdickle; 02/05/2010 at 04:59 PM.
berdinkerdickle is offline   Reply With Quote
Old 07/05/2010, 10:25 PM   #4 (permalink)
Member
 
imop45's Avatar
 
Join Date: Jun 2009
Location: OKC
Posts: 222
Likes Received: 0
Thanks: 75
Thanked 183 Times in 130 Posts
Default

I love this app. +1. Thank you for doing this!
__________________
http://<font color="Navy">Poll: Requ...r webOS</font>

Coming soon-Calm Alarm
Quote:
Originally Posted by SirataXero View Post
Palm Pimp.
Comes with 2 free Pixis.
imop45 is offline   Reply With Quote
Reply

 

Tags
alcohol, bac, blood, calculator

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0