GithubHelp home page GithubHelp logo

ciejer / metservice-weather Goto Github PK

View Code? Open in Web Editor NEW
15.0 1.0 0.0 110 KB

Metservice New Zealand component for Home Assistant

License: MIT License

Python 99.08% Shell 0.92%
hacs hacs-integration homeassistant weather

metservice-weather's Introduction

MetService New Zealand Weather integration for Home Assistant

View weather data from MetService (NZ), including daily & hourly forecasts, as well as:

  • Current condition
  • Temperature
  • Air pressure & trend
  • Humidity
  • Wind speed
  • Gusts & direction
  • UV index
  • Pollen levels & type
  • Clothes drying times (my reason for creating)
  • Tides

Installation

There are two main ways to install this custom component within your Home Assistant instance.

HACS (recommended)

  1. Install HACS, if you did not already
  2. Open your Home Assistant instance and open a repository inside the Home Assistant Community Store.
  3. Install the MetService New Zealand Weather integration
  4. Restart Home Assistant

Manually

Copy all files in the custom_components/metservice_weather folder to your Home Assistant folder config/custom_components/metservice_weather, then restart Home Assistant.

Getting started

Once installed:

  1. Browse to Configuration->Devices & services
  2. Click + ADD INTEGRATION
  3. Search for MetService New Zealand Weather, then select it
  4. Select your location and any other settings (as required)

Known issues

See here. I tested about 5 locations and all working, but there's some weirdness around different areas.

Future enhancements

Please raise an issue or PR for anything you'd like added, or any bugs (there will be some)!

Credits

Disclaimer

While data is updated every 20 minutes, you should always check the MetService website directly in case of emergency. This integration should never be relied upon for safety of life.

metservice-weather's People

Contributors

ciejer avatar dependabot[bot] avatar codyc1515 avatar

Stargazers

Stephen Harlow avatar Joshua Harwood avatar  avatar  avatar  avatar  avatar James Macfie avatar Joe Butler avatar  avatar Seán McCabe avatar Thomas Howard avatar  avatar Team Super Panda avatar  avatar  avatar

Watchers

 avatar

metservice-weather's Issues

No 'Next X Tide' info usign public API

[### System Health details

System Information

version core-2024.2.0
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.12.1
os_name Linux
os_version 6.1.74-haos
arch x86_64
timezone Pacific/Auckland
config_dir /config
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web ok
GitHub API Calls Remaining 5000
Installed Version 1.34.0
Stage running
Available Repositories 1385
Downloaded Repositories 19
Home Assistant Cloud
logged_in true
subscription_expiration February 4, 2025 at 1:00 PM
relayer_connected true
relayer_region ap-southeast-1
remote_enabled true
remote_connected true
alexa_enabled true
google_enabled false
remote_server ap-southeast-1-2.ui.nabu.casa
certificate_status ready
instance_id e38287e14dd74dc3aa3d5d2e86273523
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Home Assistant OS 11.5
update_channel stable
supervisor_version supervisor-2024.01.1
agent_version 1.6.0
docker_version 24.0.7
disk_total 116.7 GB
disk_used 16.4 GB
healthy true
supported true
board generic-x86-64
supervisor_api ok
version_api ok
installed_addons Samba share (12.2.0), File editor (5.7.0), AirCast (4.2.0), Advanced SSH & Web Terminal (17.1.0), TasmoAdmin (0.29.1), Mosquitto broker (6.4.0), OneDrive Backup (2.3), Zigbee2MQTT (1.35.3-1), chrony (3.0.1), ESPHome (2023.12.9), Whisper (1.0.2), Piper (1.4.0), openWakeWord (1.8.2), Run On Startup.d (0.11a)
Dashboards
dashboards 5
resources 9
views 7
mode storage
Recorder
oldest_recorder_run January 29, 2024 at 4:17 AM
current_recorder_run February 8, 2024 at 10:36 AM
estimated_db_size 681.98 MiB
database_engine sqlite
database_version 3.44.2
](url)

Checklist

  • I have filled out the issue template to the best of my ability.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
  • This issue is not a duplicate issue of any previous issues..

Describe the issue

I have selected Auckland as my city,.
There is no tide information showing up:

image

Is that a bug, or am I missing some configuration?

Reproduction steps

...

Debug logs

No response

Diagnostics dump

No response

No Air pressure on Port Hills

System Health details

System Information

