A timer

Log in to Vote
47 Votes • 11 Comments
For queries like "timer 10 minutes" it will set a timer.
• posted 5 years and 5 months ago • type: Spice (API calls) Live

Hi I'm willing to give this goodie a shot. Do you have any more information about the way it should work ?
posted by <hidden> • 5 years and 2 months ago Link
Maybe a descending counter on the "0-click area"?
posted by <hidden> • 5 years and 2 months ago Link
i get that. But for the input, will the user have to type the full thing (e.g: 1 hour 10 minutes 15 secondes) or something less "precise" (e.g: 1 hour 30).
Another thing is the way goodies are handled. The value returned by the function is displayed on the zero-click area. As the value needs to be updated in order count to zero, i'm not realy sure a timer is doable.

Anyway i will lack of time to work, so you can find my attempt here, improve it and push it into prod.

posted by <hidden> • 5 years and 2 months ago Link
I think the script should read these two ways (with seconds and without seconds), but I don't program in Perl, so I am not sure if that is possible.
About the countdown update: isn't possible to use JavaScript to do that?
posted by <hidden> • 5 years and 2 months ago Link
I definitely believe that a timer should be implemented with Javascript as a Spice instant answers. Currently a stopwatch is being implemented in this manner here: https://github.com/duckduckgo/zeroclicki...

I would be impossible to implement this without Javascript because once the IA triggers, the Perl code executes once and then the page loads. After that the page is unable to be updated further by the Perl code.
posted by Moollaza Staff4 years and 11 months ago Link
Arkeopix, have you been able to make any progress on this Goodie?
posted by loganom Community Leader5 years and 20 days ago Link
Anyone still working on it?
posted by <hidden> • 4 years and 8 months ago Link
It's live! :D

Try queries like 5 minute timer, or just plain timer.
posted by mattr555 Community Leader4 years and 6 months ago Link
Nice IA there, Matt!
posted by Jag Staff4 years and 6 months ago Link
There is a mistake with this instant answer.

It adds one second every time, because it takes a second for the timer to start the countdown.


Also, I would make a couple of suggestions (from the google timer):
• I would like the timer to start automaticaly.
• I would like to search for a time like 5 pm, 21:30, 10:15

posted by <hidden> • 4 years and 5 months ago Link
Spotted some issues with the timer :
I typed "30 MINUTES" with my CAPS lock activated by mistake, and didn't get any timer. I tried with HOUR, SECONDS, same thing, no timer. It works fine without any caps (one cap at the beginning does'nt work).
If I type "15 minutes 30 SECONDS", it brings up a timer set to 15 minutes exactly...
Second thing : If I bring up the timer and set its values, well, I can't, because I'm using an azerty keyboard, and digits are accessed with the Shift + [0-9] combination. Typing just the digit key obviously only bring up :
Nothing meaningful, then.
I'm not a developper, just thought you should know.
posted by <hidden> • 4 years and 5 months ago Link