currentTemp(city,apiID)

Returns the current temperature for a given city


Syntax

currentTemp(city)
city: scalar Text - name of city
apiID: scalar text - API ID from website
return: real -  temperature in deg F

Usage

Queries the web for current temperature. City can be specified by full name, or for the USA, by zip code.

Location

menu: veeos ==> web ==> currentTemp

library: netLib

Example

Notes

This function takes advantage of the published API from openweathermap.org. Obtain your user ID by registering with openweathermap. The ID is free and will be usable for all API calls from openweathermap.org. Since this depends upon web services and the concomitant network connectivity, plus potential non-availability of specific location data, expect occasional intermittent behavior.

Reference

Dependencies

Supported On

VEE 7.0+, all platforms

See Also

longLat, currentTemp


© 2015. All Rights Reserved.  Stan Bischof (stan@worldbadminton.com). Last updated 20 October 2015 20:38. © 2015.