version core-2024.3.3
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.12.2
os_name Linux
os_version 6.6.20-haos
arch x86_64
timezone Pacific/Auckland
config_dir /config
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web ok
GitHub API Calls Remaining 5000
Installed Version 1.34.0
Stage running
Available Repositories 1404
Downloaded Repositories 12
HACS Data ok
Home Assistant Cloud
logged_in true
subscription_expiration July 26, 2024 at 12:00 PM
relayer_connected true
relayer_region ap-southeast-1
remote_enabled true
remote_connected true
alexa_enabled true
google_enabled true
remote_server ap-southeast-1-0.ui.nabu.casa
certificate_status ready
instance_id a5d302bea86446178ca241c917807baa
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Home Assistant OS 12.1
update_channel beta
supervisor_version supervisor-2024.03.1
agent_version 1.6.0
docker_version 24.0.7
disk_total 62.3 GB
disk_used 11.4 GB
healthy true
supported true
board ova
supervisor_api ok
version_api ok
installed_addons Mosquitto broker (6.4.0), ZeroTier One (0.18.0), Advanced SSH & Web Terminal (17.2.0), Zigbee2MQTT (1.36.0-1), Studio Code Server (5.15.0), Frigate Proxy (1.4), ESPHome (2024.3.0), Mealie (v1.3.2), Samba share (12.3.1), Home Assistant Google Drive Backup (0.112.1)
Dashboards
dashboards 2
resources 3
views 5
mode storage
Recorder
oldest_recorder_run March 13, 2024 at 6:31 PM
current_recorder_run March 23, 2024 at 6:05 PM
estimated_db_size 420.40 MiB
database_engine sqlite
database_version 3.44.2

Checklist

  • I have filled out the issue template to the best of my ability.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
  • This issue is not a duplicate issue of any previous issues..

Describe the issue

Loving this new integration, thank you very much.

I am getting neither Air Pressure nor Air Pressure Trend. There are entities created called
sensor.port_hills_pressure and sensor.port_hills_pressure_tendency_trend, but bith have been "Unknown" since I installed the integration 20 hours ago.

Reproduction steps

  1. Install integration
  2. Configure for Port Hills
  3. Get no pressure pressure trend
    ...

Debug logs

No response

Diagnostics dump

There is no device created in my system and this therefore isn't available.

Surf forecast inclusion

Checklist

  • I have filled out the template to the best of my ability.
  • This only contains 1 feature request (if you have multiple feature requests, open one feature request for each feature request).
  • This issue is not a duplicate feature request of previous feature requests.

Is your feature request related to a problem? Please describe.

No, jst an enhancement request.

Describe the solution you'd like

Could you please add the surf forecast elements to the integration. Keen to automatically alert for a surf and windsurfing day based on forecasts.

Describe alternatives you've considered

No response

Additional context

No response

Add Weather Watches/Alerts

Checklist

  • I have filled out the template to the best of my ability.
  • This only contains 1 feature request (if you have multiple feature requests, open one feature request for each feature request).
  • This issue is not a duplicate feature request of previous feature requests.

Is your feature request related to a problem? Please describe.

N/A

Describe the solution you'd like

Be able to get weather watches/alerts in HA to provide notifications for preperations.

Describe alternatives you've considered

Using CAP, unfortunately the RSS/Atom feeds don't state where the alert is for without going along the provided link.

Additional context

The CAP system maybe of some use
https://www.metservice.com/about/common-alerting-protocol#metservice-severe-weather-alerts-in-cap

Some sensors not working

System Health details

System Information

version core-2024.2.1
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.12.1
os_name Linux
os_version 6.1.63-haos-raspi
arch aarch64
timezone Pacific/Auckland
config_dir /config
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web ok
GitHub API Calls Remaining 4994
Installed Version 1.34.0
Stage running
Available Repositories 1390
Downloaded Repositories 9
Home Assistant Cloud
logged_in false
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Home Assistant OS 11.5
update_channel stable
supervisor_version supervisor-2024.01.1
agent_version 1.6.0
docker_version 24.0.7
disk_total 109.3 GB
disk_used 11.6 GB
healthy true
supported true
board rpi4-64
supervisor_api ok
version_api ok
installed_addons Advanced SSH & Web Terminal (17.1.0), Studio Code Server (5.15.0), Samba share (12.3.0), Home Assistant Google Drive Backup (0.112.1), Mosquitto broker (6.4.0), RPC Shutdown (2.4), ESPHome (2023.12.9), Cloudflared (5.1.3), Zigbee2MQTT (1.35.3-1), ADB - Android Debug Bridge (0.7.0), MQTT Explorer (browser-1.0.3), Node-RED (17.0.7), Vaultwarden (Bitwarden) (0.21.1), Uptime Kuma (0.12.0)
Dashboards
dashboards 1
resources 1
mode auto-gen
Recorder
oldest_recorder_run February 12, 2024 at 11:55 AM
current_recorder_run February 14, 2024 at 2:41 AM
estimated_db_size 46.94 MiB
database_engine sqlite
database_version 3.44.2

Checklist

  • I have filled out the issue template to the best of my ability.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
  • This issue is not a duplicate issue of any previous issues..

Describe the issue

Some sensors like wind information, temperature and pressure haven't been working for me since around the latest core update using public - dunedin

Reproduction steps

Installation on the latest HA
Install metservice

Debug logs

No response

Diagnostics dump

No response

Integration regularly becomes unavailable

System Health details

System Information

