Periods Parameter

Using the parameter 'periods' will limit the numbers of periods returned, regardless of how many are sent in the NWS data.

If NWS sends fewer periods than requested using this parameter, the number of periods actually in the NWS data are all that will be returned.

Example Link:

http://api.parfait.snarkybox.com/forecast?lat=33.94&lon=-118.4&layer=high&periods=2

What that link returns will look like this if viewed in a browser:

hi*00*2013-09-26T00:00:00-06:00*Snow. Low around 26. North wind 9 to 11 mph. Chance of precipitation is 100%. Total nighttime snow accumulation of 4 to 8 inches possible.~hi*01*2013-09-26T06:00:00-06:00*Snow. High near 34. North northeast wind 9 to 13 mph becoming south in the morning. Winds could gust as high as 20 mph. Chance of precipitation is 100%. New snow accumulation of 1 to 3 inches possible.~|