TiddlyTools/timer.html - major update

247 views
Skip to first unread message

Eric Shulman

unread,
Sep 24, 2020, 1:22:34 AM9/24/20
to tiddl...@googlegroups.com
Hi all,

Just a quick announcement that http://TiddlyTools.com/timer.html has had a major overhaul:

TiddlyTools/Timer has a new, vastly improved interface and has been renamed TiddlyTools/Time/Timers
In addition, all other tiddlers have also been renamed from: TiddlyTools/Timer/* to: TiddlyTools/Time/*
Of course, this also includes changes to all internal references to "TiddlyTools/Timer".

I know this may seem like a somewhat gratuitous name change with relatively little real value,
but it makes for better overall naming consistency and will help me in the future as I continue
to enhance and extend the "TiddlyTool/Time" functions and prepare to package it as a plugin.

If you have already installed the "TiddlyTools/Timer/*" tiddlers, you should discard those old
tiddlers and import the newly renamed versions.  Of course, you will also need to update any
existing references (i.e., transclusions) of these tiddlers in your own document.

Sorry for the big change, but I've been meaning to do this for quite a while and it was getting
on my nerves.  I promise not to do anything like this again!

-e

TW Tones

unread,
Sep 24, 2020, 6:46:46 AM9/24/20
to TiddlyWiki
Eric,

Epic piece of work Eric. With this and the normal extensibility to tiddlywiki there would be few calendar and timer issues features we do not have now.

I can't wait to build a new time management and scheduling solution for myself on top of these tools.

This is yet another opportunity for users to stand on the shoulders of giants and this time (as before) it is you.

With the calendars native listing of created and modified date items within the calendar, it is also an advantage just for management of tiddlers in general, allowing us to make full use of the "dominate unique and continuous line in the 4th dimension of time"

Some years ago I realise if you have a GPS and even a separate clock, such as that on your camera, (with synchronised times) you can always place a photo in a location by matching the times, who needs a GPS in your camera? (although we do).

Now because of this solution tiddlywiki can be an index against which any activity for which to have a date and time, can be linked.

Eventually I may release an Australian version of your TiddlyTools/Time/Events (annually?)

Thank you
Tony/Tones


On Thursday, 24 September 2020 15:22:34 UTC+10, Eric Shulman wrote:
Hi all,

Just a quick announcement that http://TiddlyTools.com/timer.html has had a major overhaul:

TiddlyTools/Timer has a new, vastly improved interface and has been renamed TiddlyTools/Time/Timer

Atronoush Parsi

unread,
Sep 24, 2020, 2:10:32 PM9/24/20
to tiddl...@googlegroups.com
Hi Eric,
 This is a wonderful tool for Tiddlywiki. Many thanks for all your efforts.

Small suggestion:
- On Calendar it is useful to show Today in different colours

I was thinking how can I sync it with Google Calendar!!!

Atro
 

On Thu, Sep 24, 2020 at 8:52 AM Eric Shulman <elsd...@gmail.com> wrote:
Hi all,

Just a quick announcement that http://TiddlyTools.com/timer.html has had a major overhaul:

TiddlyTools/Timer has a new, vastly improved interface and has been renamed TiddlyTools/Time/Timer
In addition, all other tiddlers have also been renamed from: TiddlyTools/Timer/* to: TiddlyTools/Time/*
Of course, this also includes changes to all internal references to "TiddlyTools/Timer".

I know this may seem like a somewhat gratuitous name change with relatively little real value,
but it makes for better overall naming consistency and will help me in the future as I continue
to enhance and extend the "TiddlyTool/Time" functions and prepare to package it as a plugin.

If you have already installed the "TiddlyTools/Timer/*" tiddlers, you should discard those old
tiddlers and import the newly renamed versions.  Of course, you will also need to update any
existing references (i.e., transclusions) of these tiddlers in your own document.

Sorry for the big change, but I've been meaning to do this for quite a while and it was getting
on my nerves.  I promise not to do anything like this again!

-e

--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/6ae8c99f-1f08-4e65-bfbb-24f26bd16fbdo%40googlegroups.com.

Eric Shulman

unread,
Sep 24, 2020, 4:32:59 PM9/24/20
to TiddlyWiki
On Thursday, September 24, 2020 at 11:10:32 AM UTC-7, Atronoush wrote:
Small suggestion:
- On Calendar it is useful to show Today in different colours

Done.  The current date is now shown with lightgreen background.  You can, of course, change this color in the Setup.

enjoy,
-e

Eric Shulman

unread,
Sep 26, 2020, 1:32:22 AM9/26/20
to TiddlyWiki
On Thursday, September 24, 2020 at 11:10:32 AM UTC-7, Atronoush wrote:
Small suggestion:
- On Calendar it is useful to show Today in different colours

update: changed colors:

GOLD = today
LIGHTGREEN = events defined in TiddlyTools/Time/Events and ".ics" tiddlers (see below)
LIGHTBLUE = tiddlers created/modified, or date has a journal
 
I was thinking how can I sync it with Google Calendar!!!

I've just added handling for tiddlers containing .ics data.

To import calendar data from Google Calendar:
2) Click Settings button (gear icon, upper right of page)
3) Choose "Import & export" from left side menu
4) Press "export" button to download "your...@gmail.com.ical.zip" file
5) On your local system, unzip the downloaded file, which will contain one or more .ics (calendar data) files
6) Drag-and-drop the .ics files onto your TiddlyWiki and import them as tiddlers.
7) You can rename the imported tiddlers, but they must have ".ics" as a suffix.

The Calendar will automatically recognize and parse "VEVENT" records contained in ".ics" tiddlers
and will use the DTSTART value as the event date and SUMMARY text as the event description.


enjoy,
-e

Eric Shulman

unread,
Sep 26, 2020, 1:52:43 AM9/26/20
to TiddlyWiki
On Friday, September 25, 2020 at 10:32:22 PM UTC-7, Eric Shulman wrote:
I've just added handling for tiddlers containing .ics data.

In addition to downloading from Google Calendar, you can also get lots of useful calendar .ics files from this site:


2) From their home page, select a calendar of interest
3) You can then "subscribe or download" the selected calendar.
4) Press "download" to get an .ics file on your local system
5) Drag-and-drop the .ics file onto your TiddlyWiki and import.

-e

TW Tones

unread,
Sep 26, 2020, 2:04:45 AM9/26/20
to TiddlyWiki
Wow Eric!

I look forward to playing again.

Regards
Tony

Atronoush Parsi

unread,
Sep 26, 2020, 2:13:08 AM9/26/20
to tiddl...@googlegroups.com
Lovely!
 Many thanks Eric! Both using different colors and interaction with third party calanders is awesome!

-Atro

--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.

Eric Shulman

unread,
Sep 26, 2020, 3:19:46 AM9/26/20
to TiddlyWiki
On Friday, September 25, 2020 at 11:04:45 PM UTC-7, TW Tones wrote:
I look forward to playing again.

You can download "Australia Holidays" .ics file from here:

and... to really give the calendar a workout... try adding in the "UN Holiday" .ics file:

The year calendar gets a little bit slow with all the UN Holidays... (about 6 seconds on my computer)
The monthly calendar displays much faster, so the overhead isn't in the processing of the .ics data,
but rather in the rendering of the entire year.... but it's still surprisingly good performance, considering
how much is being displayed.

Let me know how well (or badly) it works on your system...

-e

Eric Shulman

unread,
Sep 26, 2020, 3:22:58 AM9/26/20
to TiddlyWiki
Update: fixed date popup handling for multiple events on the same day.

(previously, it was mashing all the events together and treating it as a single event with a bad tiddler title containing square brackets!)


-e

Anthony

unread,
Sep 26, 2020, 9:21:14 AM9/26/20
to TiddlyWiki
Hi,

I guess I'm doing something really daft but I cannot get any of the tiddlers to work if I drag and drop into my project - e.g. no calendar and timers don't work.

However when I save the entire 'timer.html' file locally all the tiddlers I've tried work fine.

Thanks for any assistance,

Anthony

Eric Shulman

unread,
Sep 26, 2020, 10:00:55 AM9/26/20
to TiddlyWiki
On Saturday, September 26, 2020 at 6:21:14 AM UTC-7, Anthony wrote:
I guess I'm doing something really daft but I cannot get any of the tiddlers to work if I drag and drop into my project - e.g. no calendar and timers don't work.
However when I save the entire 'timer.html' file locally all the tiddlers I've tried work fine.

The timer functions (clocks, alarms, countdown, autosaver, etc.) rely upon a small bit of code, TiddlyTools/Time/action-timeout.js, which is used by a "startup" module called TiddlyTools/Time/Ticker, which provides real-time update to a system tiddler named $:/temp/time/ticker.  After you drag-and-drop these tiddlers into your file, you have to save-and-reload in order for the "ticker" to work.  Without this, none of the timers will function.

The Calendar is a bit different since it doesn't do anything in real-time.  In fact, you can drag-and-drop TiddlyTools/Time/Calendar into any TiddlyWiki, and you will be able to use it immediately.  Try dragging it to http://TiddlyWiki.com.

The fact that you said "no calendar" appears is strange.  Can you provide a bit more information?  Specifically,

* What system, browser and version of TiddlyWiki are you using?
* Exactly how are you importing the tiddlers?  Describe everything, step-by-step.

-e


Anthony

unread,
Sep 26, 2020, 11:05:45 AM9/26/20
to TiddlyWiki
Hi Eric,
I think I may have figured out the problem... I was using TW 5.1.17 and note the most recent version is 5.1.22. Having saved this version and after a very quick look things seem to be working. I'll do more testing later but I have 'household chores' to do now.
Many thanks for your help,
Anthony

Eric Shulman

unread,
Sep 26, 2020, 11:24:40 AM9/26/20
to TiddlyWiki
On Saturday, September 26, 2020 at 8:05:45 AM UTC-7, Anthony wrote:
I think I may have figured out the problem... I was using TW 5.1.17 and note the most recent version is 5.1.22. Having saved this version and after a very quick look things seem to be working. I'll do more testing later but I have 'household chores' to do now.

Indeed, TW5.1.17 is much too old.  In particular, most of the timer and calendar filters make use of the math operators (https://tiddlywiki.com/#Mathematics%20Operators) that were introduced in TW5.1.20 (August 2019), and the clocks use the compare operator (https://tiddlywiki.com/#compare%20Operator) that was introduced in TW5.1.22 (April 2020).

-e



Anthony

unread,
Sep 27, 2020, 5:09:08 AM9/27/20
to TiddlyWiki
Many thanks Eric... all working well now... I was being daft! I guess a while ago I downloaded an empty version of 5.1.17 and used that to start a new project rather than 5.1.22 (which I seem to have used for another project so I'm not being consistent either).

Thanks for a great project - it's greatly appreciated.

Anthony
Reply all
Reply to author
Forward
0 new messages