version core-2024.2.3
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.12.1
os_name Linux
os_version 6.1.63-haos-raspi
arch aarch64
timezone Pacific/Auckland
config_dir /config
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web ok
GitHub API Calls Remaining 4921
Installed Version 1.34.0
Stage running
Available Repositories 1396
Downloaded Repositories 16
Home Assistant Cloud
logged_in false
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Home Assistant OS 11.5
update_channel stable
supervisor_version supervisor-2024.02.0
agent_version 1.6.0
docker_version 24.0.7
disk_total 109.3 GB
disk_used 12.5 GB
healthy true
supported true
board rpi4-64
supervisor_api ok
version_api ok
installed_addons Advanced SSH & Web Terminal (17.1.1), Studio Code Server (5.15.0), Samba share (12.3.0), Home Assistant Google Drive Backup (0.112.1), Mosquitto broker (6.4.0), RPC Shutdown (2.4), ESPHome (2024.2.0), Cloudflared (5.1.4), Zigbee2MQTT (1.35.3-1), ADB - Android Debug Bridge (0.7.0), MQTT Explorer (browser-1.0.3), Node-RED (17.0.7), Vaultwarden (Bitwarden) (0.21.1), Uptime Kuma (0.12.0)
Dashboards
dashboards 1
resources 2
views 0
mode storage
Recorder
oldest_recorder_run February 13, 2024 at 10:16 PM
current_recorder_run February 24, 2024 at 8:35 AM
estimated_db_size 604.73 MiB
database_engine sqlite
database_version 3.44.2
Spotify
api_endpoint_reachable ok

Checklist

  • I have filled out the issue template to the best of my ability.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
  • This issue is not a duplicate issue of any previous issues..

Describe the issue

It looks like every so often the integration needs to be refreshed as it loses its connection and goes into an unavailable state but reloading any sensor kicks the entire thing back into gear.

Reproduction steps

  1. Install the integration
  2. Wait for it disconnect
  3. Press reload

Debug logs

No response

Diagnostics dump

No response

Wind direction hourly forecast

Checklist

  • I have filled out the template to the best of my ability.
  • This only contains 1 feature request (if you have multiple feature requests, open one feature request for each feature request).
  • This issue is not a duplicate feature request of previous feature requests.

Is your feature request related to a problem? Please describe.

Love the integration, but is it possible to get the hourly forecast data for wind directions too??

Describe the solution you'd like

Include hourly forecast data for wind directions in the weather entity

Describe alternatives you've considered

I know it has the current wind speed and direction, and hourly forecast for wind speeds, just not hourly forecast for wind directions

Additional context

This section of MetService
image

Detected blocking call to open inside the event loop by custom integration

System Health details

Core 2024.6.1
Supervisor 2024.06.0
Operating System 12.3

Checklist

  • I have filled out the issue template to the best of my ability.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
  • This issue is not a duplicate issue of any previous issues..

Describe the issue

Error log as below.

Reproduction steps

...

Debug logs

