Facebook LED blink on new notifications and messages by Stonos
In this instructable I will show you how to make a LED blink when you have a new notification or message on Facebook via the parallel port. Check out the following video for a demonstration:


It is a quick and easy project to do, provided you have the required stuff.
 
Remove these adsRemove these ads by Signing Up

Step 1: How does it work?

There are two parts that power this project.

The first part is a small program that turns on or off the LEDs that are on a parallel port using inpout32.dll. The program hosts a tiny server that its one and only purpose is to understand HTTP requests.

The second part is a Greasemonkey script that detects when you have a new notification/message.
If you have a new notification or a message, the script will request a URL from the server the program described above hosts, and the program will understand the URL, and will start blinking the requested LED.
After you read your new notification/message, the script will request the same URL as before, which tells the program to stop blinking the LED.

Simple eh?
1-40 of 94Next »
Matthay213 says: Mar 13, 2013. 6:01 AM
Hello, My message light don't work with the message box up and minimized. It will turn on with the link provided but not when i get a new message. Any ideas?
brunoip says: Jul 4, 2012. 9:12 AM
Can you upload the LED Blinke again? The link is not working
Stonos (author) says: Jul 4, 2012. 3:01 PM
Sorry about that. I attached the zip to step 3.
webart says: Aug 6, 2010. 7:02 AM
hi guys I just wonder, can I use this and make it work same way ? http://www.dcs.dk/CNet/digitalcontent/ccs/6D1382DF-846B-4B5A-B64C-85D337E875AF.jpg
Stonos (author) says: Aug 6, 2010. 11:00 AM
Sorry, as far as I know, USB-to-parallel cables won't work :(

