Push streaming service arguments
The push streaming service accepts most Station Selection Parameters consistent with the Weather API service. This guide outlines all the parameters the Push Streaming Service accepts.
Web Socket Connection Arguments
Domain Selection
Argument | Description Example |
---|---|
| Provide a list of state codes to limit the observation domain to consider. |
| Provide a list of network IDs to consider. All other observations are ignored. |
| Provide a latitude and longitude with a radius in miles. Only observations originating from the radius will be considered. Alternatively, provide a station ID and a radius. |
| Provide a list of NWS county warning areas as the domain to consider. |
| Provide a list of NWS fire zones as the domain to consider. |
| Provide a bounding box as the domain to listen to. The rectangle must be in the form of ( |
| Provide a distinct set of stations to monitor. Only these stations will have data returned. |
Sensor and Data Checks
Argument | Description Example |
---|---|
| Provide a list of sensor names to limit returning only those data elements. Sensor names are in the form found on the Mesonet data API. All names are identical. The response returned will contain these names as the sensor as well. Omitting this argument will return all available sesnsors for the matching stations within the selection domain. |
| A list of data checks that remove observations matching the given list. By default, no observations will be returned that have been flagged with a failed range test (sl_range_check). It is up to the user to decide what flags are important to apply to the data based on the use case. |
Filter Conditions
Argument | Description Example |
---|---|
| Set of conditional expressions defined similar to a SQL where statement. Only data matching the criteria set will be returned in the feed. Each condition must be enclosed within parenthesis and have a sensor name, evaluator, and value. Conditional phrases may be chained together with “and” or “or” operators. Nested conditional phrases may also be used to create complex queries. All nested phrases must also be enclosed with parenthesis. Allowed evaluators include: |
Time Selection
Argument | Description Example |
---|---|
| Provide a number of minutes behind the current time to start the feed. Once all observations have been returned for matches prior to the current time, the feed will resume in real-time mode. This option is useful to “seed” an application with recent data for trending. |
Units and Metadata
Argument | Description Example |
---|---|
| Provide the units to return data in. Default is metric and the absence of this argument is metric. Note, the filter_on comparison values will match the units provided. For example, if mph is set for wind, then a filter of (wind_gust > 30) will look for gusts greater than 30 miles per hour. |
| Select if metadata is also returned within the responses. By default, all stations and units will return metadata. The metadata responses will always return within their own discrete messages in the feed, noted with the type of “metadata”. If metadata is not needed, adding a value of 0 or off will disable it. Metadata is returned exactly once for any unique station or unit seen within the feed. Metadata will always be sent prior to any observation the first time it is seen from any new connection. It is the developers responsibilty to organize metadata to be useful when applicable. |