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?
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.
This was posted (not by me) on the old forums but I want to discuss it over here;
I’ve started to put together a simple widget for calendar events and bumped into the problem that #C0# might have a start date in the past (when that event is just happening). In this case, #C0S# might even be yesterday. I tried to base my script on “R” and “T” parsers, but had to face the fact that these give an absolute value.
As abs() function is available among maths features, while on the other hand generating the positive/negative sign for it with additional calculations is fairly complicated, I’ve been wondering if it would be possible to provide this data in a negative form for past dates.
If there’s a reason for the absolute value, it’d be also a great help to have a simple parser that gives -1 for past dates and 1 for future ones.
A UNIX date parser for #D…# might also come handy and could give a possible workaround, although I’d rather prefer the past-date-parser.
Click to expand...
Click to collapse
My suggestion is to get rid of the absolute value from the "R" and "T" parsers and replace it with negative & positive numbers. Feature request?
What I'd like to achieve is something like this
Code:
Me: something (day, time, location)
Wife: something (day, time, location)
Garbage: what (when)
Dinner: something
Birthday: who (when)
The data comes from my G-calendar, which has the respective sub-calendars.
The problem is, I always want to have it sorted like this, but I can't find a way to do it, since I only seem to be able to select appointment X, but I can't tell from which calendar. A workaround is to create multiple single line widgets and only selecting a single calendar source for it. But that's messy and problematic when moving around.
I guess I could built a dozen if-conditions around it, but that gets even messier, so can someone think of a good solution and be nice enough to share it with me? Thanks.
S.D.Richards said:
What I'd like to achieve is something like this
Code:
Me: something (day, time, location)
Wife: something (day, time, location)
Garbage: what (when)
Dinner: something
Birthday: who (when)
The data comes from my G-calendar, which has the respective sub-calendars.
The problem is, I always want to have it sorted like this, but I can't find a way to do it, since I only seem to be able to select appointment X, but I can't tell from which calendar. A workaround is to create multiple single line widgets and only selecting a single calendar source for it. But that's messy and problematic when moving around.
I guess I could built a dozen if-conditions around it, but that gets even messier, so can someone think of a good solution and be nice enough to share it with me? Thanks.
Click to expand...
Click to collapse
I don't think there is any good way to do it based on the way Zooper handles calendars/events. To me the variant with multiple widgets and only one calendar each probably is the only viable way at the moment.
kwerdenker said:
I don't think there is any good way to do it based on the way Zooper handles calendars/events. To me the variant with multiple widgets and only one calendar each probably is the only viable way at the moment.
Click to expand...
Click to collapse
It's an "ok" way for my phone, since I'm running Lightning Launcher and thus have no grid and can resize them, on my SO's phone it's problematic, since she uses a launcher with a fixed 5x5 layout and that calendar widget would use a whole page :/
Related question, is there a way to query the phone calendar store without fiddling with sqlite? There is python and googlecl, which I could use to script the required output, but as far as I see from Zooper's documentation, there's a 500ms timeout for shell commands and that would be problematic to query Google's servers in that time, espacially while on mobile data.
A simple solution like #C{X}A{Y}[Rest]# would be perfect, X being the calendar to use, Y the required number for an appointment and Rest the usual like title, time, etc.
Hi all,
Another question from the new guy. But first, I have to say that this app is amazing and is FINALLY letting me get exactly what I want on my phones home screen. So THANK YOU to everyone involved for that. Now, if I can just fumble my way through some more rich text...
My question this time is about all day events and splitting them out from the rest of my calendar for a given day. I work in a large department who use all day events to notify people when they are out of office. It works well in outlook (as long as people remember to set the "set time as free" option) to notify everyone when they will be OOO.
That said, on my widget, I want to group all the titles of all day events (with no extra info like start time, etc.) into one block of text. i.e. Manny OOO, Moe on Vaction, Jack on business travel. Then, in another list, i want to list out my actual appointments for the day.
I'm at a loss for where to even begin here? I've been toying with $#C0D#=1?#C0Shh\:mm#$ that I found online to try to skip to the first "real" appointment? But that just keeps returning blanks? It also feels like it has something to do with #C1D# but no idea how to properly use that either? Being an absolute noob at this stuff i am trying my best to hunt online and find answers, but its really challenging. Any help pointing me in the right direction is GREATLY appreciated.
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.