Skip to content

Examples

Here are just some of the possibilities of what can be done with the Weather API.

Example 1

This link will return the current observations from Kennedy International Airport in a simple text string:

https://rest.omegatower.ninja/weather/nws?icao=kjfk

Result

Example 2

This link will return the current observations from Kennedy International Airport in a simple HTML page:

https://rest.omegatower.ninja/weather/nws?icao=kjfk&current=a,n,ts,n,ws&format=,,0&html=page,$lsat&table=,left,99ccff&border=5,ridge,9933ff&heading=$lsat,,24,verdana&icon=100,left&text=400,center,,,verdana

Result

Example 3

This link will also return the current observations from Kennedy International Airport in a simple HTML page, but this time simulating the IoT Weather Clock I built and using the By GUID resource:

https://rest.omegatower.ninja/weather/guid?guid=4720ab89-1d5c-4e4d-9b3d-319a3ca56087

Result

Example 4

This link will return the current observations and forecast from Kennedy International Airport in a simple HTML page using the By GUID resource:

https://rest.omegatower.ninja/weather/guid?guid=3d23866b-ecc8-4b9e-93ff-b04a5a09e8e8

Result