Monday, March 30, 2009
Hook Up NYT NewsWire To A Smoke Detector
I've asked the NYTNewsWire object to listen for stories tagged with [Canadian Prime Minister Stephen] Harper. I've set a tolerance of 0, which means that I'll be alerted if stories come up at any frequency. If I wanted the alert to only be published if a LOT of stories about Harper came across the wire (if he were, say, to resign, or be impeached, or disappear, or other such good news), I can adjust this frequency number. Here, I'll only be alerted if more than 25% of the wire stories are about him.
Obviously, we can set up any number of filters and get our alerts to be specific as possible. Which is useful if you are going to, say, be hooking up the alert to a 85 dB smoke alarm.
Posted by Giles Bowkett at 4:00 PM