If your computer doesn't have a parallel port, then you'll have to get a PCI-to-parallel controller (unless you are on a laptop, so you're out of luck). I use this one, but if you can't find that particular model in your country, then you can try this one, which should work, since it uses a chip similar to my card.
cooltech786 says: Aug 7, 2010. 2:57 PM
any chance this can be done with a serial port (unfortunately dont have a parallel port or any open PCI ports) - Thanks!
Stonos (author) says: Aug 7, 2010. 4:27 PM
Unfortunately, I don't think it can be done with a serial port. Sorry :(
DarkStar851 says: Aug 7, 2010. 4:40 PM
Yeah, Serial ports are strictly rx/tx data transmission pins. No voltages suitable for LED fun. :(
AZsid says: Jan 29, 2012. 11:31 PM
Oh, it can be done. I don't know about this script but I've been doing it in VB by switching the DTR and RTS pins on and off to tell me if I have email. I've also been doing it with a USB to Serial adapter so I don't need an on board serial port.

I guess the first step is to see if inpout32.dll ca handle serial port action or if it strictly does parallel ports.
JTigchelaar says: Dec 29, 2010. 2:53 PM
the message light doesnt work? plz help
Stonos (author) says: Dec 30, 2010. 8:28 AM
As described in step 6, there are some limitations regarding the message LED: "The part that detects new messages has a limitation: You must already have a chat window open and minimized with the person that sends you the message; otherwise, the new message will not be detected."

Make sure that the LED is correctly connected (does the message LED start blinking when you visit http://127.0.0.1:4012/6/on ?). Also, make sure that you're using version 1.2 or newer of the script.
JTigchelaar says: Dec 30, 2010. 9:31 AM
oh its for chat not an actual inbox! Is there an way to modify the script so it detedts inboxes?
Stonos (author) says: Dec 30, 2010. 10:31 AM
Replace line 12 ("var notifCount = jc.getElementsByTagName("span")[0];") with "var notifCount = document.getElementById("jewelInnerUnseenCount");".

Keep in mind that this will replace the new notification blink function. If you want to keep both functions, I can modify the script for you to include both functions.
JTigchelaar says: Dec 30, 2010. 7:07 PM
please do
Stonos (author) says: Jan 1, 2011. 5:03 AM
The script has been updated :)
JTigchelaar says: Jan 1, 2011. 7:56 PM
does the new code only use the one LED becasue the one still wont flash when i get a message
Stonos (author) says: Jan 2, 2011. 2:40 AM
Yes, it's still on LED 1.

Some questions:
Does the LED blink when you go to http://127.0.0.1:4012/1/on ?

When you receive a message on Facebook, does it say that you've got an unread message at the top of the page (where the friend requests and notification buttons are)?
JTigchelaar says: Jan 2, 2011. 12:46 PM
Yes they both work when i test them with the link but not when i recieve a message i doesnt flash
Stonos (author) says: Jan 2, 2011. 1:47 PM
That's weird. Does Facebook show you that you have an unread message (the same way that it shows you that you have an unread notification)? Also, does the script work for notifications?
JTigchelaar says: Jan 2, 2011. 3:16 PM
ya it shows when i have an unread message and the LED notification light works fine
Stonos (author) says: Jan 3, 2011. 3:14 AM
I'm not sure why it's not working for you :/

Any errors in the error console related to my script (in Firefox, go to Tools -> Error Console and click Errors. Do that after Facebook has finished loading)?
oldsmarracin says: Dec 20, 2011. 7:31 PM
i get an error in chrome
uncaught type error: can not read property 'location' of undefined

please help
JTigchelaar says: Jan 1, 2011. 6:31 AM
Thanks so much
Origommi says: Nov 6, 2011. 12:52 AM
Anyway to make this talk to a USB LED instead?
'главчев'' says: Oct 16, 2011. 4:14 PM
I have a problem. Everything works properly, manually start and stop the LEDs. When I start the plugin with Facebook lose manual control. Nothing flashes and can not run LEDs manually. I can restore manual control only when I stop the plugin and process from Task Manager and start again LEDblinker. Guess the plugin is out off date, but don't know what needs to change.

(I try the plugin both on Mozzila and Chrome. Also, i use Windows 7, if there matters)
Stonos (author) says: Oct 17, 2011. 12:32 PM
I have released an update to LEDBlinker (same URL).
Please try it and tell me if it fixes your problem.
'главчев'' says: Oct 19, 2011. 11:17 AM
Works excellent! Thank you very much. :)
mlakhwani says: Aug 27, 2011. 6:08 AM
dear sir,
in my case both the led's are working with your given link but not with gresemonkey script...is that due to new facebook pattern or some thing else..please help me out....

regards
Stonos (author) says: Oct 17, 2011. 12:41 PM
I made a small change to the Greasemonkey script which might fix your problem.

I have also released an update to LEDBlinker (same URL).
Please try it and tell me if it fixes your problem.
areyie ahmad says: Oct 9, 2011. 1:22 AM
me too. :(
help me pls
Stonos (author) says: Oct 17, 2011. 12:42 PM
I made a small change to the Greasemonkey script which might fix your problem.

I have also released an update to LEDBlinker (same URL).
Please try it and tell me if it fixes your problem.
areyie ahmad says: Oct 21, 2011. 10:19 PM
Works excellent.!
thank a lot Stonos.!
huang.wencong says: Mar 25, 2011. 10:29 PM
Can you do the same thing for Twitter? Like Twitter replies (@mention) and Twitter Direct Messages?
baven says: Mar 14, 2011. 10:56 AM
I have built one
LED Blinker.jpg
possum888 says: Nov 13, 2010. 11:16 PM
Before I embark on this, has anyone had any success using this with a USB-to-Parallel adapter? I can use this on a computer which has a parallel port, but I'd prefer if I could use this on my laptop, which doesn't have a parallel port.
tuckersaspy says: Nov 29, 2010. 12:07 AM
Usb to parallel adapters do not work on anything but printers, i did a project last year making a cnc driver and did extensive research on the topic because i too wanted to use it on my laptop, there were a few models that claimed to be "fully intigrated" or whatever but the cheapest one was 465 usd
account3r2 says: Sep 28, 2010. 5:14 PM
what are the other holes for?
atilimizgu says: Sep 8, 2010. 6:28 AM
i just finished project that works really good :)) but my green led is blinking on only chat window when somebody post some thing..
beehard44 says: Aug 29, 2010. 5:21 AM
it works! i added a parallel port switch to switch from printer to "FB Notificationator"
beehard44 says: Aug 29, 2010. 1:01 AM
it's so weird how nearly everyone of you aren't reliant on your parallel ports...

i just can't let go of my canon BJC1000SP....
1-40 of 94Next »
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!