Practical Perl Tools: The Whether Man
David N. Blank-Edelman
There’s a character in The Phantom Tollbooth by Norton Juster (one of my favorite books) called the Whether Man. He introduces himself like this:
"I'm the Whether Man, not the Weather Man, for after all it's more important to know whether there will be weather than what the weather will be."
In this column we’re going to see if we can indeed bring weather to our programs. To do so, we’re going to make use of the API provided by The Dark Sky Company, the people behind the popular app of the same name (and also the people who provided the API service forecast.io, renamed as of this week to the Dark Sky API). The API service they provide is a commercial one, so if you plan to build something that will hit their API more than a thousand times a day, you will need to pay. But for the experiments in this column, we should be pretty safe from the $0.0001 per forecast fee.