diff --git a/plugins/weather/wunderground_ b/plugins/weather/wunderground_ index 3121569a..39381775 100755 --- a/plugins/weather/wunderground_ +++ b/plugins/weather/wunderground_ @@ -21,7 +21,7 @@ the usual unit for precipitation. =head1 CONFIGURATION [wunderground] - env.api_key 6532d6454b8aa370768e63d6ba5a832e # this is the default; it seems to be what the website uses + env.api_key e1f10a1e78da46f5b10a1e78da96f525 # this is the default; it seems to be what the website uses env.station_id KCASANFR1708 env.units metric # optional, this is the default env.base_url # optional, default to https://api.weather.com/v2/pws/observations/current @@ -35,7 +35,7 @@ will be ignored if present), and only one section can be used for all instances of the plugin. [wunderground_*] - env.api_key 6532d6454b8aa370768e63d6ba5a832e # this is the default; it seems to be what the website uses + env.api_key e1f10a1e78da46f5b10a1e78da96f525 # this is the default; it seems to be what the website uses env.units metric # optional, this is the default env.base_url # optional, default to https://api.weather.com/v2/pws/observations/current env.connect_timeout 1 # optional, amount to wait for requests, in seconds @@ -58,7 +58,7 @@ SPDX-License-Identifier: GPL-3.0-or-later # Example output # -# curl 'https://api.weather.com/v2/pws/observations/current?apiKey=6532d6454b8aa370768e63d6ba5a832e&stationId=KCASANFR1708&numericPrecision=decimal&format=json&units=m' +# curl 'https://api.weather.com/v2/pws/observations/current?apiKey=e1f10a1e78da46f5b10a1e78da96f525&stationId=KCASANFR1708&numericPrecision=decimal&format=json&units=m' #{"observations":[{"stationID":"KCASANFR1708","obsTimeUtc":"2020-06-15T06:30:54Z","obsTimeLocal":"2020-06-14 23:30:54","neighborhood":"Van Ness - Civic Center","softwareType":"Weather logger V3.0.8","country":"US","solarRadiation":null,"lon":-122.423,"realtimeFrequency":null,"epoch":1592202654,"lat":37.788,"uv":null,"winddir":null,"humidity":90.0,"qcStatus":1,"imperial":{"temp":58.6,"heatIndex":58.6,"dewpt":55.8,"windChill":null,"windSpeed":null,"windGust":null,"pressure":29.85,"precipRate":null,"precipTotal":null,"elev":187.0}}]} set -eu @@ -75,7 +75,7 @@ STATION_ID="$(echo "${PLUGIN_NAME}" | sed 's/.*_//')" # Use the station ID from the config only if the plugin doesn't specify one STATION_ID=${STATION_ID:-${station_id:-KCASANFR1708}} -API_KEY=${api_key:-6532d6454b8aa370768e63d6ba5a832e} +API_KEY=${api_key:-e1f10a1e78da46f5b10a1e78da96f525} UNITS=${units:-metric} BASE_URL=${base_url:-https://api.weather.com/v2/pws/observations/current} CONNECT_TIMEOUT=${connect_timeout:-1}