Please help! I am trying to understand math in zooper. I have a long equation that I want to use but I can't figure out why it is showing as numbers but will not perform the math... Do I need more $$ or parentheses?
This is the equation : (this is only the beginning to figure out julian date with time and accounting for dst)
[as]#D199912312400Td#+((12-(#DZ#/100)+$((#DH#-(-7))-(#DH#-(#DZ#/100)))>1?0:1$)/24)[/as]
This is my result :
[as]6356+((12-(-0500/100)+0)/24)[as]
How do I get the math to calculate??
Thank you!
Marieflower said:
Please help! I am trying to understand math in zooper. I have a long equation that I want to use but I can't figure out why it is showing as numbers but will not perform the math... Do I need more $$ or parentheses?
This is the equation : (this is only the beginning to figure out julian date with time and accounting for dst)
[as]#D199912312400Td#+((12-(#DZ#/100)+$((#DH#-(-7))-(#DH#-(#DZ#/100)))>1?0:1$)/24)[/as]
This is my result :
[as]6356+((12-(-0500/100)+0)/24)[as]
How do I get the math to calculate??
Thank you!
Click to expand...
Click to collapse
Put the whole equation between $( )$ just like that
[as]$(6356+((12-(-0500/100)+0)/24))$[/as]
Click to expand...
Click to collapse
in your case
Related
Here are the algorithms:
Points Plus = protein/10.94 + carbs/9.17 + fat/3.89 - fiber/12.49
Points Regular = calories/50 + fat/3.89 - fiber/5
can you post printscreen of the others applications ?
just to know if it's only a "basic" formula calc or not
Here ya go mate, here's the old app from 2004:
invalid attachment...
by the way, is it only a calculator ?
OK, this is really rough and ready. My first WM app so be gentle. Just a plain exe file, copy to device and run.
If it works I will try and "tart" it up a wee bit.
Wow, thank you. It works very well. Would you be willing to share your work/source code so i can learn what you did?
Here's a slightly prettier version.
I'll put the code etc up sometime tomorrow, but it basically is four text boxes with a button that converts each to numeric, applies the formula and shows it in the fifth text box.
This is all that I need. Thank you very much for your work.
I can't wait to take a look at the source ^>^
So you have to type this all in, before you can eat it? Or do you need this the calculate a total per day?
ajhvdb said:
So you have to type this all in, before you can eat it? Or do you need this the calculate a total per day?
Click to expand...
Click to collapse
I suppose one could do it this way but what I do is write the food i eat down as i eat it, then i calculate all the ponts later.
If i have too many points then i know to get rid of the foods with exessive points for the next day.
My particular goal is to eat well without tracking points - to train my mind to want healthy food choices.
Yup, the initial request was for a calculator to use on an item by item basis, which is what I have done.
The delay in releasing anything is that I got distracted by making it also do the old points scheme as well, which is nearly done. Hope to have a new exe file later tonight.
Are there any differences I should be aware of with regards to US and UK calculations?
OK, here's the latest version.
Does both old and new systems
maybe need to change name
WW are very strick on anything named with Weight Watchers. But this app is so great and I thank you so much.
deedee said:
OK, here's the latest version.
Does both old and new systems
Click to expand...
Click to collapse
Interesting hypothesis: Letting users feel free to track the old way and the new way.
Also, the US way to calculate was the formula I gave on the first post.. Not sure what the UK way would be..
Would you still be willing to upload your source for the second and third .exe you created, out of the three you have ? ^>^
EDIT: How about the name WW4WM? Also, I think you should make this 'prettier' and try to get it sponsored by Omarket and XDA Marketplace.
I've created a place for this on SourceForge
Link here.
When I can work out how to post the code there I will do so, in the meantime here's a zip of the entire DotNet tree. Only includes the latest version.
good job.
hope you will not have any probs with WW !
I've begin to do one too, but as you're the first releaser I give you the hand
;-)
i've included a possibility to have an .xml file in which you can add foods with some numbers and you can select this food in a droplist and then all fileds are prefilled.
maybe you can do something like that.
keep up this good job !
Thanks for the support, unfortunately I have sort of reached my developers skill limit for the moment.
Currently trying to work out how to do rounded buttons so the app looks nicer!
I can't wait to try your release too, corwin. I will try it s soon as released.
I plan on learning from your code too, dee.
Thank you both for all your work for my request.
if anyone is interested i'll keep making, but i don't want to steal jobs from deedee !
can you give me some more infos ? like what is in the "options" menu ?
and if you can give me a list of some predefined foods with already some values in "calories", "fat" and "fibers"...
Corwin9S said:
if anyone is interested i'll keep making, but i don't want to steal jobs from deedee !
can you give me some more infos ? like what is in the "options" menu ?
and if you can give me a list of some predefined foods with already some values in "calories", "fat" and "fibers"...
Click to expand...
Click to collapse
Feel free to carry on, it sounds like your skills are much better than mine. This was my first WM program and so is very "simplistic".
I'd like to see how other things are done as it progresses.
Hello Eveyone,
I downloaded Zooper on Friday and have been playing with it, learning it, reading the forums about it and killing a LOT of time with it LOL! I have learned a lot, and am ploughing through making my own theme for the first time. I have found most of the answers to my questions on here except the main one I need help with:
I want GMT displayed on my home page, not just the differential that's included in #Dz#. I've tried everything I could think of for it, including using the math operators to take local time and add or subtract the value of #DZ# using if then statements but nothing is working. I'm a pilot and that would be a handy value to show on the home screen for us frequent time zone crossers.
Can anyone help me with this please? Seems easy enough but I am obviously missing something. Any help woould be appreciated.
I am a retired Navy fighter pilot, currently living and working in Jakarta, Indonesia as a pilot training captain. Look forward to seeing all of you in here and if any of you live or wander close by, be sure to hit me up!
Cheers,
Wayne "Kila" Watts
Zooper: How to display zulu time for pilots
KilaWatts, It's been awhile since you posted this, but here is your solution. I also wanted to display this on my zooper widget, and I figured it out! Even though it's posted late, I thought that it might benefit other pilots like us as well. Rob
$(#DHHmm#-#DZ#)$Z will display zulu time (eg. 1543Z)
KilaWatts said:
Hello Eveyone,
I downloaded Zooper on Friday and have been playing with it, learning it, reading the forums about it and killing a LOT of time with it LOL! I have learned a lot, and am ploughing through making my own theme for the first time. I have found most of the answers to my questions on here except the main one I need help with:
I want GMT displayed on my home page, not just the differential that's included in #Dz#. I've tried everything I could think of for it, including using the math operators to take local time and add or subtract the value of #DZ# using if then statements but nothing is working. I'm a pilot and that would be a handy value to show on the home screen for us frequent time zone crossers.
Can anyone help me with this please? Seems easy enough but I am obviously missing something. Any help woould be appreciated.
I am a retired Navy fighter pilot, currently living and working in Jakarta, Indonesia as a pilot training captain. Look forward to seeing all of you in here and if any of you live or wander close by, be sure to hit me up!
Cheers,
Wayne "Kila" Watts
Click to expand...
Click to collapse
Correction
I just realized that I was wrong, please disregard my previous post. The correct way to do it is to go to "Override Widget Locality" for the specific module. Then touch the "+" button. Type in the name of the city that you are in, and for the time zone scroll down and select "Etc/Zulu". The code that you need to enter manually is: #DHH#:#Dmm#z
KilaWatts said:
Hello Eveyone,
I downloaded Zooper on Friday and have been playing with it, learning it, reading the forums about it and killing a LOT of time with it LOL! I have learned a lot, and am ploughing through making my own theme for the first time. I have found most of the answers to my questions on here except the main one I need help with:
I want GMT displayed on my home page, not just the differential that's included in #Dz#. I've tried everything I could think of for it, including using the math operators to take local time and add or subtract the value of #DZ# using if then statements but nothing is working. I'm a pilot and that would be a handy value to show on the home screen for us frequent time zone crossers.
Can anyone help me with this please? Seems easy enough but I am obviously missing something. Any help woould be appreciated.
I am a retired Navy fighter pilot, currently living and working in Jakarta, Indonesia as a pilot training captain. Look forward to seeing all of you in here and if any of you live or wander close by, be sure to hit me up!
Cheers,
Wayne "Kila" Watts
Click to expand...
Click to collapse
Thank you!
Rob,
Thanks for both posts.....I appreciate the effort even if it's wrong mate. I understand the second way, however, that seems to just do it manually, and not automatically once I land in another time zone, like the time gets updated. Maybe I'm wrong and if I do it once, where I live now, it will update by itself when the phone comes on and I'm in a different time zone?
Thanks in advance and hope that's not a stupid question LOL! Caught me a bit off guard with an answer finally! My UI is all set up, sans this of course. I'll play with what you suggested and see and maybe you can answer my question in the meantime.....
Cheers buddy and thanks again! :fingers-crossed:
robgross said:
I just realized that I was wrong, please disregard my previous post. The correct way to do it is to go to "Override Widget Locality" for the specific module. Then touch the "+" button. Type in the name of the city that you are in, and for the time zone scroll down and select "Etc/Zulu". The code that you need to enter manually is: #DHH#:#Dmm#z
Click to expand...
Click to collapse
I wanted to display GMT that will auto correct when my time zone goes through a time change (-5 to -6). The closest I got was the following conditional. I hope this helps
$(#DH#-(#DZ#/100))$:#Dmm#
This uses your phone's local time and then factors in DZ.
Thanks!
KilaWatts said:
Rob,
Thanks for both posts.....I appreciate the effort even if it's wrong mate. I understand the second way, however, that seems to just do it manually, and not automatically once I land in another time zone, like the time gets updated. Maybe I'm wrong and if I do it once, where I live now, it will update by itself when the phone comes on and I'm in a different time zone?
Thanks in advance and hope that's not a stupid question LOL! Caught me a bit off guard with an answer finally! My UI is all set up, sans this of course. I'll play with what you suggested and see and maybe you can answer my question in the meantime.....
Cheers buddy and thanks again! :fingers-crossed:
Click to expand...
Click to collapse
Hi All,
I am a bit confused with the moonrise and moon set time on zooper. I am using the following code
Code:
#AMRH:mm#
to get the moonrise time in 24 hour time format. But the result i get is 12 hour time.
For Example... If the moon rise time in my locality is 9:15 Pm, then ideally it should give me the time as 21:15. but it gives me 9:15 instead.
Can anyone please tell me where i am going wrong?
Thanks in advance for your help.
siddnair1989 said:
Hi All,
I am a bit confused with the moonrise and moon set time on zooper. I am using the following code
Code:
#AMRH:mm#
to get the moonrise time in 24 hour time format. But the result i get is 12 hour time.
For Example... If the moon rise time in my locality is 9:15 Pm, then ideally it should give me the time as 21:15. but it gives me 9:15 instead.
Can anyone please tell me where i am going wrong?
Thanks in advance for your help.
Click to expand...
Click to collapse
My solutions /blue is data for next day/:
$#AISDAY#=0 && #ARH#<#DH#?[c=#99CCFF]#A1RHH.mm#[/c]:#ARHH.mm#$
$#AISDAY#=0 && #ASH#<=#DH#?[c=#99CCFF]#A1SHH.mm#[/c]:#ASHH.mm#$
This is my first thread and request. I hope someone can help me with this.
I made a horizontal timeline showing events for the day from 6:00 to 21:00. I would like a time indicator (rect) showing the length of each event along the timeline. IE, the event starts at 11:00 and ends at 13:00 the indicator rect width is 40 (20 per hour). I'm not sure where to start with this but any help would be appreciated.
Thanks in advanced.
CellSeven said:
This is my first thread and request. I hope someone can help me with this.
I made a horizontal timeline showing events for the day from 6:00 to 21:00. I would like a time indicator (rect) showing the length of each event along the timeline. IE, the event starts at 11:00 and ends at 13:00 the indicator rect width is 40 (20 per hour). I'm not sure where to start with this but any help would be appreciated.
Thanks in advanced.
Click to expand...
Click to collapse
Looks nice, care to share the .zw ?
masze said:
Looks nice, care to share the .zw ?
Click to expand...
Click to collapse
Sure I will, once I finish it.
CellSeven said:
Sure I will, once I finish it.
Click to expand...
Click to collapse
thanks,
waiting patiently and eagerly!!
Wrong thread
Mokum020 said:
Do you already have something working on the timeline, because I thought of a solution and maybe I can integrate it with what you already have.
Click to expand...
Click to collapse
That would be great.
I got this from k1silver's Timeline and modified it a bit.
What I got so far is where to place the round indicator on the timeline
[ox]$((#C0SH#*60+#C0Sm#)/3-270)$[/ox]
[oy]$#C0SyMd#!=#DyMd#||#C0SHmm#<500||#C0SHmm#>2200?500:0$[/oy]
I hope this helps.
Wrong thread
Thank you so much. That worked exactly how I hoped. I look forward to seeing your home screen setup.
masze said:
thanks,
waiting patiently and eagerly!!
Click to expand...
Click to collapse
I will share this widget with you tomorrow, thanks to Mokum020.
masze said:
thanks,
waiting patiently and eagerly!!
Click to expand...
Click to collapse
Here Masze.
thanks bro!
awesome!!
Thanks again..
Still wip.
New to zooper so I'm still in the early stages of learning. I'm trying to do something similar although with not as much detail. Basically, all I want is a row of 5 rectangles running horizontally representing the next 5 days starting with the current day. Each rectangle (or bar) representing a 16-hour day (8-midnight) and color-filled with busy times. So I could have a quick glance on how busy my upcoming days are. Am looking at some of your work and getting inspiration while learning.
Also checked out your "cave" and am very impressed with the high-quality! Congrats!
Wrong thread
I'm trying to make a 'days since' text display to show the number of days since my kid was born. His birth date was 04/10/2014. Today he is 511 days old but my widget says 220.
The string I'm using is: #D04102014Td#
What am I doing wrong?
Thank you for any help you can offer.
solodev said:
I'm trying to make a 'days since' text display to show the number of days since my kid was born. His birth date was 04/10/2014. Today he is 511 days old but my widget says 220.
The string I'm using is: #D04102014Td#
What am I doing wrong?
Thank you for any help you can offer.
Click to expand...
Click to collapse
Hi solodev, #D201404100000Td# should work.
CopKiller76 said:
Hi solodev, #D201404100000Td# should work.
Click to expand...
Click to collapse
I came across this thread with your reply...would it be possible to explain WHY this works? What is the reason for the additional characters you've added? I assume they are to represent hours and minutes which would mean the formula requires full qualification but I'd rather hear it from you than make the assumption and be wrong.
Thanks!!
I think zooper needs the time if the date is in another year.