This release is a pre-release and may not be stable for production use.
WeatherDotgov Agent
This agent provides the ability to query for current and forecast weather data from NOAA. The agent extends BaseWeatherAgent that provides caching of recently requested data, as well as mapping of weather point names from NOAA's naming scheme to the standardized CF-conventions scheme.
Configuration
The following is an example configuration for the Weather.gov agent. All configuration parameters are optional.
Parameters
-
"database_file" - sqlite database file for weather data caching. Defaults to "weather.sqlite" in the agent's data directory
-
"max_size_gb" - maximum size of cache database. When cache exceeds this size, data will get purged from cache until the cache is within the configured size.
-
"poll_locations" - list of locations to periodically poll for current data.
- For current weather, the only supported location format is station id. Format: [{"station": "KLAX"}, {"station": "KBOI"}]
- For hourly forecast supported location formats are
- wfo, x, y - Format: {"wfo": 'BOU', 'x': 54, 'y': 62}
- latitude, longitude - Format: {"lat": 39.0693, "long": -94.6716}. Weather agent will first lookup wfo,x,y for the given latitude and logitude and then get the forceast data based on wfo, x, y
- station id - Format: [{"station": "KLAX"}, {"station": "KBOI"}]
The input list can contain valid locations with different formats. For example,
[{"station": "KLAX"}, {"station": "KBOI"}, {"wfo": 'BOU', 'x': 54, 'y': 62}]is a valid input list for hourly forecast
-
"poll_interval" - polling frequency or the number of seconds between each poll.
{ "database_file": "weather.sqlite", "max_size_gb": 1, "poll_locations": [{"station": "KLAX"}, {"station": "KPHX"}], "poll_interval": 60 }
Registry Configuration
The registry configuration file for this agent can be found in agent's data directory. This configuration provides the point name mapping from NOAA's point scheme to the CF-conventions scheme by default. The file leaves the unit name columns for each point blank, as this agent does not include unit conversion. Points that do not specify 'Standard_Point_Name' were found to not have a logical match to any point found in the CF-Conventions. For these points NOAA point names (Service_Point_Name) will be used.
| Service_Point_Name | Standard_Point_Name | Service_Units | Standard_Units |
|---|---|---|---|
| heatIndex | |||
| presentWeather | |||
| seaLevelPressure | air_pressure_at_mean_sea_level | ||
| temperature | air_temperature |
Notes
The WeatherDotGov agent does not utilize an API key, as NOAA allows users to gather weather data for free, and does not provide nor require keys.
This implementation of the weather agent does not include historical weather data, as NOAA does not provide an accessible endpoint from which historical data may be obtained.
Data provided by NOAA is in a nested dictionary format. The base weather agent does not handle unit conversion for arbitrary nested dictionary format and hence this agent does not support unit conversion at this time.
Metadata
Release files for volttron-weather-dot-gov 2.0.0rc2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| volttron_weather_dot_gov-2.0.0rc2.tar.gz | 10.6 kB | Without provenance | Details for volttron_weather_dot_gov-2.0.0rc2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| volttron_weather_dot_gov-2.0.0rc2-py3-none-any.whl | Python 3 | none | any | Details for volttron_weather_dot_gov-2.0.0rc2-py3-none-any.whl |
Total release size: 23.1 kB
Release files / volttron_weather_dot_gov-2.0.0rc2.tar.gz
| Download URL | volttron_weather_dot_gov-2.0.0rc2.tar.gz |
|---|---|
| Size | 10.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4d3f3b1d255d2e91dbbb3546cb7b385dda20ce906d7eec879e628217b57e9e2e
|
|
BLAKE2b-256 checksum How to use checksums |
807d788860815a00de71c99cad165f376808a979b6cad4b595cf5afb1f7a4b70
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.1 CPython/3.10.20 Linux/6.8.0-1062-azure
|
Release files / volttron_weather_dot_gov-2.0.0rc2-py3-none-any.whl
| Download URL | volttron_weather_dot_gov-2.0.0rc2-py3-none-any.whl |
|---|---|
| Size | 12.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3cee60e77ba43d2ccb2ef97a23d24ff8887add9092a78fe215cb9ed06ec89054
|
|
BLAKE2b-256 checksum How to use checksums |
2d3fc32244ac068568f140f2b07cddb9a6859fdb4b5589af2abbacb0a633b18b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.1 CPython/3.10.20 Linux/6.8.0-1062-azure
|
Security for volttron-weather-dot-gov 2.0.0rc2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.