2

I make use of the chat-room facilities provided on Stack Exchange, in particular I visit the main one specifically for the Raspberry Pi, i.e. "The Bakery". It is possible to be notified when someone addresses or targets a message to someone who has been there (recently I believe) - I would like to automate this to make an electronic "ear-burner" as it were to flash an LED (well drive the Pin up and down for say 1 second high every 20 seconds for an hour after a mention of my identity) on a free GPIO pin!

At present I am using the Iceweasel browser on my Debian desktop and there is a version for the Raspbian RPi that I have installed - I am using FireFox sync and I have just done that for the RPi. Besides that what would I need to put onto a Pi so that it could listen out for messages/mentions that are targeted to me and alert me when that happens? I have Greasemonkey but I do not think it can communicate beyond the browser (cannot read/write a file or pipe that an interface to the hardware would need).


EDIT: The issue here I feel that does make it RPi relevant even if not total RPi specific is the linkage of content on a Web-page, which is not something that the user has authorship or control over, to something OUTSIDE of the web-browser. For very good reasons, things like JavaScript are sand-boxed, so that they cannot affect the local machine that the browser is running on - I think that things like "greasemonkey" may help a little here but I can't see how! The sort of situation I conceive needs to "climb out of the sand-box" (under carefully scripted conditions, of course) I want some way for a "chat mention" to trigger a response in the RPi's hardware - but fundamentally I cannot see how that can come about without the ability to "write" to a local "file" or more likely a "pipe" to a daemon that can respond and change the state of a GPIO pin as required.

Whilst my particular idea is for targeting the RPi SE Chat page - the general concept of controlling the local hardware from the confines of a browser has a wider application in the RPi environment I am sure.

closed as off-topic by Steve Robillard Jan 3 '16 at 20:49

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question does not appear to be specific to the Raspberry Pi within the scope defined in the help center." – Steve Robillard
If this question can be reworded to fit the rules in the help center, please edit the question.

  • This might come in handy (once you've sorted out all the other engineering problems): space.stackexchange.com/a/12622 – Ghanima Jan 3 '16 at 19:34
  • The android app on my tablet sounds a tone when this happens (at least for the main site - it may also for the bakery). You may also want to check the SO API and roll your own. – Steve Robillard Jan 3 '16 at 20:22
  • This may help as well stackapps.com – Steve Robillard Jan 3 '16 at 20:47
  • My PC browser also makes that tone - it is part of the JS for the chat page that retrieves and plays "//cdn-chat.sstatic.net/chat/se.mp3" - so it is using a remote resource and utilising audio capabilities built-in to the browser - not sure that that is something I could hook into... 8-( – SlySven Jan 5 '16 at 12:09