currentHumidity(city,apiID)

Returns the current humidity for a given city


Syntax

o_currentTemp(city)
city: scalar Text - name of city
apiID: scalar text - API ID from website
return: real -  relative humidity in %

Usage

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

Location

menu: veeos ==> web ==> currentHumidity

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-2025. All Rights Reserved. Stan Bischof (stan@worldbadminton.com). Last updated 13 February 2024 08:50.