Skip to content

Subheading Parameter

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

Subheading[0] Subheading

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
$updated Observation Time String Last Updated on Mar 4 2018, 8:51 pm EST
$iso8601 Observation Time in ISO 8601 format 2018-02-11T08:52:00-05:00
$rfc822 Observation Time in RFC 822 format Sun, 04 Mar 2018 20:51:00 -0500
$dtformata Observation Time in Date Format A 03/04/2018
$dtformatb Observation Time in Date Format B 2018-03-04
$dtformatc Observation Time in Date Format C February 11, 2018
$icao Location ICAO Station ID KJFK
$location Location String New York, Kennedy International Airport, NY
$lsat Location ICAO Station ID plus About Title KJFK Current Observation
Example

Subheading[1] Color

By using the Color element you can tell the API what color should be used for the sub-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

Subheading[2] Height

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

Example

Subheading[3] Font Family

By using the Font Family element you can tell the API what font family should be used for the sub-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