A timer

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

anonymous
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> • 4 years and 8 months ago Link
anonymous
Maybe a descending counter on the "0-click area"?
posted by <hidden> • 4 years and 8 months ago Link
anonymous
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.

https://github.com/Arkeopix/timer.pm
posted by <hidden> • 4 years and 8 months ago Link
anonymous
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> • 4 years and 8 months ago Link
Moollaza
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 4 months ago Link
loganom
Arkeopix, have you been able to make any progress on this Goodie?
posted by loganom Community Leader4 years and 6 months ago Link
anonymous
Anyone still working on it?
posted by <hidden> • 4 years and 2 months ago Link
mattr555
It's live! :D

Try queries like 5 minute timer, or just plain timer.
posted by mattr555 Community Leader4 years and 14 hours ago Link
Jag
Nice IA there, Matt!
posted by Jag Staff3 years and 11 months ago Link
anonymous
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.

https://duckduckgo.com/?kl=es-es&k1=-1&kp=-1&k5=1&q=timer+5+seconds

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

https://www.google.com/search?lr=lang_en&hl=en&q=timer+5+seconds
posted by <hidden> • 3 years and 10 months ago Link
anonymous
Hi,
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> • 3 years and 10 months ago Link