Skip to main content
Pre-release

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

  1. "database_file" - sqlite database file for weather data caching. Defaults to "weather.sqlite" in the agent's data directory

  2. "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.

  3. "poll_locations" - list of locations to periodically poll for current data.

    1. For current weather, the only supported location format is station id. Format: [{"station": "KLAX"}, {"station": "KBOI"}]
    2. For hourly forecast supported location formats are
      1. wfo, x, y - Format: {"wfo": 'BOU', 'x': 54, 'y': 62}
      2. 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
      3. 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
  4. "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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

volttron_weather_dot_gov-2.0.0rc1.tar.gz (10.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

volttron_weather_dot_gov-2.0.0rc1-py3-none-any.whl (12.5 kB view details)

Uploaded Python 3

File details

Details for the file volttron_weather_dot_gov-2.0.0rc1.tar.gz.

File metadata

  • Download URL: volttron_weather_dot_gov-2.0.0rc1.tar.gz
  • Upload date:
  • Size: 10.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.10.20 Linux/6.8.0-1062-azure

File hashes

Hashes for volttron_weather_dot_gov-2.0.0rc1.tar.gz
Algorithm Hash digest
SHA256 3b64e73dfa85561b7780d2ad334cc146291378792033cb1f1353fdbaf8839b23
MD5 5e64f47f207298316a4bea8a832e5708
BLAKE2b-256 55fd06d0d56349a14b261995d7f6812c6df935f5fb745618c8e5de8d6cb0ae31

See more details on using hashes here.

File details

Details for the file volttron_weather_dot_gov-2.0.0rc1-py3-none-any.whl.

File metadata

File hashes

Hashes for volttron_weather_dot_gov-2.0.0rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 b4354cf83d892f94135ee68d1419b25e9d132eaa54eabc2cd7eb1d7de472cf51
MD5 0acedce9010352c2845c6453a967a6c8
BLAKE2b-256 c76bc42554f9a61c3a58c9ced3ddef69e455d60339f9fa315b2d8c5cbdb937c6

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

2.0.0rc1 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page