Then there are numerous additional parameters representing measurements. The value for dateutc may also be a date. Obviously, DEVICE_ID and DEVICE_KEY should be replaced with the values specific to your case. So, any successful request must include these GET parameters: ID=,PASSWORD=,action=updateraw,dateutc=now Alternatively, the API allows the string ‘now’ when you do not want to supply a specific timestamp for the measurement. Note that the timezone should be UTC, and not the timezone local to the weather station. The date parameters should be a date in format’ dd-MM-YYYY HH:mm:ss’. When sending an update, the action type for your request must be set to ‘updateraw’. There are two other required parameters, action and dateutc. These two values must be passed along with the request as parameters ID and PASSWORD. In your WU account, you have the option to add devices, which receive an ID and a KEY upon creation. There are a few required GET parameters to get any request to their API to work.įirst, you need to identify the device the update is intended for. WU requires a GET request to the following URL: How are updates sent? Below, I assume you know how to execute an HTTP request from whatever piece of code you may have running that processes your data. The API documentation is not the easiest to find. This PWS page is updated once a minute through an automatic process running on the Meteodrenthe server. Nevertheless, it is still one of the most popular websites for PWS owners. I realize that the name of WU has been tarnished in recent years. Since all data processing for Meteodrenthe is custom made, this includes sending updates to Weather Underground (WU).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |