Originally Posted by troymackenbach
Nice! How did you create it? I personally made both in one widget using Zooper. If an event is closer than 6 hours, show the calendar widget. If the upcoming is more than 6 hours away, show the date + weather. But the code doesn't work flawlessly yet when switching from one widget to another.
If you download the widget, you can check it out. It is basically a LONG ass formula that analyzes the calendar event, looking at start date, and event time, and current time, and determines whether or not the event starts today or in the future. If it is today, but not yet within an hour of the event (again, formula arguments in Zooper) if displays the time in hours until the event start time. If the same day, and the current hour is 1 hour from the start time of the event, it displays in minutes. If the event date is greater than the current date, then it displays Tomorrow if it is one day away, and then 2 days, 3 days, etc. The formula is ridiculously long, and I had to use multiple and statements (&&) to account for every possible scenario. Also, since you can not do text strings and math together in Zooper (it will display the math as a text string (e.g. if you put (24-5) Minutes, it will display (24-5) Minutes instead of 19 Minutes)) I had to do multiple, redundant && arguments to account for the math that needed to be done, and the text that I needed to display alongside the math. It was a pain trying to get it to work, but once I did, I felt very accomplished