![]() ![]() For a full list of conditions included in the response table see Wunderground’s documentation, but for quick reference, here is an example response containing current conditions data (partial list): Įxample Code wunderground. is Your Personal Online Weather Data Dashboard. The weather station also calculates dew point, wind chill and heat index. Also included inside the console is temperature, humidity and barometric pressure. 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 weather station measures wind speed, wind direction, rainfall, outdoor temperature and humidity, solar radiation and UV. 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. |