The callback function must include three parameters to take the request’s error status, Weather Underground’s response and Weather Underground’s current conditions data. The getConditions() method sends an asynchronous request to Weather Underground’s current conditions endpoint. The newLocation parameter must use the location formatting rules found in the Class Usage section above. The setLocation() method updates the location used for all Weather Underground requests with the new location that is passed in. The getLocation method returns the location used for your Weather Underground requests. Wunderground <- Wunderground(WUNDERGROUND_KEY, LOCATION) The location string can take the form of any of the following: The class’ constructor takes two required parameters: Parameter Class Usage Constructor: Wunderground( apiKey, location) To include this library in your project, add #require ":1.0.0"Īt the top of your agent code. Click here to see information on the available versions of this library. You can view the library’s source code on GitHub. All Weather Underground requests in this library are sent asynchronously and require a callback function to handle the requested data. To use Weather Underground, you will need to create an API key here. Weather Underground is a commercial weather service that provides real-time weather information via the Internet.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |