So I made a widget that will display a Calendar with the day and date of the next event by using Google's inbuilt calendar. If it's a multiple day event it will display the current day the event is on until it passes. Once the day passes and it's on the next day, the calendar will update to the next event. I have however noticed a weird glitch that had to be resolved with the third line of code where the event will say end on a Tuesday, the day will be Wednesday, and the passed event will still be the current one.
$#DD#<=#C0SD#?#C0SE#$
$#DD#>#C0SD#&&#DD#<#C0ED#?#DE#$
$#DD#>=#C0ED#&&#C0SD#!=#C0ED#?#C1SE#$
- $#C0SD#=?No Event -$
[sr=0.75]
$#DD#>=#C0SD#&
&#DD#<=#C0ED#?Today$
$#C0SD#=(#DD#+1)?Tomorrow$
$#C0SD#>(#DD#+1)?#C0SMMM d#$[/sr]
Click to expand...
Click to collapse
My question is with New Years coming around, my event for next year isn't showing because DD is greater than C0SD but I am getting somewhat confused as to how to implement the coding correctly in order to show the next event details fully.
(Also, note that the code is usually on one line, I've placed it on multiple lines for ease of reading.)
Any help would be awesome.
NuttsnBolts said:
So I made a widget that will display a Calendar with the day and date of the next event by using Google's inbuilt calendar. If it's a multiple day event it will display the current day the event is on until it passes. Once the day passes and it's on the next day, the calendar will update to the next event. I have however noticed a weird glitch that had to be resolved with the third line of code where the event will say end on a Tuesday, the day will be Wednesday, and the passed event will still be the current one.
Code:
$#DD#<=#C0SD#?#C0SE#$
$#DD#>#C0SD#&&#DD#<#C0ED#?#DE#$
$#DD#>=#C0ED#&&#C0SD#!=#C0ED#?#C1SE#$
- $#C0SD#=?No Event -$
[sr=0.75]
$#DD#>=#C0SD#&&#DD#<=#C0ED#?Today$
$#C0SD#=(#DD#+1)?Tomorrow$
$#C0SD#>(#DD#+1)?#C0SMMM d#$[/sr]
My question is with New Years coming around, my event for next year isn't showing because DD is greater than C0SD but I am getting somewhat confused as to how to implement the coding correctly in order to show the next event details fully.
(Also, note that the code is usually on one line, I've placed it on multiple lines for ease of reading.)
Any help would be awesome.
Click to expand...
Click to collapse
In regards to events in the new year not showing, I recommend dropping the D parameter and use yMMdd (#DyyMMdd#, #C0SyMMdd#, etc.). You need to specify MM and dd because you need both the month and day of the month to always be double digits with any leading zeros in order for the math that you're doing to work out.
Awesome, thanks for the help. I tried the previous suggestions that you made and they worked alright, but I'll have to look at the MM suggestion that you made.
Again, thank you for the help.
Related
Adding a calender event is odd, I select a day, say Monday and select add and it opens up the page for inputing an event, BUT for tuesday!To add an event for monday I have to select sunday then add and event and the input page will be set for an event on monday!! Am I missing something or is that just plain daft. I realise once one the page you can then select any day but every other device I ever owned allowed you to go to a day in the calender and then if you wished to add an event the first option would be for that day...as appose to another day entirely!
Strange... doensnt happen on my phone...:/
I'd have said, not on my phone, except it did... last night. Can't reproduce it now.
Could be a time zone issue...? Were you entering the appointment at around midnight?
Ok, not ever. And it's quite nice really, but how on Earth do I make something recur every second Wednesday, or every Monday for 4 weeks? These are basic recurrence patterns. I'm not even up to "first Thursday of the month" yet.
It doesn't seem to be possible right now. You can always do it in Outlook or whatever calendar application you're synced with.
Windows Live Mail is best.
I've got mine syncing to Google Calendar and it seems to work fine. As a test I just created a recurring appointment for every Sunday morning at 8AM. However, I see the details you mean, particularly with regards to "every second wednesday." My advice would be this: if you must use your handset to set up the appointment, go as far as you can and then login to your calendar online to adapt it with more features, which WP7 can read just fine.
A little bit of an oversight on MS's part, I guess, but then, most people probably don't create many zany appointment schemes
Is it possible to see your google calendar subscribtions? I use weeknumbers often, and on my previous Android phone I was able to see the week number subscribtion.
Or is there any otherway to show week number?
Another thing that annoys me a bit is that the day is not written in the calendar in the day viewing, only the date ex: 1.december 2010 not, monday 1.december 2010.
haven't spotted anything for this yet. if you think these changes should be done, twitting windowsphone could be a good place to start.
Hello everyone,
Recently I have started having issues with my calendar events in S planner, I am pretty sure that this issue has started with the latest firmware update. Anyways, I have set a rule in my work outlook to forward all emails to my Microsoft exchange email account that I have in my note 2, so when someone sends me a meeting invitation to my work email, it comes to my phone as an attachment (.ics) and I simply click on that and import it to my phone's s planner. This has been working great for a while until recently, once I open the .ics file I would notice that the timing of the event is 4 hours behind (I live in Ohio so the time zone is Easter time) but if I import that event to the phone, then edit it, and go to the time zone and change it from (GMT+0:00) to Eastern time, the time of the event shows correctly. Keep in mind that I have all of the Time Zones at Eastern time and I am locking my event to the same time zone too (in S planner). so somewhere the event's time zone changes to GMT+0:00 and as I mentioned before, only after updating to the latest firmware. setting the time and date as well as the time zone to auto or manual does not make the problem go away, the only thing that will correct this issue, is by setting the time zone to a different time zone than where I am (to GMT +0:00) and set the clock manually. I also noticed that if I forwarded the same email to my Google account and import the same .ics from there, the timing of the event would be correct.
thanks for any input
Am I the only one with this issue?
thanks for any feedback
You're not the only one
I'm in Amsterdam (which according to S-planer is GMT +2; funny, I always thought it was +1) and there's a red line showing the time indeed
+2 (no worry, setting the time zone differently in the settings section does not help at all). I think its a bug...thought it was a bug, until I found
that the time zone in the settings of the machine were off (at GMT+0) and then the settings of the clock jumped two hours. Easily fixed for
me. I hope you have a comparable problem.
I have the same problem. I have all theelvcorrect time settings in place. This definitely an issue with s planner as the time appears correctly in the summary view of the event when in month view, but is behind by 6 hours when you open the event
Hello,
I just started using Zooper so I don't know yet every command and parameter.
On my widget I have 3 lines that display the next 3 calendar events in the format "TUE 8 18:00 EVENT", but "next event" may be coming way far in the future. I'd like to limit events to those of the next 2 weeks (I don't need to know about things that are months away), how can I do that?
Thank you
fredpel said:
"next event" may be coming way far in the future. I'd like to limit events to those of the next 2 weeks (I don't need to know about things that are months away), how can I do that?Thank you
Click to expand...
Click to collapse
I'm rather new to Zooper Widget myself, but I would think that you could make a conditional statement that takes the difference of the date of the event and the current date and if that is < 14, then do the following. Note that I have not tested any of the following, so you would probably have to debug and troubleshoot any issues if some arise.
$#C0SMMdd#-#DMMdd#<=14? #C0TITLE#$
To my understanding, this would say
If (First Calendar event month and Day) - (Current Month and Day) <= 14, then display the name of the first event.
However, there is one flaw with this formula, since it the values would be incorrect the following month (For example the 29th of April would yield the value "0429" and the first of May would be "0501", but the difference is well over 14, but they are within 2 weeks of one another).
Since the difference in months should be the 100s place, you might be able to just do another if statement that says
$[#C0SMMdd#-#DMMdd#>=73] && [#C0SMMdd#-#DMMdd#<=86] [&& #C0SMMdd#-#DMMdd#<-1000]? #C0TITLE#$
I didn't spend a whole lot of time on these numbers, so there may be a few errors. I thought of the worse scenario (Being the last day of February and an event on the next day (0301-0228=73)) and the other scenario being a cap so that you don't get events in the long distant future. The last is for the change of December to January.
As a said, I am rather new to using zooper, so there may be an easier way to do this. If not I hope this helped get you started.
That's definitely a good starting point, I went for
Code:
$#C0yDDD#-#DyDDD#<15?#C0TITLE#$
yDDD gives the date in the format 2014170 (year + day in year with leading zeros, from 001 to 365), so it should be ok in every case
Now I just have to fight with text jumping up and down whether the contain tall letters or not
Thank you very much!
(btw is there a way to stop the configuration window from closing and forgetting what I wrote, if the screen turns off while I'm changing something?)
fredpel said:
(btw is there a way to stop the configuration window from closing and forgetting what I wrote, if the screen turns off while I'm changing something?)
Click to expand...
Click to collapse
Sadly, I'm not aware of a way to do that. Although, a lot of people use pushbullet and write the code on their computer and then send it to their phone to test.