So, I recently got a Mac, and being as enamored with Javascript as I am, of course I started making myself some Dashboard widgets. I just finished the first one:
http://wakaba.c3.cx/releases/mac/AlarmClock.zip
It's an iTunes alarm clock. It'll just start iTunes playing a playlist you pick at a given time, slowly fading up the volume. It should be pretty obvious how to use it.
The alarm will recover after a restart. If the widget wasn't running at the time of an earlier set alarm, it will trigger immediately. At the moment, it can't schedule a power-up for wake from sleep for your Mac. I haven't quite figured out how to do that, but if anyone wants it, I'll find out and add it.
Needless to say, don't gamble your job or academic career on such relatively untested software as this. It's woken me up a couple of times, but I make no gurantees. Keep a spare alarm until any possible bugs have been shaken out.
I figure I'll be making more of these things, and I'll post them in this thread later on. Enjoy!
The graphics don't seem to be working right on my Mac (1.5 GHz Powerbook G4 running Mac OS X 10.4.1); see http://www.magnesium.net/~dag/kibo/src/1118374152834.png for screenshot. I tried reloading but no go.
This is strange. If I preview alarm.html the images seem to show up right. The images certainly all seem to be in the right place ...
I will continue to fiddle with this.
My Mac appears to be acting weird currently, so I am probably not a good test case, unless other people who use the widget also start having weird Mac problems. I will revisit this once my Mac problems are fixed.
This reminds me though, I've been meaning to enable images on this board. You can now use this to post screenshots and other relevant things!
...which of course I, too, can use to post screenshots. Here's what the thing looks like.
Oops, looks like >>2 is actually a bug.
I fixed that, and I made it possible to launch several alarm widgets at the same time and have them use different wakeup times.
I also made what I like to think of as the most useless widget ever - I was meaning to make a weather station data visualizer, and then I started thinking about the Ambient Orb and then things got out of hand and I started playing with the <canvas> object, and well... It's the Shiny Orb!
OUR ONE MOUSE BUTTON LIFESTYLE SHALL CONQUER
I'd try these out, but I don't want to run Dashboard until it stops using 20+MB memory per widget.
Inspired (and also nagged) by !WAHa, I wrote my own useless widget; it's available at http://kontext-away.com/Accu.tar.gz (it'll probably move to a slightly different location if I ever update it). It lets you keep an eye on Accuweather's wacky weather maps (double-clicking on the maps brings you to the appropriate story on Accuweather's web site). Enjoy, crazy people!
Shiny Orb will run just fine on its own in Safari, and be just as useless as on the Dashboard!
Also I use a four-button mouse.
> I'd try these out, but I don't want to run Dashboard until it stops using 20+MB memory per widget.
People claim this has been fixed in 10.4.2. Try it out.
I've been using it for a while now, actually, although I'm not very hardcore because I only have four widgets (Tiger-tan, LEO German-English Dictionary, Shiny Orb, and my attempt at a dict.regex.info interface which I always forget to work on).
And yeah, they only use ~7MB now.
A thread over in /b/ got this idea stuck in my head, and there was no way around it: A Laughing Man widget. This one is just as useless as Shiny Orb. It just sits there and spins.
The main feature is the obsessive attention to detail! I traced the image off a Production IG image, and I've even got the text working right - the real Laughing Man logo doesn't have a simple rotating ring of text, as most people believe, it has a scrolling text that continuously appears and disappears on the right side, and doesn't match up.
Enjoy!
Hmm, that transparent PNG didn't look very good when thumbnailed. Oh well.
...and I could, I suppose, include an actual link to it: http://wakaba.c3.cx/releases/mac/LaughingMan.zip
Just downloaded and can't get it to work even after restart. Please post again. Looks like a great idea if you can make it work. Thanks.
Hmm? Which one, >>18? It's worked fine for others, and for me. Can you open up Console and see if it says anything when you try and launch it?
Something that would be quite cool: Text field, in which a song name could be typed to spotlight search for it & play in iTunes. Would probably work for artist names too, without any extra effort on the programmer's part (although the resulting songset should be played via "advance track" rather then "play", so that shuffle isn't disregarded.)
I've seen an AppleScript that does this, but not a widget.
Are these mac onry? :(
Until somebody makes a Dashboard implementation for some other platform, yes.
You got pimped here: http://www.dstation.net/modules/mydownloads/index.php
Huh. I wonder how they found out. Did Apple finally add me to their list or something?
(They added my screensavers right away, and even pimped LotsaSnow as a featured download, but they were lazy with the widgets.)
I also notice they all use their own screen shots with different times set up. They are actually running the software and screenshotting it! This is more than I expected.
Your company's name is circleSoft? Is this some sort of pun?
Old name, related to various friends and stuff. No real meaning to it that makes sense outside that group. Apple apparently thinks that if you write software, you MUST BE A COMPANY, so I had to put in something.
I want lauging man on windooooows D:
(Post moved)
I have used the Alarm Clock widget without any problem but once I upgraded to iTunes 5.0 it stopped working...WHY and is this being fixed??
THANKS
That's strange - I upgraded to iTunes 5.0 too, but it seems to be working just fine here. What happens? Does the playlist selector on the back work?
"At the moment, it can't schedule a power-up for wake from sleep for your Mac. I haven't quite figured out how to do that, but if anyone wants it, I'll find out and add it."
Why wouldn't anyone want it to power up when asleep. In fact this could be one of the best widgets ever if it woke up the computer, as it is it is totally useless.
When will Alarm clock wake from sleep as it is useless otherwise?
I keep my computer on all the time, so I don't need that feature. And as I said, I don't quite know how to make it power the computer up. There's also the fact that Dashboard isn't started when the computer powers up, so it'd have to install some furhter startup items to work.
If anyone has any information about how to implement this, I'd be happy to do so, but until then I don't really have any way to do it.
There's still the problem that dashboard doesn't start after a power-on. I'd need to install some alternate timer mechanism that can start the alarm (the computer might get powered off and then on before the alarm is due, too, without the dashboard being opened).
Then look into launchd, too. Although I don't know if it can actually do that, if nothing else can it can't either.
Anybody who wants to make a laughing man logo for Windows is welcome to use the graphics from >>16 for it. The files are available in the zip as PNGs.
Also, >>16 just uses Javascript and the <canvas> object. With a little bit of luck it'll work in Firefox 1.5, which is supposed to have <canvas> support.
perhaps someone could port laughing man to konfabulator...
well, on my emac I can schedule a wake from sleep funtion in the energy saver function in the system panel, but the alarm doesn't play the playlist from itunes. . .I can see the volume fading up but it never plays.
What happens if you flip it over and pick another playlist?
I've tried it with about 10 different playlist. Same thing, I can see the volume control increasing but it never "plays".
That's weird. Can you open up Console.app in Application/Utilities and see if it outputs any error messages when it's supposed to start playing?
this is the error message: Widget: c3.cx.alarmclock, runEditTransition never called.
That's very weird. It makes no sense in the context of a widget, so I'm include to assume it's some sort of internal Mac OS error... I really have no idea what would cause it or how to fix it.
I've seen the error mentioned before, but nobody ever answered what it meant. Apple mailing lists, perhaps?
LAUGHING MAN FOR THE KONFABULATOR ON WINDOWS DAMN. IT.
someone post that laughing man animated .gif, so the windows lusers can set it as their active desktop bg and shut up already
well sometimes it works on a different playlist?! but not on the one i made after downloading the alarm clock!? strange is'nt it?
Jake
it is very strange! I have the same problem as Pete i think, but it always works when i flip it and choose "Depeche mode" ... you guys really like DM don'cha ;-) it's probably one of the most usefull widgets, but how come i cant make it work??
J
Do you use any special characters in the playlist name?
woohaaaa whakaaaaa that was the problem! thanks man!!!! awsome work!
Jake
All right, I've gotta figure out some way to fix that in the future. Luckily, you can work around it until I do.
An update!
http://wakaba.c3.cx/releases/mac/AlarmClock1.2.zip
Fixes the character set bug for playlists (and boy was that a pain in the ass to do), and adds a volume control. No wakeup yet, though.
I've got the same problem that Jake had (i think). When the alarm goes off, it slowly increases the volume in iTunes, but doesn't tell it to play, and doesn't select the playlist. I've selected several different playlists, and none of them work. Any suggestions?
I've got the same problem that Jake had (i think). When the alarm goes off, it slowly increases the volume in iTunes, but doesn't tell it to play, and doesn't select the playlist. I've selected several different playlists, and none of them work. Any suggestions?
Does this still happen with version 1.2?
For anyone who happens to Google up this thread when looking for information about how to move Dashboard widgets, or why there's no moveTo() method for widgets: I just noticed there is actually an undocumented method for moving widgets:
widget.resizeAndMoveTo(x,y,width,height);
It's pretty annoying that Apple decided to disable widget moving, but apparently they left that one in anyway. Hopefully they won't disable it in a future version, but no guarantees. Use it while it's there!
Other fun undocumented toys in Dashboard:
widget.closestCity();
widget.createMenu();
widget.setPositionOffset(x,y);
widget.calculator.evaluateExpression(expression,digits);
widget.onreceiverequest
widget.ontransitioncomplete
I don't really know what all of them do, though. closestCity()
seems to return the name of a big city close to you, probably from the timezone settings or something. widget.createMenu()
is discussed here, it seems: http://forum.macosx.nl/viewtopic.php?t=44191&start=435. widget.calculator.evaluateExpression() is apparently a mathematical expression evaluator. The expression is a string like "(1+2)*3+sin(4)", and digits is the number of digits you want at the most in the answer. I see one Google hit on widget.ontransitioncomplete, warning that it is a bit buggy.
Ehhhhh. It's unfortunate that the widget isn't available in windows format. You know, speaking of which, does any one know how to do the video edit where you put the logo over the face?
ALSO, dead forum, yes, I know, but, I don't suppose anyone made an animated laughing man logo yet? (I've searched already.) I've found screen mates and sreen savers. But no gif.
Suckage.
The shiny orb is the kristall orb I was missing all the time. It was either in repair, broken or both.
Although i know the LaughingMan Widget is based off html and javascript, when i open the package contents and attempt to open the html file in it to view the rotating laughingman, all i see is the rotating text and the image has trouble appearing. I want to be able to put this on my own little web server so that i can have it rotating when my family accesses our media files.
Any ideas? Maybe an animated gif?
It only works reliably in Safari, and it might need some tweaking even there. It uses <canvas>, which I think Firefox does support but with bugs. It's been some time since I checked though.
This is for those who want to see The Laughing Man animated logo working on Windows + Firefox:
http://two.xthost.info/TheLaughingMan/LML.html
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9b4pre) Gecko/2008020708 Minefield/3.0b4pre
Nice, it does work in Camino on OS X, which is using Gecko too. It brings the browser to its knees, but it does work! They've even implemented the tricky clipping stuff it needs to look right.
Hey,
How do I get to display alarm clock on the menu bar as per some of your screenshots on softpedia?
I have no screenshots of "softpedia", whatever that is, so I really don't know what you're talking about.
Actually in Ghost In The Shel Stand Alone Complex 1st Gig the laughing man logo is animated, the text rotates. also can you make an animated gif so i can make a win XP laughing man widget.
quote:
"the real Laughing Man logo doesn't have a simple rotating ring of text, as most people believe, it has a scrolling text that continuously appears and disappears on the right side, and doesn't match up."
You didn't understand the part you replied to.
http://one.xthost.info/TLM/LML_Small-Original.html
http://one.xthost.info/TLM/LML_Small.html
http://one.xthost.info/TLM/LML_Medium.html
http://one.xthost.info/TLM/LML_Large.html
Tested on:
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1
Opera Version 9.51 Build 10081 (Windows)
Built from data and images provided by:
http://wakaba.c3.cx/s/widgets/laughing.html
http://www.ta-sa.org/projects/laughing_man_logo.html
Laughing man widget is kinda broke in Leopard. The text only shows up half the time.
Confirming this, every once in a while the text simply disappears and requires a refresh in order to get it working again. It floods the system log with "CGPathAddArc: invalid value for start or end angle" when the text disappears.
Just thought I'd mention that I grabbed the Laughing Man widget, it's neat. Thanks!
The Shiny Orb is a cool useless widget, indeed XD. If you accept suggestions for new widgets, I think that it's natural evolution is to become a "Tesla ball" or plasma ball or whatever the name is. I'm trying to say something like this: http://flickr.com/photos/23079381@N00/2432714569/
That would be cooler and equally useless!, it's a win/win!. Thanks for the Orb in any case, and for the screensavers and... well, everything on this web. You're The Man.
On Shiny Orb: Useless it may be, but it sure is fun to look at! :D