2024-06-08 09:05:43.154 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to open inside the event loop by custom integration 'metservice_weather' at custom_components/metservice_weather/weather_current_conditions_sensors.py, line 205: > datetime.datetime.now(pytz.timezone("Pacific/Auckland")) (offender: /usr/local/lib/python3.12/site-packages/pytz/__init__.py, line 108: return open(filename, 'rb')), please create a bug report at https://github.com/ciejer/metservice-weather/issues
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/usr/src/homeassistant/homeassistant/__main__.py", line 223, in <module>
    sys.exit(main())
  File "/usr/src/homeassistant/homeassistant/__main__.py", line 209, in main
    exit_code = runner.run(runtime_conf)
  File "/usr/src/homeassistant/homeassistant/runner.py", line 190, in run
    return loop.run_until_complete(setup_and_run_hass(runtime_config))
  File "/usr/local/lib/python3.12/asyncio/base_events.py", line 672, in run_until_complete
    self.run_forever()
  File "/usr/local/lib/python3.12/asyncio/base_events.py", line 639, in run_forever
    self._run_once()
  File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1988, in _run_once
    handle._run()
  File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 742, in async_setup_locked
    await self.async_setup(hass, integration=integration)
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 594, in async_setup
    result = await component.async_setup_entry(hass, self)
  File "/config/custom_components/metservice_weather/__init__.py", line 53, in async_setup_entry
    await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2032, in async_forward_entry_setups
    await asyncio.gather(
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2034, in <genexpr>
    create_eager_task(
  File "/usr/src/homeassistant/homeassistant/util/async_.py", line 37, in create_eager_task
    return Task(coro, loop=loop, name=name, eager_start=True)
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2081, in _async_forward_entry_setup
    await entry.async_setup(self.hass, integration=integration)
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 594, in async_setup
    result = await component.async_setup_entry(hass, self)
  File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 134, in async_setup_entry
    return await component.async_setup_entry(entry)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 196, in async_setup_entry
    return await self._platforms[key].async_setup_entry(config_entry)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 333, in async_setup_entry
    return await self._async_setup_platform(async_create_setup_awaitable)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 363, in _async_setup_platform
    awaitable = create_eager_task(awaitable, loop=hass.loop)
  File "/usr/src/homeassistant/homeassistant/util/async_.py", line 37, in create_eager_task
    return Task(coro, loop=loop, name=name, eager_start=True)
  File "/config/custom_components/metservice_weather/sensor.py", line 63, in async_setup_entry
    async_add_entities(sensors)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 515, in _async_schedule_add_entities_for_entry
    task = self.config_entry.async_create_task(
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1134, in async_create_task
    task = hass.async_create_task_internal(
  File "/usr/src/homeassistant/homeassistant/core.py", line 828, in async_create_task_internal
    task = create_eager_task(target, name=name, loop=self.loop)
  File "/usr/src/homeassistant/homeassistant/util/async_.py", line 37, in create_eager_task
    return Task(coro, loop=loop, name=name, eager_start=True)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 649, in async_add_entities
    await add_func(coros, entities, timeout)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 600, in _async_add_entities
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 914, in _async_add_entity
    await entity.add_to_platform_finish()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1355, in add_to_platform_finish
    self.async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1000, in async_write_ha_state
    self._async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1126, in _async_write_ha_state
    state, attr, capabilities, shadowed_attr = self.__async_calculate_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1061, in __async_calculate_state
    state = self._stringify_state(available)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1006, in _stringify_state
    if (state := self.state) is None:
  File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 543, in state
    value = self.native_value
  File "/config/custom_components/metservice_weather/sensor.py", line 122, in native_value
    return self.entity_description.value_fn(self._sensor_data, self._unit_system)
  File "/config/custom_components/metservice_weather/weather_current_conditions_sensors.py", line 205, in <lambda>
    > datetime.datetime.now(pytz.timezone("Pacific/Auckland"))

Diagnostics dump

No response

Forecast does not work with Mobile API

System Health details

.

Checklist

  • I have filled out the issue template to the best of my ability.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
  • This issue is not a duplicate issue of any previous issues..

Describe the issue

The specific piece of code is here:

all_days = self.data[RESULTS_FORECAST_DAILY]["layout"]["primary"]["slots"][

Reproduction steps

  1. Use Mobile API
  2. Check logs / entities
  3. Forecast is not unavailable due to an error

Debug logs

Logger: homeassistant.components.websocket_api.http.connection
Source: custom_components/metservice_weather/coordinator.py:219
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 09:57:40 (5 occurrences)
Last logged: 10:17:07

[546830180032] Error handling message: Unknown error (unknown_error) Cody Cooper from 103.216.189.25 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0)
[546728372160] Error handling message: Unknown error (unknown_error) Cody Cooper from 103.216.189.25 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0)
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 26, in _handle_async_response
    await func(hass, connection, msg)
  File "/usr/src/homeassistant/homeassistant/components/weather/websocket_api.py", line 102, in ws_subscribe_forecast
    await entity.async_update_listeners({forecast_type})
  File "/usr/src/homeassistant/homeassistant/components/weather/__init__.py", line 1072, in async_update_listeners
    native_forecast_list: list[Forecast] | None = await getattr(
                                                  ^^^^^^^^^^^^^^
  File "/config/custom_components/metservice_weather/weather.py", line 155, in async_forecast_daily
    return self.forecast_daily
           ^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/metservice_weather/weather.py", line 211, in forecast_daily
    num_days = self.coordinator.get_forecast_daily("", 0)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/metservice_weather/coordinator.py", line 219, in get_forecast_daily
    all_days = self.data[RESULTS_FORECAST_DAILY]["layout"]["primary"]["slots"][
               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
KeyError: 'layout'


### Diagnostics dump

_No response_

Error while setting up metservice_weather platform for weather

System Health details

System Information

version core-2024.1.5
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.11.6
os_name Linux
os_version 6.1.70-haos
arch x86_64
timezone Pacific/Auckland
config_dir /config
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web ok
GitHub API Calls Remaining 4746
Installed Version 1.34.0
Stage running
Available Repositories 1379
Downloaded Repositories 9
Home Assistant Cloud
logged_in true
subscription_expiration June 21, 2024 at 12:00 PM
relayer_connected true
relayer_region ap-southeast-1
remote_enabled true
remote_connected true
alexa_enabled true
google_enabled true
remote_server ap-southeast-1-0.ui.nabu.casa
certificate_status ready
instance_id a902d669ad09429ca2b58d08bdde4669
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Home Assistant OS 11.3
update_channel stable
supervisor_version supervisor-2023.12.1
agent_version 1.6.0
docker_version 24.0.7
disk_total 33.7 GB
disk_used 9.8 GB
healthy true
supported true
board ova
supervisor_api ok
version_api ok
installed_addons ESPHome (2023.12.9), Node-RED (17.0.3), Samba share (12.2.0), File editor (5.7.0), Terminal & SSH (9.8.1), Mosquitto broker (6.4.0)
Dashboards
dashboards 3
resources 2
views 14
mode storage
Recorder
oldest_recorder_run January 20, 2024 at 12:35 AM
current_recorder_run January 29, 2024 at 11:16 AM
estimated_db_size 182.21 MiB
database_engine sqlite
database_version 3.41.2
Sonoff
version 3.5.4 (a4a8c5f)
cloud_online 3 / 4
local_online 0 / 0

Checklist

  • I have filled out the issue template to the best of my ability.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
  • This issue is not a duplicate issue of any previous issues..

Describe the issue

Logger: homeassistant.components.weather
Source: helpers/entity_platform.py:368
Integration: Weather (documentation, issues)
First occurred: 11:16:41 AM (2 occurrences)
Last logged: 11:17:20 AM

Error while setting up metservice_weather platform for weather
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 368, in _async_setup_platform
await asyncio.gather(*pending)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 507, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 752, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1282, in add_to_platform_finish
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 945, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1066, in _async_write_ha_state
state, attr, capabilities, shadowed_attr = self.__async_calculate_state()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1005, in __async_calculate_state
attr.update(self.state_attributes or {})
^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/weather/init.py", line 729, in state_attributes
if (humidity := self.humidity) is not None:
^^^^^^^^^^^^^
File "/config/custom_components/metservice_weather/weather.py", line 260, in humidity
return int(self.coordinator.get_current_public(FIELD_HUMIDITY))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: int() argument must be a string, a bytes-like object or a real number, not 'NoneType'

Reproduction steps

  1. Installed the integration just fine and selected Auckland - entities populated
  2. Removed integration and restarted
  3. Selected my actual town and now get this error

I've deleted the integration, restarted, added it again but it won't poll and entities are unknown.

Debug logs

No response

Diagnostics dump

No response

weather.get_forecasts based template sensor returns bad timedate

System Health details

skip

Checklist

  • I have filled out the issue template to the best of my ability.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
  • This issue is not a duplicate issue of any previous issues..

Describe the issue

When creating a template sensor to hold the whole forecast in an attribute, it ends up with a broken json.
It works for OpenWeatherMap and Accuweather

Reproduction steps

  1. Configure the MetService and OpenWeatherMap integrations
  2. Create a trigger-based template to extract the forecast from these entities into an attribute:
    ` - trigger:
    • platform: time_pattern
      hours: "/1"
    • platform: homeassistant
      event: start
    • platform: event
      event_type: event_template_reloaded
      action:
    • service: weather.get_forecasts
      data:
      type: hourly
      target:
      entity_id: weather.openweathermap
      response_variable: hourly
      sensor:
    • name: OpenWeatherMap Forecast Hourly
      unique_id: OpenWeatherMap_forecast_hourly
      state: "{{ now().isoformat() }}"
      attributes:
      forecast: "{{ hourly['weather.openweathermap'].forecast }}"`

- trigger: - platform: time_pattern hours: "/1" - platform: homeassistant event: start - platform: event event_type: event_template_reloaded action: - service: weather.get_forecasts data: type: hourly target: entity_id: weather.the_villa_metservice response_variable: hourly sensor: - name: MetService Weather Forecast Hourly unique_id: metservice_forecast_hourly state: "{{ now().isoformat() }}" attributes: forecast: "{{ hourly['weather.the_villa_metservice'].forecast }}"

  1. Check the attributes in the Developer Tools/States:
    image
    image

...

Debug logs

No response

Diagnostics dump

No response

Failed to set state for sensor.metservice_metservice_weather_warnings

System Health details

System Information

version core-2024.4.2
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.12.2
os_name Linux
os_version 6.6.20-haos
arch x86_64
timezone Pacific/Auckland
config_dir /config
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web ok
GitHub API Calls Remaining 5000
Installed Version 1.34.0
Stage running
Available Repositories 1400
Downloaded Repositories 23
Home Assistant Cloud
logged_in true
subscription_expiration April 30, 2024 at 12:00 PM
relayer_connected true
relayer_region ap-southeast-1
remote_enabled true
remote_connected true
alexa_enabled false
google_enabled false
remote_server ap-southeast-1-2.ui.nabu.casa
certificate_status ready
instance_id 8e1e0743226e499f84b963e8948c79ba
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Home Assistant OS 12.1
update_channel stable
supervisor_version supervisor-2024.04.0
agent_version 1.6.0
docker_version 24.0.7
disk_total 30.8 GB
disk_used 15.9 GB
healthy true
supported true
board ova
supervisor_api ok
version_api ok
installed_addons File editor (5.8.0), Log Viewer (0.17.0), Home Assistant Google Drive Backup (0.112.1), Silicon Labs Multiprotocol (2.4.5), Z-Wave JS (0.4.5), Mosquitto broker (6.4.0), Glances (0.21.1), Samba share (12.3.1), RTSPtoWebRTC (1.0.1), Advanced SSH & Web Terminal (17.2.0), Ring-MQTT with Video Streaming (5.6.3), openWakeWord (1.10.0)
Dashboards
dashboards 7
resources 15
views 13
mode storage
Recorder
oldest_recorder_run March 31, 2024 at 4:59 PM
current_recorder_run April 9, 2024 at 5:47 PM
estimated_db_size 1637.82 MiB
database_engine sqlite
database_version 3.44.2

Checklist

  • I have filled out the issue template to the best of my ability.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
  • This issue is not a duplicate issue of any previous issues..

Describe the issue

Error in the home-assistant.log as per log below.

PS: This is a really cool integration for HA. Well done in sorting it!!!

Reproduction steps

...

Debug logs

2024-04-11 21:14:24.160 ERROR (MainThread) [homeassistant.helpers.entity] Failed to set state for sensor.metservice_metservice_weather_warnings, fall back to unknown
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1181, in _async_write_ha_state
    hass.states.async_set(
  File "/usr/src/homeassistant/homeassistant/core.py", line 2167, in async_set
    state = State(
            ^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 1654, in __init__
    validate_state(state)
  File "/usr/src/homeassistant/homeassistant/core.py", line 222, in validate_state
    raise InvalidStateError(
homeassistant.exceptions.InvalidStateError: Invalid state with length 1128. State max length is 255 characters.

Diagnostics dump

No response

Picking North shore results in an unknown error message

System Health details

System Information

version core-2024.1.5
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.11.6
os_name Linux
os_version 6.1.71-haos
arch x86_64
timezone Pacific/Auckland
config_dir /config
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web ok
GitHub API Calls Remaining 4989
Installed Version 1.34.0
Stage running
Available Repositories 1383
Downloaded Repositories 1
HACS Data ok
Home Assistant Cloud
logged_in true
subscription_expiration 23 February 2024 at 13:00
relayer_connected true
relayer_region ap-southeast-1
remote_enabled true
remote_connected true
alexa_enabled true
google_enabled true
remote_server ap-southeast-1-2.ui.nabu.casa
certificate_status ready
instance_id ce32b4b4867f464da419d1af28b7b37a
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Home Assistant OS 11.4
update_channel stable
supervisor_version supervisor-2023.12.1
agent_version 1.6.0
docker_version 24.0.7
disk_total 234.0 GB
disk_used 10.7 GB
healthy true
supported true
board generic-x86-64
supervisor_api ok
version_api ok
installed_addons AirSonos (4.2.0), ESPHome (2023.12.9), InfluxDB (5.0.0), Grafana (9.1.2), File editor (5.7.0), Terminal & SSH (9.8.1)
Dashboards
dashboards 1
resources 0
mode auto-gen
Recorder
oldest_recorder_run 4 January 2024 at 08:08
current_recorder_run 23 January 2024 at 17:46
estimated_db_size 31.23 MiB
database_engine sqlite
database_version 3.41.2

Checklist

  • I have filled out the issue template to the best of my ability.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
  • This issue is not a duplicate issue of any previous issues..

Describe the issue

Picking North shore results in an unknown error message

Reproduction steps

1.Choose North Shore as the location during setup
2.
3.
...

Debug logs

Logger: homeassistant.components.sensor
Source: helpers/entity_platform.py:368
Integration: Sensor (documentation, issues)
First occurred: 17:51:11 (1 occurrences)
Last logged: 17:51:11

Error while setting up metservice_weather platform for sensor
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 368, in _async_setup_platform
    await asyncio.gather(*pending)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 507, in async_add_entities
    await asyncio.gather(*tasks)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 752, in _async_add_entity
    await entity.add_to_platform_finish()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1282, in add_to_platform_finish
    self.async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 945, in async_write_ha_state
    self._async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1066, in _async_write_ha_state
    state, attr, capabilities, shadowed_attr = self.__async_calculate_state()
                                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1003, in __async_calculate_state
    state = self._stringify_state(available)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 951, in _stringify_state
    if (state := self.state) is None:
                 ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 524, in state
    value = self.native_value
            ^^^^^^^^^^^^^^^^^
  File "/config/custom_components/metservice_weather/sensor.py", line 106, in native_value
    return self.entity_description.value_fn(self._sensor_data, self._unit_system)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/metservice_weather/weather_current_conditions_sensors.py", line 167, in <lambda>
    value_fn=lambda data, _: cast(str, data.replace("Morning: ", "")),
                                       ^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'replace'

Diagnostics dump

No response

ValueError: Sensor sensor.weather_pollen_levels has device class 'None', state class 'None' unit '' and suggested precision 'None' thus indicating it has a numeric value; however, it has the non-numeric value: 'Moderate' (<class 'str'>)

System Health details

System Information

version core-2024.1.3
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.11.6
os_name Linux
os_version 6.1.63-haos-raspi
arch aarch64
timezone Pacific/Auckland
config_dir /config
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web ok
GitHub API Calls Remaining 5000
Installed Version 1.33.0
Stage running
Available Repositories 1381
Downloaded Repositories 19
HACS Data ok
Home Assistant Cloud
logged_in false
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Home Assistant OS 11.4
update_channel beta
supervisor_version supervisor-2023.12.1
agent_version 1.6.0
docker_version 24.0.7
disk_total 109.3 GB
disk_used 13.2 GB
healthy true
supported true
board rpi4-64
supervisor_api ok
version_api ok
installed_addons Silicon Labs Multiprotocol (2.4.3), MariaDB (2.6.1), Calibre (7.3.0), ESPHome (2023.12.5), File editor (5.7.0), Node-RED (17.0.2), Samba share (12.2.0), Scrypted (18-jammy-full.s6-v0.80.0), Tailscale (0.14.0), Terminal & SSH (9.8.1)
Dashboards
dashboards 2
resources 1
views 1
mode storage
Recorder
oldest_recorder_run January 10, 2024 at 23:52
current_recorder_run January 13, 2024 at 10:14
estimated_db_size 45.67 MiB
database_engine mysql
database_version 10.6.12
Xiaomi Miot Auto
error failed to load: timeout

Checklist

  • I have filled out the issue template to the best of my ability.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
  • This issue is not a duplicate issue of any previous issues..

Describe the issue

Logger: homeassistant
Source: components/sensor/__init__.py:646
First occurred: 14:37:46 (1 occurrences)
Last logged: 14:37:46

Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 644, in state
    numerical_value = float(value)  # type:ignore[arg-type]
                      ^^^^^^^^^^^^
ValueError: could not convert string to float: 'Moderate'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 243, in _handle_refresh_interval
    await self._async_refresh(log_failures=True, scheduled=True)
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 399, in _async_refresh
    self.async_update_listeners()
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 182, in async_update_listeners
    update_callback()
  File "/config/custom_components/metservice_weather/sensor.py", line 141, in _handle_coordinator_update
    self.async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 945, in async_write_ha_state
    self._async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1066, in _async_write_ha_state
    state, attr, capabilities, shadowed_attr = self.__async_calculate_state()
                                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1003, in __async_calculate_state
    state = self._stringify_state(available)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 951, in _stringify_state
    if (state := self.state) is None:
                 ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 646, in state
    raise ValueError(
ValueError: Sensor sensor.weather_pollen_levels has device class 'None', state class 'None' unit '' and suggested precision 'None' thus indicating it has a numeric value; however, it has the non-numeric value: 'Moderate' (<class 'str'>)

Reproduction steps

  1. Pollen Type is Moderate

Debug logs

No response

Diagnostics dump

No response

Weather Warnings showing "unknown" after issuing 1 warning

System Health details

System Information

version core-2023.12.4
installation_type Home Assistant Container
dev false
hassio false
docker true
user root
virtualenv false
python_version 3.11.6
os_name Linux
os_version 5.15.0-92-generic
arch x86_64
timezone Pacific/Auckland
config_dir /config
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web ok
GitHub API Calls Remaining 4996
Installed Version 1.33.0
Stage running
Available Repositories 1409
Downloaded Repositories 53
AccuWeather
can_reach_server ok
remaining_requests 15
Home Assistant Cloud
logged_in false
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Dashboards
dashboards 3
resources 29
views 24
mode storage
Recorder
oldest_recorder_run 1 March 2024 at 03:24
current_recorder_run 2 March 2024 at 14:06
estimated_db_size 2942.77 MiB
database_engine mysql
database_version 11.2.2
Spotify
api_endpoint_reachable ok

Checklist

  • I have filled out the issue template to the best of my ability.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
  • This issue is not a duplicate issue of any previous issues..

Describe the issue

Integration with the entity "warnings" is showing unknown now that 1 warning and 2 watches have been issued.

Warning and Issue shown here:
https://www.metservice.com/towns-cities/regions/wellington/locations/wainuiomata

Screenshot_20240303_205655_Home Assistant

Reproduction steps

  1. Warning issue by Metservice
  2. Integration updates on schedule
  3. Entity displays unknown

Debug logs

No response

Diagnostics dump

No response

Add Fire Season/Danger information

Checklist

  • I have filled out the template to the best of my ability.
  • This only contains 1 feature request (if you have multiple feature requests, open one feature request for each feature request).
  • This issue is not a duplicate feature request of previous feature requests.

Is your feature request related to a problem? Please describe.

Not a problem, just a general wish.

Describe the solution you'd like

Add the fire season and fire danger information.

image

Describe alternatives you've considered

Web scraper.

Additional context

Thanks so much, I was trying for ages to get the drying time using a scraper, and had given up!

Local observation time is incorrect

System Health details

Skip

Checklist

  • I have enabled debug logging for my installation.
  • I have filled out the issue template to the best of my ability.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
  • This issue is not a duplicate issue of any previous issues..

Describe the issue

The local observation time is in the future.

Reproduction steps

  1. Install the MetService weather component and integration
  2. Check the local observation time

Debug logs

Skip

Diagnostics dump

No response

Main weather entity does not use given name

System Health details

Skip

Checklist

  • I have enabled debug logging for my installation.
  • I have filled out the issue template to the best of my ability.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
  • This issue is not a duplicate issue of any previous issues..

Describe the issue

When creating a new integration, most entities are prefixed with the intended name, but the grouped weather entity is named after the city.

Reproduction steps

  1. Connect a new MetService integration
  2. Check the entity ids it has created

Debug logs

Skip

Diagnostics dump

No response

Pollen sensor unavailable causes AttributeError: 'NoneType' object has no attribute 'lstrip'

System Health details

System Information

version core-2023.11.3
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.11.6
os_name Linux
os_version 6.1.21-v8
arch aarch64
timezone Pacific/Auckland
config_dir /config
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web ok
GitHub API Calls Remaining 4998
Installed Version 1.33.0
Stage running
Available Repositories 1346
Downloaded Repositories 21
HACS Data ok
Home Assistant Cloud
logged_in false
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Home Assistant OS 11.1
update_channel stable
supervisor_version supervisor-2023.11.3
agent_version 1.6.0
docker_version 24.0.6
disk_total 116.5 GB
disk_used 17.0 GB
healthy true
supported true
board rpi4-64
supervisor_api ok
version_api ok
installed_addons ESPHome (2023.11.4), Tailscale (0.13.1), File editor (5.7.0), Scrypted (18-jammy-full.s6-v0.68.0), Node-RED (16.0.2), Terminal & SSH (9.8.1)
Dashboards
dashboards 2
resources 1
views 1
mode storage
Recorder
oldest_recorder_run November 22, 2023 at 15:44
current_recorder_run November 25, 2023 at 04:44
estimated_db_size 246.77 MiB
database_engine sqlite
database_version 3.41.2
Xiaomi Miot Auto
component_version 0.7.13
can_reach_server ok
can_reach_spec pending
logged_accounts 1
total_devices 5

Checklist

  • I have filled out the issue template to the best of my ability.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
  • This issue is not a duplicate issue of any previous issues..

Describe the issue

Sometimes the MetService website unpublishes the pollen information. When this happens, the sensor is unavailable (fine) but it generates an exception in the logs because it is not handled correctly.

Reproduction steps

MetService website does not have pollen counts right now.

Issue is here

str, ". ".join(i.capitalize() for i in data.lstrip(" ")[0:254].split(". "))

Debug logs

This error originated from a custom integration.

Logger: homeassistant
Source: custom_components/metservice_weather/weather_current_conditions_sensors.py:159
Integration: MetService New Zealand Weather (documentation, issues)
First occurred: 05:05:21 (16 occurrences)
Last logged: 10:05:54

Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 233, in _handle_refresh_interval
    await self._async_refresh(log_failures=True, scheduled=True)
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 389, in _async_refresh
    self.async_update_listeners()
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 172, in async_update_listeners
    update_callback()
  File "/config/custom_components/metservice_weather/sensor.py", line 119, in _handle_coordinator_update
    self.async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 743, in async_write_ha_state
    self._async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 843, in _async_write_ha_state
    state, attr = self._async_generate_attributes()
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 784, in _async_generate_attributes
    state = self._stringify_state(available)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 749, in _stringify_state
    if (state := self.state) is None:
                 ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 501, in state
    value = self.native_value
            ^^^^^^^^^^^^^^^^^
  File "/config/custom_components/metservice_weather/sensor.py", line 106, in native_value
    return self.entity_description.value_fn(self._sensor_data, self._unit_system)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/metservice_weather/weather_current_conditions_sensors.py", line 159, in <lambda>
    str, ". ".join(i.capitalize() for i in data.lstrip(" ")[0:254].split(". "))
                                           ^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'lstrip'

Diagnostics dump

No response

Migrate from desktop to mobile API to avoid entities becoming unavailable

Checklist

  • I have filled out the template to the best of my ability.
  • This only contains 1 feature request (if you have multiple feature requests, open one feature request for each feature request).
  • This issue is not a duplicate feature request of previous feature requests.

Is your feature request related to a problem? Please describe.

You will experience issues with the layout of the desktop page changing and shifting, particularly as the layout and content appears to be more or less dictated by MetService's advertisers.

Describe the solution you'd like

Use the mobile app API. It is static and does not change at advertisers whims so it should be significantly more stable. This will also avoid the need to strip and format some of the raw data. Because the URL is based on the geolocation (which I think can be auto-obtained in HA) you also avoid the need to set a static location and maintain a mapping list of locations. Fixes #11.

GET /mobile/nz/weatherData/-43.XXX/172.XXX HTTP/1.1
Host: api.metservice.com
apiKey: XXXXXXXXXXXXXXX
Accept: */*
User-Agent: MetServiceNZ/2.19.3 (com.metservice.iphoneapp; build:332; iOS 17.1.1) Alamofire/5.4.3
Accept-Language: en-CA;q=1.0
Accept-Encoding: br;q=1.0, gzip;q=0.9, deflate;q=0.8
Connection: keep-alive

Describe alternatives you've considered

No response

Additional context

No response

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.