Skip to content

Forecast Heading Parameter

The Forecast Heading parameter is a 4 element, comma delimited array holding the settings used for defining the table's heading, color, height and font family.

Forecast Heading[0] Heading

By using the Heading element you can tell the API what text you want displayed as the table's heading. Any allowed URL encoded string that is 31 characters or less is allowed.

Also, these codes are allowed to return specific weather observation data:

String Description Example
$created Creation Time String Created on Aug 12 2018, 9:58 am GMT-0400
$iso8601 Creation Time in ISO 8601 format 2018-08-12T09:58:10-04:00
$rfc822 Creation Time in RFC 822 format Sun, 12 Aug 2018 09:58:10 -0400
$dtformata Creation Time in Date Format A 08/12/2018
$dtformatb Creation Time in Date Format B 2018-08-12
$dtformatc Creation Time in Date Format C August 12, 2018
$latlon Location Latitude and Longitude 40.64,-73.76
$location Location String Inwood, NY
$days Number Of Days In The Forecast String Three Day Forecast
Example

Forecast Heading[1] Color

By using the Color element you can tell the API what color should be used for the heading text. Any valid hex triplet is allowed. Do not send the "#", however. A useful tool to help you is the HTML Color Picker.

Example

Forecast Heading[2] Height

By using the Height element you can tell the API what size, in pixels, should be used for the heading text. Integer values between 10 and 999 are allowed.

Example

Forecast Heading[3] Font Family

By using the Font Family element you can tell the API what font family should be used for the heading text.

String Font Family Example
palatino "Palatino Linotype", "Book Antiqua", Palatino, serif The quick brown fox jumps over the lazy dog.
times "Times New Roman", Times, serif The quick brown fox jumps over the lazy dog.
verdana Verdana, Geneva, sans-serif The quick brown fox jumps over the lazy dog.
trebuchet "Trebuchet MS", Helvetica, sans-serif The quick brown fox jumps over the lazy dog.
courier "Courier New", Courier, monospace The quick brown fox jumps over the lazy dog.
lucida "Lucida Console", Monaco, monospace The quick brown fox jumps over the lazy dog.
repetition "Repetition Repeating", monospace The quick brown fox jumps over the lazy dog.
Example