Hi everyone.
So I made this piece of code in Zooper, and as you can see it tells the time and how long until the next event.
Code:
It's [b][nm]#DP# #Dmm#[/nm][/b].
Your next event is
"#C0TITLE#"
in [b]$0<#C0sRd#?#C0sRd 'day'#$$1<#C0sRd#?s$ $0<#c0srh#?#C0srh 'hour'#$$1<#c0srh#?s$ $0<#c0srm#?#c0srm 'min'#$. [/b]
However, once the event has started it will count the time since it started if it isn't over yet. I know I could fix it with an if statement to show the next event if the first one is ongoing.
What is the correct way to do this? I really just need to know how to define "currently ongoing event" or something like that.
Thank you in advance!
Related
What I am looking for is something I can fill in with all the medications that need to be taken during the course of a 24hr period and have the system prompt me with a pop-up at the appropriate time to do just that. It would also be nice if it could keep track of the quantity of each medication and remind me to re-order in sufficient time.
Spent ages searching online for some software and while I have found this OnTimeRx, it is not pretty and personally is lacking a function or two, not to mention it is very Americanised.
The missing functions for me are:
The reminder function for re-order is hard coded at 5 days, need this to be editable.
It is incapable of coping with the situation where you take one of a tablet at breakfast and then two of the same tablet at tea time. It will allow you to take 2 tablets, twice a day and set a reminder for each but not differing quantities.
Generally not finger friendly.
Anyone up for the challenge or able to suggest something else?
Hi Deedee
Isn't it something that calendar can handle, with recurrence functions and notifications. As for order reminder, after you have calculated once how many pills or whatever you need in a month or week, you can also set a recurrence and reminder.
Correct me if I'm wrong or missed something.
Anyhow, good health and good luck
Thanks for the concern over my health.
While it is something that could be managed by careful manipulation of calendar, reminders and recurrence, the solution being sought is something that would have all the medical details in one place. Ideally something that can also manage emergency contact details as well.
Hello,
I am very new with CF development.
I try to create my first app in C#.
At the moment I am struggling with two problems:
1.
I wrote an appliactian what is running like a "Service". I used the managedservices class of CodePlex. (Sorry, I am not allowed to post links here)
The app is running fine until my device turned off the screen (timeout as configured in the settings). The applications stopps until I press the power button to awaik it.
I already red a lot of SetPowerRequirement and PowerPolicyNotify but I was unable to implement it. Could somebody provide me a code snippet for that?!
2.
At a specific event I want to invoke an appointment. Means, I want to play the device configured appointment sound, display the appointment form and let the LED flashing.
Is there a class or an API that I can use?
Or do I have to invoke all these things manually? If so, how can I invoke the sound and the LED flashing?
Would be very cool if somebody could give me some support!
Thank you in advance.
Matthias
Agamemnon81 said:
Hello,
I am very new with CF development.
I try to create my first app in C#.
At the moment I am struggling with two problems:
1.
I wrote an appliactian what is running like a "Service". I used the managedservices class of CodePlex. (Sorry, I am not allowed to post links here)
The app is running fine until my device turned off the screen (timeout as configured in the settings). The applications stopps until I press the power button to awaik it.
I already red a lot of SetPowerRequirement and PowerPolicyNotify but I was unable to implement it. Could somebody provide me a code snippet for that?!
2.
At a specific event I want to invoke an appointment. Means, I want to play the device configured appointment sound, display the appointment form and let the LED flashing.
Is there a class or an API that I can use?
Or do I have to invoke all these things manually? If so, how can I invoke the sound and the LED flashing?
Would be very cool if somebody could give me some support!
Thank you in advance.
Matthias
Click to expand...
Click to collapse
exactly what event will be used to trigger the creation of an appointment? you might be able to use the notification queue of Windows Mobile. which means the OS will trigger the event even if ithe OS is suspended.
mb286 said:
exactly what event will be used to trigger the creation of an appointment? you might be able to use the notification queue of Windows Mobile. which means the OS will trigger the event even if ithe OS is suspended.
Click to expand...
Click to collapse
Thank you very much.
That was the first very important hint for me. I always searched for "appointment" but did not find the notification class.
I got it running. Only problem is the LED is not flashing. Maybe this is a special thing?!
Is there a HTML code available which lets the notification just look like that one of a calendar appointment? I am not very firm with HTML.
BR
Matthias
Is it possible in Zooper Widget Add days to Date to obtain one other date?
If I set a Text in this way:
#DyMMdd#
today I see 20140112
If I write:
$(#DyMMdd#+10)$ I see 20140122
If I write:
$(#DyMMdd#+20)$ I see 20140132
This is a wrong Date; whitch is the correct syntax to add days to Date and obtain a correct date?
HyperAbarth said:
Is it possible in Zooper Widget Add days to Date to obtain one other date?
If I set a Text in this way:
#DyMMdd#
today I see 20140112
If I write:
$(#DyMMdd#+10)$ I see 20140122
If I write:
$(#DyMMdd#+20)$ I see 20140132
This is a wrong Date; whitch is the correct syntax to add days to Date and obtain a correct date?
Click to expand...
Click to collapse
Currently. no. But if I remember it correctly there was something like that announced for the next release of Zooper. Probably have to wait till then
kwerdenker said:
Currently. no. But if I remember it correctly there was something like that announced for the next release of Zooper. Probably have to wait till then
Click to expand...
Click to collapse
I downloaded Zooper Pro a long time ago and only used it at its most basic. Now that I am trying to dig a bit deeper, I've come to learn Zooper appears to be dead with respect to future improvements. Did this improvement adding to a Date to result in a new date ever happen? Did anyone determine a way to do this? I would like to do some conditional Ifs to determine if I want today's weather, tomorrow's weather or the next day based on the current time of day. The only way I can see doing this is with a way to do a "DateAdd" for lack of a better word. Is it possible yet?
Thanks!
I think
$(#D+28800yMMdd#)$
Where 28800= 20days * 24 hours * 60 min
I'm trying to configure a widget with zooper.
I need to split the result of #SALARM# on two lines.
I want the same information but divided:
line1: day
line2: time
For example if #SALARM# return "fri 07:05" i want "fri" on one line and "07:05" on the second one.
My problem is that if I try to use #SADE# or #SADEEEE# I have as result "ERR".
If I use #SADF#, correctly zooper return 5, because Friday is the 5th day in the week... but then I'm not able to transform in "fri".
Right now I'm in a deadlock situation and I'm looking for help.
If you have some ideas... please...
Thank you
Alarm free date is listed as beta so perhaps it doesn't fully support your phone at the moment. You say you can get a numerical day returned which is correct? In that case how about using $#SADF#=4?THU$$#SADF#=5?FRI$ etc to display the text you need for each day?
Torgadden said:
Alarm free date is listed as beta so perhaps it doesn't fully support your phone at the moment. You say you can get a numerical day returned which is correct? In that case how about using $#SADF#=4?THU$$#SADF#=5?FRI$ etc to display the text you need for each day?
Click to expand...
Click to collapse
It's a good idea! Unlucky it seems that SADF is not reliable... today the result od SADF is... 4 and it is Monday!
But it's really a godd idea!
Ok, in that case, do you use tasker? There is a plugin available called Auto Alarm. You could use that to provide you with the relevant alarm details.
I'm trying to design a homescreen that's fairly compact and functional. Rather than displaying the actual events that will be occuring, I want to try and get my widget to tell me how many events are occuring today and tomorrow ie:
x events today, y events tomorrow.
However, I can't seem to find any method of possibly achieving this. Is it possible to get Zooper to count events between now and say, midnight?
I've searched around and i couldn't find anything (or I'm just bad at searching). Any help would be much appreciated!
brownenvelope said:
I'm trying to design a homescreen that's fairly compact and functional. Rather than displaying the actual events that will be occuring, I want to try and get my widget to tell me how many events are occuring today and tomorrow ie:
x events today, y events tomorrow.
However, I can't seem to find any method of possibly achieving this. Is it possible to get Zooper to count events between now and say, midnight?
I've searched around and i couldn't find anything (or I'm just bad at searching). Any help would be much appreciated!
Click to expand...
Click to collapse
As far as the exact syntax, I'd have to think on/test it, but logic-wise I might have a solution and from it you can hack through the syntax to make it work.
Firstly, Zooper can't count or support arrays or loops, etc. So, you'd have to find a way to get each event to equal a "(1)" and then add them all together.
The easiest way to do this would be with Tasker and then send over a single variable to Zooper, but Tasker's native Calendar app integration is somewhat hit or miss depending on device and Android version, etc.
So, how can we do this in Zooper? Well as I was typing this I tried testing a few different way and realized each time you perform a mathematical operation in Zooper the result is a display result and not a new number you can then add or subtract from something else.
Maybe someone has a solution though. Would be interested to see how it can be done without Tasker.
It seems the following would work for counting today's remaining events. All-day events may mess it up. The basic idea is to test if event n is today and event n+1 is not today. It would look like this
...
$#CnSyyyyMMdd#<=#DyyyyMMdd#&&#Cn+1SyyyyMMdd#>#DyyyyMMdd#?n+1$
...
Or,
$#C0SyyyyMMdd#>#DyyyyMMdd#?0$
$#C0SyyyyMMdd#<=#DyyyyMMdd#&&#C1SyyyyMMdd#>#DyyyyMMdd#?1$
$#C1SyyyyMMdd#<=#DyyyyMMdd#&&#C2SyyyyMMdd#>#DyyyyMMdd#?2$
$#C2SyyyyMMdd#<=#DyyyyMMdd#&&#C3SyyyyMMdd#>#DyyyyMMdd#?3$
$#C3SyyyyMMdd#<=#DyyyyMMdd#&&#C4SyyyyMMdd#>#DyyyyMMdd#?4$
$#C4SyyyyMMdd#<=#DyyyyMMdd#?5+$
You can expand it up if you want, but all this has to be on one line. You can probably shorten it with yy instead of yyyy. Now as far as tomorrow's events, good luck.
Wrong thread
Mokum020 said:
I came up with a similar solution for todays events as ewcrider (also should be one line in Zooper):
$#C0SddMMyy#=#DddMMyy#&&#C1SddMMyy#!=#DddMMyy#?1$ $#C1SddMMyy#=#DddMMyy#&&#C2SddMMyy#!=#DddMMyy#?2$
$#C2SddMMyy#=#DddMMyy#&&#C3SddMMyy#!=#DddMMyy#?3$
$#C3SddMMyy#=#DddMMyy#&&#C4SddMMyy#!=#DddMMyy#?4$
$#C4SddMMyy#=#DddMMyy#&&#C5SddMMyy#!=#DddMMyy#?5$
The difficulty is that the event number order changes so that the first upcoming event will always be C0, second C1 etc.
So for instance if you create the first event tomorrow it will be C0 but if you then create a event for today this will become C0 and the event for tomorrow will become C1.
Click to expand...
Click to collapse
This solution worked for me, as a simple cut and paste. Very crafty!!
Wrong thread
Mokum020 said:
Wrong thread
Click to expand...
Click to collapse
Why does every thread you posted in say "wrong thread" now?