Christopher Parks
Software Developer

Christopher Parks

Software Developer

/ TTMS Data API

The API was developed to manage data requests for meteorological and climatological information on both the TTMS website and mobile app. It handles CAP warnings, climate products, current weather, METAR, and forecasts. Existing web services were integrated for compatibility and stability, ensuring reliable delivery of information for public consumption and future scalability.

 

Endpoint request:

https://metproducts.gov.tt/ttms/public/api/elNino

JSON Output:

{"elnino":{"id":53,"headline":"A transition from El Ni\u00f1o to ENSO-neutral conditions is likely by April with increasing odds for a La Ni\u00f1a developing in August 2024.","month":null,"year":null,"summary":null,"content":"<p style=\"text-align:justify;\"><span style=\"color:black;\">In January 2024,&nbsp;<\/span>sea surface temperatures&nbsp;<span style=\"color:black;\">continued to be above average in the equatorial Pacific Ocean while positive anomalies slightly weakened in the eastern Pacific Ocean. The latest&nbsp;<\/span>Ni\u00f1o indices show values that are more than positive 1.4 <sup>0<\/sup>C in all except for the NINO 1+2 region where its weakest index of +0.9 was observed. The area-averaged subsurface temperature anomalies are consistent with elevated subsurface temperatures across the central equatorial&nbsp;<span style=\"color:black;\">Pacific Ocean<\/span>. Climate models have indicated with a high probability (79%) that a change to ENSO-neutral conditions may occur in April and with increasing odds for La Ni\u00f1a conditions developing in August 2024.<\/p><p style=\"text-align:justify;\"><strong>What does this mean for Trinidad and Tobago?<\/strong><\/p><p style=\"text-align:justify;\">The ENSO-neutral event increases the likelihood of near-normal climatic conditions to occur. Historically, during an ENSO-neutral event, near-normal rainfall amounts would occur within Trinidad and Tobago, but not always. ENSO-neutral conditions will likely have little influence on local rainfall, and therefore will allow local and regional rainfall climatic systems to influence rainfall amounts during the months of April to July 2024.&nbsp;<\/p>","created_at":"2024-02-23 16:26:16","updated_at":"2024-02-23 16:26:58","user_id":42,"meteorologist_id":null,"web_images":[],"mobile_images":null,"issued_at":"2024-02-23 12:26:58","month_end":null,"enso_outlook":"84","flag":1,"published":1,"expires":null,"facebook_posted_at":null,"twitter_posted_at":null,"instagram_posted_at":null,"whatsapp_posted_at":null},"elnino_images_url":"https:\/\/metproducts.gov.tt\/MET\/public","gauge":"{\"angle\":0,\"lineWidth\":0.479999999999999982236431605997495353221893310546875,\"radiusScale\":1,\"pointer\":{\"length\":0.65000000000000002220446049250313080847263336181640625,\"strokeWidth\":0.01499999999999999944488848768742172978818416595458984375,\"color\":\"#000000\"},\"limitMax\":false,\"limitMin\":false,\"colorStart\":\"#6F6EA0\",\"colorStop\":\"#C0C0DB\",\"strokeColor\":\"#EEEEEE\",\"generateGradient\":true,\"highDpiSupport\":true,\"staticLabels\":{\"font\":\"20px sans-serif\",\"labels\":[{\"label\":\"La Nina\",\"value\":10},{\"label\":\"La Nina Watch\",\"value\":30},{\"label\":\"Neutral\",\"value\":50},{\"label\":\"El Nino Watch\",\"value\":70},{\"label\":\"El Nino\",\"value\":90}],\"color\":\"#000000\",\"fractionDigits\":0},\"staticZones\":[{\"strokeStyle\":\"#558ed5\",\"min\":0,\"max\":20},{\"strokeStyle\":\"#b7dee8\",\"min\":20,\"max\":40},{\"strokeStyle\":\"#d9d9d9\",\"min\":40,\"max\":60},{\"strokeStyle\":\"#ffc000\",\"min\":60,\"max\":80},{\"strokeStyle\":\"#996633\",\"min\":80,\"max\":100}]}"}

JSON output used to build view:

 

- Role: Web Assistant at Trinidad and Tobago Meteorological Services Division

Other endpoints

https://metproducts.gov.tt/ttms/public/api/tourismForecasts?only=latest
https://metproducts.gov.tt/ttms/public/api/agromet
https://metproducts.gov.tt/ttms/public/api/dryWetSpells
https://metproducts.gov.tt/ttms/public/api/rainTempOutlook